Makefile 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. # SPDX-License-Identifier: GPL-2.0
  2. #
  3. # Makefile for the V4L2 core
  4. #
  5. tuner-objs := tuner-core.o
  6. videodev-objs := v4l2-dev.o v4l2-ioctl.o v4l2-device.o v4l2-fh.o \
  7. v4l2-event.o v4l2-ctrls.o v4l2-subdev.o v4l2-clk.o \
  8. v4l2-async.o
  9. ifeq ($(CONFIG_COMPAT),y)
  10. videodev-objs += v4l2-compat-ioctl32.o
  11. endif
  12. obj-$(CONFIG_V4L2_FWNODE) += v4l2-fwnode.o
  13. ifeq ($(CONFIG_TRACEPOINTS),y)
  14. videodev-objs += v4l2-trace.o
  15. endif
  16. videodev-$(CONFIG_MEDIA_CONTROLLER) += v4l2-mc.o
  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. ccflags-y += -I$(srctree)/drivers/media/dvb-frontends
  28. ccflags-y += -I$(srctree)/drivers/media/tuners