summaryrefslogtreecommitdiff
path: root/v4l/scripts/fix_kconfig.pl
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-03-12 11:10:42 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-12 11:10:42 -0300
commit7787613f5c5a3a00ebd6aca9893ef2c4ad679bc1 (patch)
tree4ffb8dbda509405c10b484edacb44807b16c5466 /v4l/scripts/fix_kconfig.pl
parent84c19b03d182a3ad1a04fa4be0772ef587225fe6 (diff)
parentd32bcc1401cca5f2ea369ce78ab70947034b5c8f (diff)
downloadmediapointer-dvb-s2-7787613f5c5a3a00ebd6aca9893ef2c4ad679bc1.tar.gz
mediapointer-dvb-s2-7787613f5c5a3a00ebd6aca9893ef2c4ad679bc1.tar.bz2
merge: http://jusst.de/hg/v4l-dvb
From: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l/scripts/fix_kconfig.pl')
-rwxr-xr-xv4l/scripts/fix_kconfig.pl19
1 files changed, 19 insertions, 0 deletions
diff --git a/v4l/scripts/fix_kconfig.pl b/v4l/scripts/fix_kconfig.pl
new file mode 100755
index 000000000..368a8faca
--- /dev/null
+++ b/v4l/scripts/fix_kconfig.pl
@@ -0,0 +1,19 @@
+#!/usr/bin/perl
+use strict;
+
+my $need_changes = 0;
+my $out;
+
+open IN, '<.config';
+while (<IN>) {
+ s/CONFIG_VIDEO_CX88_MPEG=y/CONFIG_VIDEO_CX88_MPEG=m/ and $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;
+}