Makefile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. #
  2. # Makefile for the V4L2 core
  3. #
  4. tuner-objs := tuner-core.o
  5. videodev-objs := v4l2-dev.o v4l2-ioctl.o v4l2-device.o v4l2-fh.o \
  6. v4l2-event.o v4l2-ctrls.o v4l2-subdev.o v4l2-clk.o \
  7. v4l2-async.o
  8. ifeq ($(CONFIG_COMPAT),y)
  9. videodev-objs += v4l2-compat-ioctl32.o
  10. endif
  11. ifeq ($(CONFIG_OF),y)
  12. videodev-objs += v4l2-of.o
  13. endif
  14. ifeq ($(CONFIG_TRACEPOINTS),y)
  15. videodev-objs += vb2-trace.o v4l2-trace.o
  16. endif
  17. obj-$(CONFIG_VIDEO_V4L2) += videodev.o
  18. obj-$(CONFIG_VIDEO_V4L2) += v4l2-common.o
  19. obj-$(CONFIG_VIDEO_V4L2) += v4l2-dv-timings.o
  20. obj-$(CONFIG_VIDEO_TUNER) += tuner.o
  21. obj-$(CONFIG_V4L2_MEM2MEM_DEV) += v4l2-mem2mem.o
  22. obj-$(CONFIG_V4L2_FLASH_LED_CLASS) += v4l2-flash-led-class.o
  23. obj-$(CONFIG_VIDEOBUF_GEN) += videobuf-core.o
  24. obj-$(CONFIG_VIDEOBUF_DMA_SG) += videobuf-dma-sg.o
  25. obj-$(CONFIG_VIDEOBUF_DMA_CONTIG) += videobuf-dma-contig.o
  26. obj-$(CONFIG_VIDEOBUF_VMALLOC) += videobuf-vmalloc.o
  27. obj-$(CONFIG_VIDEOBUF_DVB) += videobuf-dvb.o
  28. obj-$(CONFIG_VIDEOBUF2_CORE) += videobuf2-core.o videobuf2-v4l2.o
  29. obj-$(CONFIG_VIDEOBUF2_MEMOPS) += videobuf2-memops.o
  30. obj-$(CONFIG_VIDEOBUF2_VMALLOC) += videobuf2-vmalloc.o
  31. obj-$(CONFIG_VIDEOBUF2_DMA_CONTIG) += videobuf2-dma-contig.o
  32. obj-$(CONFIG_VIDEOBUF2_DMA_SG) += videobuf2-dma-sg.o
  33. obj-$(CONFIG_VIDEOBUF2_DVB) += videobuf2-dvb.o
  34. ccflags-y += -I$(srctree)/drivers/media/dvb-core
  35. ccflags-y += -I$(srctree)/drivers/media/dvb-frontends
  36. ccflags-y += -I$(srctree)/drivers/media/tuners