summaryrefslogtreecommitdiff
path: root/v4l/scripts/buildpatch
diff options
context:
space:
mode:
Diffstat (limited to 'v4l/scripts/buildpatch')
-rw-r--r--v4l/scripts/buildpatch14
1 files changed, 14 insertions, 0 deletions
diff --git a/v4l/scripts/buildpatch b/v4l/scripts/buildpatch
index 6cffe863a..fa9322fdf 100644
--- a/v4l/scripts/buildpatch
+++ b/v4l/scripts/buildpatch
@@ -62,6 +62,20 @@ sub filter_source ($$) {
if ($line =~ m/^#include \"compat.h\"/) {
next;
}
+ if ($line =~ /^#if 0/) {
+ chomp($line);
+ $state = "if";
+ $if = 0;
+ print OUT "/* BP #if $if ($line) */\n" if $DEBUG;
+ next;
+ }
+ if ($line =~ /^#if 1/) {
+ chomp($line);
+ $state = "if";
+ $if = 1;
+ print OUT "/* BP #if $if ($line) */\n" if $DEBUG;
+ next;
+ }
if ($line =~ /^#if.*BTTV_VERSION_CODE/) {
chomp($line);
$state = "if";