[OpenWrt-Devel] [PATCH] kernel: add missing kmod-video-videobuf2's object file in 4.4

Jan Čermák jan.cermak at nic.cz
Thu Jan 14 10:55:46 EST 2016


CONFIG_VIDEOBUF2_CORE produces two object files in Linux >= 4.4.
Conditionally add the new file to FILES of kmod-video-videobuf2.

Signed-off-by: Jan Čermák <jan.cermak at nic.cz>
---
 package/kernel/linux/modules/video.mk | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/kernel/linux/modules/video.mk b/package/kernel/linux/modules/video.mk
index 3b06a14..741aea1 100644
--- a/package/kernel/linux/modules/video.mk
+++ b/package/kernel/linux/modules/video.mk
@@ -129,6 +129,9 @@ define KernelPackage/video-videobuf2
 	$(LINUX_DIR)/drivers/media/$(V4L2_DIR)/videobuf2-core.ko \
 	$(LINUX_DIR)/drivers/media/$(V4L2_DIR)/videobuf2-memops.ko \
 	$(LINUX_DIR)/drivers/media/$(V4L2_DIR)/videobuf2-vmalloc.ko
+ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,4.4.0)),1)
+	FILES+=$(LINUX_DIR)/drivers/media/$(V4L2_DIR)/videobuf2-v4l2.ko
+endif
   AUTOLOAD:=$(call AutoLoad,65,videobuf2-core videobuf2-memops videobuf2-vmalloc)
   $(call AddDepends/video)
 endef
-- 
2.7.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list