diff options
author | Michael Krufky <devnull@localhost> | 2005-08-20 05:43:56 +0000 |
---|---|---|
committer | Michael Krufky <devnull@localhost> | 2005-08-20 05:43:56 +0000 |
commit | 2a52f7f2f94985c85a91553a241c7650276487c3 (patch) | |
tree | 5a8aff1e92686a97d9d8c6407f9e18f97e8b87cc /v4l/scripts/buildpatch | |
parent | 333c03b5644f4374a48b5c73059149d6fdd7c0e7 (diff) | |
download | mediapointer-dvb-s2-2a52f7f2f94985c85a91553a241c7650276487c3.tar.gz mediapointer-dvb-s2-2a52f7f2f94985c85a91553a241c7650276487c3.tar.bz2 |
evaluate #ifdef MM_KERNEL based on existance of ($LINUX . "/.mm")
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Diffstat (limited to 'v4l/scripts/buildpatch')
-rw-r--r-- | v4l/scripts/buildpatch | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/v4l/scripts/buildpatch b/v4l/scripts/buildpatch index 319c46cf0..beeba862a 100644 --- a/v4l/scripts/buildpatch +++ b/v4l/scripts/buildpatch @@ -48,7 +48,13 @@ sub kernel_version() { sub filter_source ($$) { my ($in,$out) = @_; - my ($line,$if,$state); + my ($line,$if,$state,$mmkernel); + + if (-e $LINUX . "/.mm") { + $mmkernel = 1; + } else { + $mmkernel = 0; + } open IN, "<$in"; open OUT, ">$out"; @@ -64,9 +70,8 @@ sub filter_source ($$) { } if ($line =~ /^#ifdef MM_KERNEL/) { chomp($line); - $line =~ s@^#if\s*@@; $state = "if"; - $if = eval $line; + $if = $mmkernel; print OUT "/* BP #if $if ($line) */\n" if $DEBUG; next; } |