[openwrt/openwrt] kernel: package media controller driver
LEDE Commits
lede-commits at lists.infradead.org
Thu Nov 28 10:58:27 PST 2024
ynezz pushed a commit to openwrt/openwrt.git, branch openwrt-24.10:
https://git.openwrt.org/c584683a7f3c30754e2a2462642b9d81ee570d44
commit c584683a7f3c30754e2a2462642b9d81ee570d44
Author: Thomas Richard <thomas.richard at bootlin.com>
AuthorDate: Tue Nov 5 11:10:44 2024 +0100
kernel: package media controller driver
It is needed for the stm32/stm32mp1 subtarget.
Signed-off-by: Thomas Richard <thomas.richard at bootlin.com>
Link: https://github.com/openwrt/openwrt/pull/16716
Signed-off-by: Hauke Mehrtens <hauke at hauke-m.de>
(cherry picked from commit bb3418f21f7b8fe0dcd335375d183dd2a81772bf)
Link: https://github.com/openwrt/openwrt/pull/17097
Signed-off-by: Petr Štetiar <ynezz at true.cz>
---
package/kernel/linux/modules/video.mk | 25 +++++++++++++++++++++++--
1 file changed, 23 insertions(+), 2 deletions(-)
diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk
index f2fa82fd03..486b9b9ab1 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -12,6 +12,28 @@ V4L2_DIR=v4l2-core
V4L2_USB_DIR=usb
V4L2_MEM2MEM_DIR=platform
+#
+# Media
+#
+define KernelPackage/media-controller
+ SUBMENU:=$(VIDEO_MENU)
+ TITLE:=Media Controller API
+ KCONFIG:= \
+ CONFIG_MEDIA_SUPPORT \
+ CONFIG_MEDIA_CONTROLLER=y
+ FILES:= \
+ $(LINUX_DIR)/drivers/media/mc/mc.ko
+ AUTOLOAD:=$(call AutoProbe,mc)
+endef
+
+define KernelPackage/media-controller/description
+ Kernel modules for media controller API used to query media devices
+ internal topology and configure it dynamically.
+endef
+
+$(eval $(call KernelPackage,media-controller))
+
+
#
# Video Display
#
@@ -601,9 +623,8 @@ $(eval $(call KernelPackage,drm-radeon))
define KernelPackage/video-core
SUBMENU:=$(VIDEO_MENU)
TITLE=Video4Linux support
- DEPENDS:=+PACKAGE_kmod-i2c-core:kmod-i2c-core
+ DEPENDS:=+PACKAGE_kmod-i2c-core:kmod-i2c-core +kmod-media-controller
KCONFIG:= \
- CONFIG_MEDIA_SUPPORT \
CONFIG_MEDIA_CAMERA_SUPPORT=y \
CONFIG_VIDEO_DEV \
CONFIG_V4L_PLATFORM_DRIVERS=y \
More information about the lede-commits
mailing list