18c2ecf20Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
28c2ecf20Sopenharmony_ci#
38c2ecf20Sopenharmony_ci# Makefile for the kernel multimedia device drivers.
48c2ecf20Sopenharmony_ci#
58c2ecf20Sopenharmony_ci
68c2ecf20Sopenharmony_ci#
78c2ecf20Sopenharmony_ci# I2C drivers should come before other drivers, otherwise they'll fail
88c2ecf20Sopenharmony_ci# when compiled as builtin drivers
98c2ecf20Sopenharmony_ci#
108c2ecf20Sopenharmony_ciobj-y += i2c/ tuners/
118c2ecf20Sopenharmony_ciobj-$(CONFIG_DVB_CORE)  += dvb-frontends/
128c2ecf20Sopenharmony_ci
138c2ecf20Sopenharmony_ci#
148c2ecf20Sopenharmony_ci# Now, let's link-in the media controller core
158c2ecf20Sopenharmony_ci#
168c2ecf20Sopenharmony_ciifeq ($(CONFIG_MEDIA_CONTROLLER),y)
178c2ecf20Sopenharmony_ci  obj-$(CONFIG_MEDIA_SUPPORT) += mc/
188c2ecf20Sopenharmony_ciendif
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ciobj-$(CONFIG_VIDEO_DEV) += v4l2-core/
218c2ecf20Sopenharmony_ciobj-$(CONFIG_DVB_CORE)  += dvb-core/
228c2ecf20Sopenharmony_ci
238c2ecf20Sopenharmony_ci# There are both core and drivers at RC subtree - merge before drivers
248c2ecf20Sopenharmony_ciobj-y += rc/
258c2ecf20Sopenharmony_ci
268c2ecf20Sopenharmony_ciobj-$(CONFIG_CEC_CORE) += cec/
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci#
298c2ecf20Sopenharmony_ci# Finally, merge the drivers that require the core
308c2ecf20Sopenharmony_ci#
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ciobj-y += common/ platform/ pci/ usb/ mmc/ firewire/ spi/ test-drivers/
338c2ecf20Sopenharmony_ciobj-$(CONFIG_VIDEO_DEV) += radio/
348c2ecf20Sopenharmony_ci
35