From 4fd232d7288d78d3df0efdfa915ad3c7aa51f805 Mon Sep 17 00:00:00 2001 From: Mauro Carvalho Chehab Date: Fri, 27 Feb 2009 15:45:28 -0300 Subject: Fix a Kconfig bug when compiling with kernels older than 2.6.22. From: Mauro Carvalho Chehab Priority: normal Signed-off-by: Mauro Carvalho Chehab --- v4l/scripts/fix_kconfig.pl | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 v4l/scripts/fix_kconfig.pl (limited to 'v4l/scripts') diff --git a/v4l/scripts/fix_kconfig.pl b/v4l/scripts/fix_kconfig.pl new file mode 100755 index 000000000..9a448cbc6 --- /dev/null +++ b/v4l/scripts/fix_kconfig.pl @@ -0,0 +1,21 @@ +#!/usr/bin/perl +use strict; + +my $need_changes = 0; +my $out; + +open IN,".config"; +while () { + if (s/CONFIG_VIDEO_CX88_MPEG=y/CONFIG_VIDEO_CX88_MPEG=m/) { + $need_changes=1; + $out .= $_; + } +} +close IN; + +if ($need_changes) { + printf("There's a known bug with the building system with this kernel. Working around.\n"); + open OUT, ">.config"; + print OUT $out; + close OUT; +} -- cgit v1.2.3