xref: /openbmc/linux/drivers/media/Makefile (revision 4f6cce39)
1#
2# Makefile for the kernel multimedia device drivers.
3#
4
5ifeq ($(CONFIG_MEDIA_CEC_EDID),y)
6  obj-$(CONFIG_MEDIA_SUPPORT) += cec-edid.o
7endif
8
9ifeq ($(CONFIG_MEDIA_CEC_SUPPORT),y)
10  obj-$(CONFIG_MEDIA_SUPPORT) += cec/
11endif
12
13media-objs	:= media-device.o media-devnode.o media-entity.o
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#
23# Now, let's link-in the media core
24#
25ifeq ($(CONFIG_MEDIA_CONTROLLER),y)
26  obj-$(CONFIG_MEDIA_SUPPORT) += media.o
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
35#
36# Finally, merge the drivers that require the core
37#
38
39obj-y += common/ platform/ pci/ usb/ mmc/ firewire/ spi/
40obj-$(CONFIG_VIDEO_DEV) += radio/
41
42