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