summaryrefslogtreecommitdiff
path: root/v4l/scripts/gentree.pl
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/scripts/gentree.pl')
-rw-r--r--v4l/scripts/gentree.pl28
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*@@;