xref: /openbmc/linux/drivers/media/Makefile (revision b2441318)
1b2441318SGreg Kroah-Hartman# SPDX-License-Identifier: GPL-2.0
21da177e4SLinus Torvalds#
31da177e4SLinus Torvalds# Makefile for the kernel multimedia device drivers.
41da177e4SLinus Torvalds#
51da177e4SLinus Torvalds
653e269c1SLaurent Pinchartmedia-objs	:= media-device.o media-devnode.o media-entity.o
7cf4b9211SLaurent Pinchart
81daae517SMauro Carvalho Chehab#
91daae517SMauro Carvalho Chehab# I2C drivers should come before other drivers, otherwise they'll fail
101daae517SMauro Carvalho Chehab# when compiled as builtin drivers
111daae517SMauro Carvalho Chehab#
121daae517SMauro Carvalho Chehabobj-y += i2c/ tuners/
131daae517SMauro Carvalho Chehabobj-$(CONFIG_DVB_CORE)  += dvb-frontends/
141daae517SMauro Carvalho Chehab
151daae517SMauro Carvalho Chehab#
161daae517SMauro Carvalho Chehab# Now, let's link-in the media core
171daae517SMauro Carvalho Chehab#
18cf4b9211SLaurent Pinchartifeq ($(CONFIG_MEDIA_CONTROLLER),y)
19cf4b9211SLaurent Pinchart  obj-$(CONFIG_MEDIA_SUPPORT) += media.o
20cf4b9211SLaurent Pinchartendif
21cf4b9211SLaurent Pinchart
221daae517SMauro Carvalho Chehabobj-$(CONFIG_VIDEO_DEV) += v4l2-core/
231daae517SMauro Carvalho Chehabobj-$(CONFIG_DVB_CORE)  += dvb-core/
247c91f062SMauro Carvalho Chehab
251daae517SMauro Carvalho Chehab# There are both core and drivers at RC subtree - merge before drivers
261daae517SMauro Carvalho Chehabobj-y += rc/
271daae517SMauro Carvalho Chehab
289177e51dSHans Verkuilobj-$(CONFIG_CEC_CORE) += cec/
299177e51dSHans Verkuil
301daae517SMauro Carvalho Chehab#
311daae517SMauro Carvalho Chehab# Finally, merge the drivers that require the core
321daae517SMauro Carvalho Chehab#
331daae517SMauro Carvalho Chehab
347aae6e2dSCharles-Antoine Couretobj-y += common/ platform/ pci/ usb/ mmc/ firewire/ spi/
351daae517SMauro Carvalho Chehabobj-$(CONFIG_VIDEO_DEV) += radio/
361daae517SMauro Carvalho Chehab
37