summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2009-05-11 20:40:28 +0000
committerHauke Mehrtens <hauke@hauke-m.de>2009-05-11 20:40:28 +0000
commit34d864de0a12c1d0aacedac55c198484f1907ee9 (patch)
tree621996aec9fb04bbb0fff5fc037fc890f059d9e9
parent5b9b001e2391e578740589c1084e061ce1d6cba1 (diff)
downloadmtk-20170518-34d864de0a12c1d0aacedac55c198484f1907ee9.zip
mtk-20170518-34d864de0a12c1d0aacedac55c198484f1907ee9.tar.gz
mtk-20170518-34d864de0a12c1d0aacedac55c198484f1907ee9.tar.bz2
With kernel bigger than 2.6.29 compat_ioctl32 will not be build.
SVN-Revision: 15779
-rw-r--r--package/kernel/modules/video.mk18
1 files changed, 16 insertions, 2 deletions
diff --git a/package/kernel/modules/video.mk b/package/kernel/modules/video.mk
index 8f46fbb..5fd008b 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