diff options
author | Mauro Carvalho Chehab <devnull@localhost> | 2005-12-07 17:36:33 +0000 |
---|---|---|
committer | Mauro Carvalho Chehab <devnull@localhost> | 2005-12-07 17:36:33 +0000 |
commit | ce251032a49fd69940da3949e8e6b7d99b68e94f (patch) | |
tree | 588dd7def49b04cf54d98119edf61fa320bbf72f /v4l/scripts/gentree.pl | |
parent | 6032fe467d6254f4767d2db45d8f48332caa6395 (diff) | |
download | mediapointer-dvb-s2-ce251032a49fd69940da3949e8e6b7d99b68e94f.tar.gz mediapointer-dvb-s2-ce251032a49fd69940da3949e8e6b7d99b68e94f.tar.bz2 |
Added some tests for compatibility #if
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Diffstat (limited to 'v4l/scripts/gentree.pl')
-rw-r--r-- | v4l/scripts/gentree.pl | 28 |
1 files changed, 26 insertions, 2 deletions
diff --git a/v4l/scripts/gentree.pl b/v4l/scripts/gentree.pl index 49d0dd3ac..7c044ee06 100644 --- a/v4l/scripts/gentree.pl +++ b/v4l/scripts/gentree.pl @@ -21,7 +21,7 @@ if (!defined($DESTDIR)) { } my ($VERSION,$CODE) = &kernel_version; -my $DEBUG = 1; +my $DEBUG = 0; ################################################################# @@ -93,7 +93,7 @@ sub filter_source ($$) { $level++; next; } - if ($line =~ /^#if 1 .*KEEP.*/) { + if ($line =~ /^#if 1\s.*[Kk][Ee][Ee][Pp].*/) { print OUT "#if 1\n"; $state{$level} = "ifother"; $if{$level} = 1; @@ -109,6 +109,30 @@ sub filter_source ($$) { $level++; next; } + if ($line =~ /^#if.*HAVE_VIDEO_BUF_DVB/) { + chomp($line); + $state{$level} = "if"; + $if{$level} = 1; + print STDERR "/* BP #if 1 state=$state{$level} if=$if{$level} level=$level ($line) */\n" if $DEBUG; + $level++; + next; + } + if ($line =~ /^#if.*I2C_CLASS_TV_ANALOG/) { + chomp($line); + $state{$level} = "if"; + $if{$level} = 1; + print STDERR "/* BP #if 1 state=$state{$level} if=$if{$level} level=$level ($line) */\n" if $DEBUG; + $level++; + next; + } + if ($line =~ /^#if.*I2C_CLASS_TV_DIGITAL/) { + chomp($line); + $state{$level} = "if"; + $if{$level} = 1; + print STDERR "/* BP #if 1 state=$state{$level} if=$if{$level} level=$level ($line) */\n" if $DEBUG; + $level++; + next; + } if ($line =~ /^#if.*BTTV_VERSION_CODE/) { chomp($line); $line =~ s@^#if\s*@@; |