From c5bbc9a7335014e30aa3670aa67ef58aa58a7b95 Mon Sep 17 00:00:00 2001 From: hauke Date: Mon, 11 May 2009 20:40:28 +0000 Subject: [video-core] With kernel bigger than 2.6.29 compat_ioctl32 will not be build. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@15779 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- package/kernel/modules/video.mk | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) (limited to 'package/kernel/modules') diff --git a/package/kernel/modules/video.mk b/package/kernel/modules/video.mk index 8f46fbb90f..5fd008bb70 100644 --- a/package/kernel/modules/video.mk +++ b/package/kernel/modules/video.mk @@ -23,19 +23,33 @@ define KernelPackage/video-core/2.4 AUTOLOAD:=$(call AutoLoad,60,videodev) endef +ifeq ($(strip $(call CompareKernelPatchVer,$(KERNEL_PATCHVER),ge,2.6.29)),1) define KernelPackage/video-core/2.6 FILES:= \ $(LINUX_DIR)/drivers/media/video/v4l2-common.$(LINUX_KMOD_SUFFIX) \ $(LINUX_DIR)/drivers/media/video/v4l1-compat.$(LINUX_KMOD_SUFFIX) \ - $(LINUX_DIR)/drivers/media/video/compat_ioctl32.$(LINUX_KMOD_SUFFIX) \ $(LINUX_DIR)/drivers/media/video/videodev.$(LINUX_KMOD_SUFFIX) AUTOLOAD:=$(call AutoLoad,60, \ + v4l1-compat \ + videodev \ v4l2-common \ + ) +endef +else +define KernelPackage/video-core/2.6 + FILES:= \ + $(LINUX_DIR)/drivers/media/video/v4l2-common.$(LINUX_KMOD_SUFFIX) \ + $(LINUX_DIR)/drivers/media/video/v4l1-compat.$(LINUX_KMOD_SUFFIX) \ + $(LINUX_DIR)/drivers/media/video/compat_ioctl32.$(LINUX_KMOD_SUFFIX) \ + $(LINUX_DIR)/drivers/media/video/videodev.$(LINUX_KMOD_SUFFIX) + AUTOLOAD:=$(call AutoLoad,60, \ v4l1-compat \ - compat_ioctl32 \ videodev \ + v4l2-common \ + compat_ioctl32 \ ) endef +endif define KernelPackage/video-core/description Kernel modules for Video4Linux support -- cgit v1.2.3