summaryrefslogtreecommitdiff
path: root/v4l/scripts
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-02-10 21:31:59 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-02-10 21:31:59 +0100
commit32f8b8ea3ec164ca62a54c495c21ca6d8e0f26b8 (patch)
tree5800166465ef3eb5f611d710370c8302d36ee7e5 /v4l/scripts
parentac487327990e64111a50dee1162658ea7b949645 (diff)
downloadmediapointer-dvb-s2-32f8b8ea3ec164ca62a54c495c21ca6d8e0f26b8.tar.gz
mediapointer-dvb-s2-32f8b8ea3ec164ca62a54c495c21ca6d8e0f26b8.tar.bz2
Allow compiling some PCI drivers on older kernels
From: Hans Verkuil <hverkuil@xs4all.nl> This patch fixes build of bttv, cx88 and saa7134 on vanilla kernels older than 2.6.22. VIDEOBUF_DMA_SG has a dependency on CONFIG_HAS_DMA, which was apparently introduced in 2.6.22 and didn't exist in 2.6.21. Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l/scripts')
-rwxr-xr-xv4l/scripts/make_kconfig.pl5
1 files changed, 5 insertions, 0 deletions
diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl
index 7c259eeb6..144325c34 100755
--- a/v4l/scripts/make_kconfig.pl
+++ b/v4l/scripts/make_kconfig.pl
@@ -537,6 +537,11 @@ if (!defined $kernopts{HAS_IOMEM} && cmp_ver($kernver, '2.6.22') < 0) {
$kernopts{HAS_IOMEM} = 2;
}
+# Kernel < 2.6.22 is missing the HAS_DMA option
+if (!defined $kernopts{HAS_DMA} && cmp_ver($kernver, '2.6.22') < 0) {
+ $kernopts{HAS_DMA} = 2;
+}
+
# Kernel < 2.6.23 is missing the VIRT_TO_BUS option
if (!defined $kernopts{VIRT_TO_BUS} && cmp_ver($kernver, '2.6.23') < 0) {
# VIRT_TO_BUS -> !PPC64