diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-02-27 15:45:28 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-02-27 15:45:28 -0300 |
commit | 4fd232d7288d78d3df0efdfa915ad3c7aa51f805 (patch) | |
tree | 9dc3e5226645833ce7497ce3925bc4865db1db47 /v4l | |
parent | cef21adb04786b70ece0070f56639a34d4356ad8 (diff) | |
download | mediapointer-dvb-s2-4fd232d7288d78d3df0efdfa915ad3c7aa51f805.tar.gz mediapointer-dvb-s2-4fd232d7288d78d3df0efdfa915ad3c7aa51f805.tar.bz2 |
Fix a Kconfig bug when compiling with kernels older than 2.6.22.
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Priority: normal
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'v4l')
-rw-r--r-- | v4l/Makefile | 5 | ||||
-rwxr-xr-x | v4l/scripts/fix_kconfig.pl | 21 |
2 files changed, 26 insertions, 0 deletions
diff --git a/v4l/Makefile b/v4l/Makefile index 512b355f4..9d194178f 100644 --- a/v4l/Makefile +++ b/v4l/Makefile @@ -361,18 +361,23 @@ $(obj)/Kconfig: $(obj)/.version xconfig:: $(QCONF) $(obj)/Kconfig $(QCONF) $(obj)/Kconfig + ./scripts/fix_kconfig.pl gconfig:: $(GCONF) $(obj)/Kconfig $(GCONF) $(obj)/Kconfig + ./scripts/fix_kconfig.pl config:: $(CONF) $(obj)/Kconfig $(CONF) $(obj)/Kconfig + ./scripts/fix_kconfig.pl menuconfig:: $(MCONF) lxdialog $(obj)/Kconfig $(MCONF) $(obj)/Kconfig + ./scripts/fix_kconfig.pl allyesconfig allmodconfig:: $(obj)/.version ./scripts/make_kconfig.pl $(OUTDIR) $(SRCDIR) 1 + ./scripts/fix_kconfig.pl # rule to build kernel conf programs KMAKEVARS := config-targets=1 mixed-targets=0 dot-config=0 SRCDIR=$(SRCDIR) 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 (<IN>) { + 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; +} |