summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTrent Piepho <xyzzy@speakeasy.org>2007-10-15 17:39:17 -0700
committerTrent Piepho <xyzzy@speakeasy.org>2007-10-15 17:39:17 -0700
commitc674110d66e2a7be495cbfa70e97388565050db1 (patch)
treeadab270a99651f4ae0307e2ec7af4bf4cdb289e4
parent806b7d1d526873a3083e0b13fdc155d5cbc04984 (diff)
downloadmediapointer-dvb-s2-c674110d66e2a7be495cbfa70e97388565050db1.tar.gz
mediapointer-dvb-s2-c674110d66e2a7be495cbfa70e97388565050db1.tar.bz2
build: Deal with VIRT_TO_BUS
From: Trent Piepho <xyzzy@speakeasy.org> This Kconfig option was added in 2.6.23. On older kernels, use !PPC64 to set it. Signed-off-by: Trent Piepho <xyzzy@speakeasy.org>
-rwxr-xr-xv4l/scripts/make_kconfig.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/v4l/scripts/make_kconfig.pl b/v4l/scripts/make_kconfig.pl
index e228d38b4..b553a8a06 100755
--- a/v4l/scripts/make_kconfig.pl
+++ b/v4l/scripts/make_kconfig.pl
@@ -502,6 +502,12 @@ if (!defined $kernopts{HAS_IOMEM} && cmp_ver($kernver, '2.6.22') < 0) {
$kernopts{HAS_IOMEM} = 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
+ $kernopts{VIRT_TO_BUS} = 2 - $kernopts{PPC64};
+}
+
# Get minimum kernel version for our variables
parse_versions();