summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--v4l/ChangeLog8
-rw-r--r--v4l/scripts/gentree.pl28
2 files changed, 34 insertions, 2 deletions
diff --git a/v4l/ChangeLog b/v4l/ChangeLog
index f9a3c1403..ca94a3147 100644
--- a/v4l/ChangeLog
+++ b/v4l/ChangeLog
@@ -1,3 +1,11 @@
+2005-12-07 17:33 mchehab
+
+ * v4l/scripts/gentree.pl:
+
+ - added some tests for compatibility #if
+
+ Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
+
2005-12-07 17:29 mchehab
* linux/drivers/media/dvb/b2c2/flexcop-reg.h:
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*@@;