Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | # SPDX-License-Identifier: GPL-2.0 |
Mauro Carvalho Chehab | 5bc3cb7 | 2012-06-14 16:35:52 -0300 | [diff] [blame] | 2 | # |
| 3 | # Makefile for the V4L2 core |
| 4 | # |
| 5 | |
| 6 | tuner-objs := tuner-core.o |
| 7 | |
| 8 | videodev-objs := v4l2-dev.o v4l2-ioctl.o v4l2-device.o v4l2-fh.o \ |
Guennadi Liakhovetski | e9e3104 | 2013-01-08 07:06:31 -0300 | [diff] [blame] | 9 | v4l2-event.o v4l2-ctrls.o v4l2-subdev.o v4l2-clk.o \ |
| 10 | v4l2-async.o |
Mauro Carvalho Chehab | 5bc3cb7 | 2012-06-14 16:35:52 -0300 | [diff] [blame] | 11 | ifeq ($(CONFIG_COMPAT),y) |
| 12 | videodev-objs += v4l2-compat-ioctl32.o |
| 13 | endif |
Sakari Ailus | ca50c19 | 2016-08-12 08:05:51 -0300 | [diff] [blame] | 14 | obj-$(CONFIG_V4L2_FWNODE) += v4l2-fwnode.o |
Philipp Zabel | 9deb6ad | 2015-08-06 09:38:02 -0300 | [diff] [blame] | 15 | ifeq ($(CONFIG_TRACEPOINTS),y) |
Mauro Carvalho Chehab | e77c31e | 2018-02-23 04:49:30 -0500 | [diff] [blame] | 16 | videodev-objs += v4l2-trace.o |
Philipp Zabel | 9deb6ad | 2015-08-06 09:38:02 -0300 | [diff] [blame] | 17 | endif |
Mauro Carvalho Chehab | 54d0dba | 2016-02-05 07:02:43 -0200 | [diff] [blame] | 18 | videodev-$(CONFIG_MEDIA_CONTROLLER) += v4l2-mc.o |
Mauro Carvalho Chehab | 5bc3cb7 | 2012-06-14 16:35:52 -0300 | [diff] [blame] | 19 | |
Mauro Carvalho Chehab | 532ee00 | 2013-03-25 12:24:35 -0300 | [diff] [blame] | 20 | obj-$(CONFIG_VIDEO_V4L2) += videodev.o |
Mauro Carvalho Chehab | b633446 | 2012-08-20 10:32:19 -0300 | [diff] [blame] | 21 | obj-$(CONFIG_VIDEO_V4L2) += v4l2-common.o |
Hans Verkuil | b18787e | 2013-07-29 08:40:55 -0300 | [diff] [blame] | 22 | obj-$(CONFIG_VIDEO_V4L2) += v4l2-dv-timings.o |
Mauro Carvalho Chehab | 5bc3cb7 | 2012-06-14 16:35:52 -0300 | [diff] [blame] | 23 | |
| 24 | obj-$(CONFIG_VIDEO_TUNER) += tuner.o |
| 25 | |
| 26 | obj-$(CONFIG_V4L2_MEM2MEM_DEV) += v4l2-mem2mem.o |
| 27 | |
Jacek Anaszewski | 42bd6f5 | 2015-06-19 00:31:47 -0700 | [diff] [blame] | 28 | obj-$(CONFIG_V4L2_FLASH_LED_CLASS) += v4l2-flash-led-class.o |
| 29 | |
Mauro Carvalho Chehab | 5bc3cb7 | 2012-06-14 16:35:52 -0300 | [diff] [blame] | 30 | obj-$(CONFIG_VIDEOBUF_GEN) += videobuf-core.o |
| 31 | obj-$(CONFIG_VIDEOBUF_DMA_SG) += videobuf-dma-sg.o |
| 32 | obj-$(CONFIG_VIDEOBUF_DMA_CONTIG) += videobuf-dma-contig.o |
| 33 | obj-$(CONFIG_VIDEOBUF_VMALLOC) += videobuf-vmalloc.o |
Mauro Carvalho Chehab | 5bc3cb7 | 2012-06-14 16:35:52 -0300 | [diff] [blame] | 34 | |
Mauro Carvalho Chehab | 9a0bf52 | 2012-08-13 23:13:41 -0300 | [diff] [blame] | 35 | ccflags-y += -I$(srctree)/drivers/media/dvb-frontends |
Mauro Carvalho Chehab | ccae7af | 2012-06-14 16:35:59 -0300 | [diff] [blame] | 36 | ccflags-y += -I$(srctree)/drivers/media/tuners |