162306a36Sopenharmony_ci# SPDX-License-Identifier: GPL-2.0
262306a36Sopenharmony_ci#
362306a36Sopenharmony_ci# Makefile for the kernel multimedia device drivers.
462306a36Sopenharmony_ci#
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#
762306a36Sopenharmony_ci# I2C drivers should come before other drivers, otherwise they'll fail
862306a36Sopenharmony_ci# when compiled as builtin drivers
962306a36Sopenharmony_ci#
1062306a36Sopenharmony_ciobj-y += i2c/ tuners/
1162306a36Sopenharmony_ciobj-$(CONFIG_DVB_CORE) += dvb-frontends/
1262306a36Sopenharmony_ci
1362306a36Sopenharmony_ci#
1462306a36Sopenharmony_ci# Now, let's link-in the media controller core
1562306a36Sopenharmony_ci#
1662306a36Sopenharmony_ciifeq ($(CONFIG_MEDIA_CONTROLLER),y)
1762306a36Sopenharmony_ci  obj-$(CONFIG_MEDIA_SUPPORT) += mc/
1862306a36Sopenharmony_ciendif
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ciobj-$(CONFIG_VIDEO_DEV) += v4l2-core/
2162306a36Sopenharmony_ciobj-$(CONFIG_DVB_CORE) += dvb-core/
2262306a36Sopenharmony_ci
2362306a36Sopenharmony_ci# There are both core and drivers at RC subtree - merge before drivers
2462306a36Sopenharmony_ciobj-y += rc/
2562306a36Sopenharmony_ci
2662306a36Sopenharmony_ciobj-$(CONFIG_CEC_CORE) += cec/
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci#
2962306a36Sopenharmony_ci# Finally, merge the drivers that require the core
3062306a36Sopenharmony_ci#
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ciobj-y += common/ platform/ pci/ usb/ mmc/ firewire/ spi/ test-drivers/
3362306a36Sopenharmony_ciobj-$(CONFIG_VIDEO_DEV) += radio/
3462306a36Sopenharmony_ci
35