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