xref: /linux/drivers/media/Makefile (revision f79e4d5f92a129a1159c973735007d4ddc8541f3)
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
8#
9# I2C drivers should come before other drivers, otherwise they'll fail
10# when compiled as builtin drivers
11#
12obj-y += i2c/ tuners/
13obj-$(CONFIG_DVB_CORE)  += dvb-frontends/
14
15#
16# Now, let's link-in the media core
17#
18ifeq ($(CONFIG_MEDIA_CONTROLLER),y)
19  obj-$(CONFIG_MEDIA_SUPPORT) += media.o
20endif
21
22obj-$(CONFIG_VIDEO_DEV) += v4l2-core/
23obj-$(CONFIG_DVB_CORE)  += dvb-core/
24
25# There are both core and drivers at RC subtree - merge before drivers
26obj-y += rc/
27
28obj-$(CONFIG_CEC_CORE) += cec/
29
30#
31# Finally, merge the drivers that require the core
32#
33
34obj-y += common/ platform/ pci/ usb/ mmc/ firewire/ spi/
35obj-$(CONFIG_VIDEO_DEV) += radio/
36
37