Makefile (2491b544ff3aa9717d427033206fa793be53429d) Makefile (c612e54fca55d9380c1378eaa623d74ed89b62db)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the kernel multimedia device drivers.
4#
5
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the kernel multimedia device drivers.
4#
5
6media-objs := media-device.o media-devnode.o media-entity.o \
7 media-request.o
8
9ifeq ($(CONFIG_MEDIA_CONTROLLER),y)
10 ifeq ($(CONFIG_USB),y)
11 media-objs += media-dev-allocator.o
12 endif
13endif
14
15#
16# I2C drivers should come before other drivers, otherwise they'll fail
17# when compiled as builtin drivers
18#
19obj-y += i2c/ tuners/
20obj-$(CONFIG_DVB_CORE) += dvb-frontends/
21
22#
6#
7# I2C drivers should come before other drivers, otherwise they'll fail
8# when compiled as builtin drivers
9#
10obj-y += i2c/ tuners/
11obj-$(CONFIG_DVB_CORE) += dvb-frontends/
12
13#
23# Now, let's link-in the media core
14# Now, let's link-in the media controller core
24#
25ifeq ($(CONFIG_MEDIA_CONTROLLER),y)
15#
16ifeq ($(CONFIG_MEDIA_CONTROLLER),y)
26 obj-$(CONFIG_MEDIA_SUPPORT) += media.o
17 obj-$(CONFIG_MEDIA_SUPPORT) += mc/
27endif
28
29obj-$(CONFIG_VIDEO_DEV) += v4l2-core/
30obj-$(CONFIG_DVB_CORE) += dvb-core/
31
32# There are both core and drivers at RC subtree - merge before drivers
33obj-y += rc/
34
35obj-$(CONFIG_CEC_CORE) += cec/
36
37#
38# Finally, merge the drivers that require the core
39#
40
41obj-y += common/ platform/ pci/ usb/ mmc/ firewire/ spi/
42obj-$(CONFIG_VIDEO_DEV) += radio/
43
18endif
19
20obj-$(CONFIG_VIDEO_DEV) += v4l2-core/
21obj-$(CONFIG_DVB_CORE) += dvb-core/
22
23# There are both core and drivers at RC subtree - merge before drivers
24obj-y += rc/
25
26obj-$(CONFIG_CEC_CORE) += cec/
27
28#
29# Finally, merge the drivers that require the core
30#
31
32obj-y += common/ platform/ pci/ usb/ mmc/ firewire/ spi/
33obj-$(CONFIG_VIDEO_DEV) += radio/
34