summaryrefslogtreecommitdiff
path: root/v4l
diff options
context:
space:
mode:
Diffstat (limited to 'v4l')
-rw-r--r--v4l/ChangeLog14
-rw-r--r--v4l/scripts/buildpatch44
2 files changed, 52 insertions, 6 deletions
diff --git a/v4l/ChangeLog b/v4l/ChangeLog
index 0b13fa6a9..d6e32c2bc 100644
--- a/v4l/ChangeLog
+++ b/v4l/ChangeLog
@@ -1,3 +1,17 @@
+2005-09-04 11:40 mchehab
+
+ * msp3400.c: (msp34xx_modus):
+ - Add KEEP comment on #if 1 to allow it to go to mainstream
+ * tvaudio.c, video-buf-dvb.h:
+ - Changes to eliminate dumb differences from kernel and to
+ eliminate $Id from Mainstream.
+ * scripts/buildpatch:
+ - Improved to allow keeping some #if 1 comments go to mainsteam
+ - Don't generate diffstat for empty changes.
+ - Remove $Id when generating patches.
+
+ Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
+
2005-09-02 21:57 mchehab
* cx88-input.c: (cx88_ir_init):
diff --git a/v4l/scripts/buildpatch b/v4l/scripts/buildpatch
index beeba862a..ab091bca0 100644
--- a/v4l/scripts/buildpatch
+++ b/v4l/scripts/buildpatch
@@ -82,6 +82,10 @@ sub filter_source ($$) {
print OUT "/* BP #if $if ($line) */\n" if $DEBUG;
next;
}
+ if ($line =~ /^#if 1 .*KEEP.*/) {
+ print OUT "#if 1\n";
+ next;
+ }
if ($line =~ /^#if 1/) {
chomp($line);
$state = "if";
@@ -134,6 +138,29 @@ sub filter_source ($$) {
close OUT;
}
+sub filter_dest ($$) {
+ my ($in,$out) = @_;
+ my ($line,$if,$state,$mmkernel);
+
+ if (-e $LINUX . "/.mm") {
+ $mmkernel = 1;
+ } else {
+ $mmkernel = 0;
+ }
+
+ open IN, "<$in";
+ open OUT, ">$out";
+
+ while ($line = <IN>) {
+ if ($line =~ m/\$Id: buildpatch,v 1.9 2005/09/04 11:45:20 mchehab Exp $/) {
+ next;
+ }
+ print OUT $line;
+ }
+ close IN;
+ close OUT;
+}
+
#################################################################
# build diffs
@@ -142,13 +169,16 @@ sub makediff ($$) {
my ($here,$kernel) = @_;
my ($line1,$line2,$file1,$file2);
my $tmp = "/tmp/src.$$";
+ my $tmp2 = "/tmp/dst.$$";
+
+ filter_source("$here","$tmp");
- filter_source($here,"$tmp");
if (-f "$LINUX/$kernel") {
- open DIFF, "diff -u $LINUX/$kernel $tmp|";
+ filter_dest("$LINUX/$kernel","$tmp2");
+ open DIFF, "diff -up $tmp2 $tmp|";
} else {
# new file
- open DIFF, "diff -u /dev/null $tmp|";
+ open DIFF, "diff -up /dev/null $tmp|";
}
# header
@@ -226,6 +256,8 @@ while (my $line = <CONFIG>) {
close(PATCHTMP);
select(STDOUT);
-system "diffstat -p0 -w72 $patchtmploc";
-print "\n",readfile($patchtmploc);
-unlink $patchtmploc;
+if (-s "$patchtmploc") {
+ system "diffstat -p0 -w72 $patchtmploc";
+ print "\n",readfile($patchtmploc);
+ unlink $patchtmploc;
+}