From c674110d66e2a7be495cbfa70e97388565050db1 Mon Sep 17 00:00:00 2001 From: Trent Piepho Date: Mon, 15 Oct 2007 17:39:17 -0700 Subject: build: Deal with VIRT_TO_BUS From: Trent Piepho This Kconfig option was added in 2.6.23. On older kernels, use !PPC64 to set it. Signed-off-by: Trent Piepho --- v4l/scripts/make_kconfig.pl | 6 ++++++ 1 file changed, 6 insertions(+) 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(); -- cgit v1.2.3