xref: /linux/drivers/media/Makefile (revision 320fefa9e2edc67011e235ea1d50f0d00ddfe004)
1# SPDX-License-Identifier: GPL-2.0
2#
3# Makefile for the kernel multimedia device drivers.
4#
5
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#
14# Now, let's link-in the media controller core
15#
16ifeq ($(CONFIG_MEDIA_CONTROLLER),y)
17  obj-$(CONFIG_MEDIA_SUPPORT) += mc/
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/ test-drivers/
33obj-$(CONFIG_VIDEO_DEV) += radio/
34
35