xref: /openbmc/linux/drivers/media/Makefile (revision 9177e51d)
11da177e4SLinus Torvalds#
21da177e4SLinus Torvalds# Makefile for the kernel multimedia device drivers.
31da177e4SLinus Torvalds#
41da177e4SLinus Torvalds
553e269c1SLaurent Pinchartmedia-objs	:= media-device.o media-devnode.o media-entity.o
6cf4b9211SLaurent Pinchart
71daae517SMauro Carvalho Chehab#
81daae517SMauro Carvalho Chehab# I2C drivers should come before other drivers, otherwise they'll fail
91daae517SMauro Carvalho Chehab# when compiled as builtin drivers
101daae517SMauro Carvalho Chehab#
111daae517SMauro Carvalho Chehabobj-y += i2c/ tuners/
121daae517SMauro Carvalho Chehabobj-$(CONFIG_DVB_CORE)  += dvb-frontends/
131daae517SMauro Carvalho Chehab
141daae517SMauro Carvalho Chehab#
151daae517SMauro Carvalho Chehab# Now, let's link-in the media core
161daae517SMauro Carvalho Chehab#
17cf4b9211SLaurent Pinchartifeq ($(CONFIG_MEDIA_CONTROLLER),y)
18cf4b9211SLaurent Pinchart  obj-$(CONFIG_MEDIA_SUPPORT) += media.o
19cf4b9211SLaurent Pinchartendif
20cf4b9211SLaurent Pinchart
211daae517SMauro Carvalho Chehabobj-$(CONFIG_VIDEO_DEV) += v4l2-core/
221daae517SMauro Carvalho Chehabobj-$(CONFIG_DVB_CORE)  += dvb-core/
237c91f062SMauro Carvalho Chehab
241daae517SMauro Carvalho Chehab# There are both core and drivers at RC subtree - merge before drivers
251daae517SMauro Carvalho Chehabobj-y += rc/
261daae517SMauro Carvalho Chehab
279177e51dSHans Verkuilobj-$(CONFIG_CEC_CORE) += cec/
289177e51dSHans Verkuil
291daae517SMauro Carvalho Chehab#
301daae517SMauro Carvalho Chehab# Finally, merge the drivers that require the core
311daae517SMauro Carvalho Chehab#
321daae517SMauro Carvalho Chehab
337aae6e2dSCharles-Antoine Couretobj-y += common/ platform/ pci/ usb/ mmc/ firewire/ spi/
341daae517SMauro Carvalho Chehabobj-$(CONFIG_VIDEO_DEV) += radio/
351daae517SMauro Carvalho Chehab
36