diff options
Diffstat (limited to 'v4l')
-rw-r--r-- | v4l/Makefile | 17 | ||||
-rwxr-xr-x | v4l/scripts/gentree.pl | 5 |
2 files changed, 16 insertions, 6 deletions
diff --git a/v4l/Makefile b/v4l/Makefile index 954d5227e..ad499751d 100644 --- a/v4l/Makefile +++ b/v4l/Makefile @@ -238,8 +238,21 @@ links:: oss: ln -sf . oss -config-compat.h:: $(obj)/.version .myconfig - perl scripts/make_config_compat.pl $(KDIR) $(obj)/.myconfig $(obj)/config-compat.h +config-compat.h:: .myconfig + @perl \ + -e 'print "#ifndef __CONFIG_COMPAT_H__\n";' \ + -e 'print "#define __CONFIG_COMPAT_H__\n\n";' \ + -e 'print "#include <linux/autoconf.h>\n\n";' \ + -e 'while(<>) {' \ + -e ' next unless /^(\S+)\s*:= (\S+)$$/;' \ + -e ' print "#undef $$1\n";' \ + -e ' print "#undef $$1_MODULE\n";' \ + -e ' if($$2 eq "n") { next; }' \ + -e ' elsif($$2 eq "m") { print "#define $$1_MODULE 1\n"; }' \ + -e ' elsif($$2 eq "y") { print "#define $$1 1\n"; }' \ + -e ' else { print "#define $$1 $$2\n"; }' \ + -e '} print "\n#endif\n";' \ + < .myconfig > config-compat.h kernel-links makelinks:: cd ..; v4l/scripts/makelinks.sh $(KDIR) diff --git a/v4l/scripts/gentree.pl b/v4l/scripts/gentree.pl index 08969dab3..f9f56bd7c 100755 --- a/v4l/scripts/gentree.pl +++ b/v4l/scripts/gentree.pl @@ -64,10 +64,7 @@ my %defs = ( 'CONFIG_XC3028' => 0, 'CONFIG_TUNER_TEA5761' => 0, 'I2C_CLASS_TV_ANALOG' => 1, - 'I2C_CLASS_TV_DIGITAL' => 1, - 'OLD_XMIT_LOCK' => 0, - 'CONFIG_VIVI_SCATTER' => 0, -); + 'I2C_CLASS_TV_DIGITAL' => 1); ################################################################# # helpers |