blob: 9ee57e1efefed177d04c0f5857dfa39812ae2d01 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001# SPDX-License-Identifier: GPL-2.0
Mauro Carvalho Chehab5bc3cb72012-06-14 16:35:52 -03002#
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 \
Guennadi Liakhovetskie9e31042013-01-08 07:06:31 -03009 v4l2-event.o v4l2-ctrls.o v4l2-subdev.o v4l2-clk.o \
10 v4l2-async.o
Mauro Carvalho Chehab5bc3cb72012-06-14 16:35:52 -030011ifeq ($(CONFIG_COMPAT),y)
12 videodev-objs += v4l2-compat-ioctl32.o
13endif
Sakari Ailusca50c192016-08-12 08:05:51 -030014obj-$(CONFIG_V4L2_FWNODE) += v4l2-fwnode.o
Philipp Zabel9deb6ad2015-08-06 09:38:02 -030015ifeq ($(CONFIG_TRACEPOINTS),y)
Mauro Carvalho Chehabe77c31e2018-02-23 04:49:30 -050016 videodev-objs += v4l2-trace.o
Philipp Zabel9deb6ad2015-08-06 09:38:02 -030017endif
Mauro Carvalho Chehab54d0dba2016-02-05 07:02:43 -020018videodev-$(CONFIG_MEDIA_CONTROLLER) += v4l2-mc.o
Mauro Carvalho Chehab5bc3cb72012-06-14 16:35:52 -030019
Mauro Carvalho Chehab532ee002013-03-25 12:24:35 -030020obj-$(CONFIG_VIDEO_V4L2) += videodev.o
Mauro Carvalho Chehabb6334462012-08-20 10:32:19 -030021obj-$(CONFIG_VIDEO_V4L2) += v4l2-common.o
Hans Verkuilb18787e2013-07-29 08:40:55 -030022obj-$(CONFIG_VIDEO_V4L2) += v4l2-dv-timings.o
Mauro Carvalho Chehab5bc3cb72012-06-14 16:35:52 -030023
24obj-$(CONFIG_VIDEO_TUNER) += tuner.o
25
26obj-$(CONFIG_V4L2_MEM2MEM_DEV) += v4l2-mem2mem.o
27
Jacek Anaszewski42bd6f52015-06-19 00:31:47 -070028obj-$(CONFIG_V4L2_FLASH_LED_CLASS) += v4l2-flash-led-class.o
29
Mauro Carvalho Chehab5bc3cb72012-06-14 16:35:52 -030030obj-$(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
Mauro Carvalho Chehab5bc3cb72012-06-14 16:35:52 -030034
Mauro Carvalho Chehab9a0bf522012-08-13 23:13:41 -030035ccflags-y += -I$(srctree)/drivers/media/dvb-frontends
Mauro Carvalho Chehabccae7af2012-06-14 16:35:59 -030036ccflags-y += -I$(srctree)/drivers/media/tuners