diff options
Diffstat (limited to 'v4l/scripts/buildpatch')
-rw-r--r-- | v4l/scripts/buildpatch | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/v4l/scripts/buildpatch b/v4l/scripts/buildpatch index fa9322fdf..319c46cf0 100644 --- a/v4l/scripts/buildpatch +++ b/v4l/scripts/buildpatch @@ -62,6 +62,14 @@ sub filter_source ($$) { if ($line =~ m/^#include \"compat.h\"/) { next; } + if ($line =~ /^#ifdef MM_KERNEL/) { + chomp($line); + $line =~ s@^#if\s*@@; + $state = "if"; + $if = eval $line; + print OUT "/* BP #if $if ($line) */\n" if $DEBUG; + next; + } if ($line =~ /^#if 0/) { chomp($line); $state = "if"; |