summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <devnull@localhost>2005-07-07 13:09:15 +0000
committerMauro Carvalho Chehab <devnull@localhost>2005-07-07 13:09:15 +0000
commit26f1f9728e5e3fdea7f573b5b159089b3fea1a6d (patch)
treea876199764a9c5164908a33e9b3c007c22e83fad
parentad4b842f624cefdf373f2ecfb3b710f1f00f048b (diff)
downloadmediapointer-dvb-s2-26f1f9728e5e3fdea7f573b5b159089b3fea1a6d.tar.gz
mediapointer-dvb-s2-26f1f9728e5e3fdea7f573b5b159089b3fea1a6d.tar.bz2
* scripts/buildpatch:
- Added code to eliminate BTTV check version when submiting pathes to new kernel. Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
-rw-r--r--v4l/ChangeLog8
-rw-r--r--v4l/scripts/buildpatch11
2 files changed, 19 insertions, 0 deletions
diff --git a/v4l/ChangeLog b/v4l/ChangeLog
index ca0020dab..a9e3697c2 100644
--- a/v4l/ChangeLog
+++ b/v4l/ChangeLog
@@ -1,3 +1,11 @@
+2005-07-07 13:08 mchehab
+ * scripts/buildpatch:
+
+ - Added code to eliminate BTTV check version when submiting pathes
+ to new kernel.
+
+ Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
+
2005-07-07 03:38 mkrufky
* lgdt3302.c:
- Remove #include <linux/version.h>.
diff --git a/v4l/scripts/buildpatch b/v4l/scripts/buildpatch
index 0778ee1ee..6cffe863a 100644
--- a/v4l/scripts/buildpatch
+++ b/v4l/scripts/buildpatch
@@ -62,6 +62,17 @@ sub filter_source ($$) {
if ($line =~ m/^#include \"compat.h\"/) {
next;
}
+ if ($line =~ /^#if.*BTTV_VERSION_CODE/) {
+ chomp($line);
+ $state = "if";
+ $line =~ s@^#if\s*@@;
+ $line =~ s@BTTV_VERSION_CODE@\$CODE@;
+ $line =~ s@KERNEL_VERSION\((\d+),\s*(\d+),\s*(\d+)\)@
+ sprintf("%d",$1*65536 + $2*256 + $3) @e;
+ $if = eval $line;
+ print OUT "/* BP #if $if ($line) */\n" if $DEBUG;
+ next;
+ }
if ($line =~ /^#if.*LINUX_VERSION_CODE/) {
chomp($line);
$line =~ s@^#if\s*@@;