Send commitlog mailing list submissions to
commitlog@lists.openmoko.org
To subscribe or unsubscribe via the World Wide Web, visit
http://lists.openmoko.org/mailman/listinfo/commitlog
or, via email, send a message with subject or body 'help' to
commitlog-requ...@lists.openmoko.org
You can reach the person managing the list at
commitlog-ow...@lists.openmoko.org
When replying, please edit your Subject line so it is more specific
than "Re: Contents of commitlog digest..."
Today's Topics:
1. r4960 - developers/werner/bin (wer...@docs.openmoko.org)
2. r4961 - developers/werner/bin (wer...@docs.openmoko.org)
3. r4962 - developers/werner/bin (wer...@docs.openmoko.org)
4. r4963 - developers/werner/bin (wer...@docs.openmoko.org)
5. r4964 - developers/werner/bin (wer...@docs.openmoko.org)
--- Begin Message ---
Author: werner
Date: 2009-03-26 04:31:37 +0100 (Thu, 26 Mar 2009)
New Revision: 4960
Added:
developers/werner/bin/apply-kernel
developers/werner/bin/noise.pl
developers/werner/bin/test-build-kernel
Log:
Tools for processing kernel patch submissions:
- apply-kernel takes a patch from a mail, tentatively applies it, and tests it
- test-build-kernel test builds the kernel for a number of configurations
- noise.pl filters build output so that only new stuff (e.g., warnings) shows
up
Added: developers/werner/bin/apply-kernel
===================================================================
--- developers/werner/bin/apply-kernel (rev 0)
+++ developers/werner/bin/apply-kernel 2009-03-26 03:31:37 UTC (rev 4960)
@@ -0,0 +1,24 @@
+#!/bin/sh -e
+#
+# apply-kernel - apply a patch and check if the kernel still builds
+#
+# test-build-kernel shows all the new build output the change introduced. For
+# this to work properly, "prime" the build system by running test-build-kernel
+# directly from the kernel top-level directory.
+#
+# If there's a problem, apply-kernel reverts the commit but leaves the changes
+# in the working tree, so that they can be edited and then manually committed
+# later.
+#
+
+# allow environment overrides
+
+KERNEL_DIR=${KERNEL_DIR:-/home/moko/git/kernel}
+
+cd $KERNEL_DIR
+git-am
+if ! test-build-kernel; then
+ # revert the commit but leave the changes in the working tree
+ git-reset --mixed HEAD^
+ exit 1
+fi
Property changes on: developers/werner/bin/apply-kernel
___________________________________________________________________
Name: svn:executable
+ *
Added: developers/werner/bin/noise.pl
===================================================================
--- developers/werner/bin/noise.pl (rev 0)
+++ developers/werner/bin/noise.pl 2009-03-26 03:31:37 UTC (rev 4960)
@@ -0,0 +1,59 @@
+#!/usr/bin/perl
+#
+# noise.pl - filter the noise a program makes
+#
+# The output of the program is filtered line by line against the content of the
+# noise file. Each line that appears in the noise file is displayed only
+# briefly.
+#
+# All new lines are preserved and also recorded (along with the old noise) in
+# the new noise file. The new noise file has the name of the old file, with
+# .new appended. The new noise file is only written if the program ran
+# successfully.
+#
+# Known bug: long lines will leave a residue even if they're "ignored".
+#
+
+
+$DEL = "\e[K"; # VT100 delete to EOL
+
+
+sub usage
+{
+ print STDERR "usage: $0 noise-file command\n";
+ exit(1);
+}
+
+
+&usage if @ARGV != 2;
+$old = $ARGV[0];
+$new = "$old.new";
+$cmd = $ARGV[1];
+
+open(F, $old) || die "$old: $!";
+while (<F>) {
+ $o .= $_;
+ chop;
+ $o{$_} = 1;
+}
+close F;
+
+$| = 1;
+
+open(P, "$cmd 2>&1 |") || die "$cmd: $!";
+while (<P>) {
+ chop;
+ print "$_$DEL\r";
+ next if defined $o{$_};
+ print "\n";
+ $n .= "$_\n";
+}
+close P || die "$cmd: $!";
+
+print "$DEL\r";
+
+exit 0 unless defined $n;
+
+open(F, ">$new") || die "$new: $!";
+print F $o."-----\n".$n || die "$new: $!";
+close F;
Property changes on: developers/werner/bin/noise.pl
___________________________________________________________________
Name: svn:executable
+ *
Added: developers/werner/bin/test-build-kernel
===================================================================
--- developers/werner/bin/test-build-kernel (rev 0)
+++ developers/werner/bin/test-build-kernel 2009-03-26 03:31:37 UTC (rev
4960)
@@ -0,0 +1,30 @@
+#!/bin/sh -e
+#
+# Test-build a kernel against a set of configs
+#
+
+#
+# Use of different object trees blatantly stolen from Andy's "build" script.
+#
+
+# allow environment overrides
+
+MAKES=${MAKES:-5}
+
+CONFIGS="gta02_packaging_defconfig \
+ gta01_moredrivers_defconfig \
+ om_3d7k_defconfig \
+ gta02_moredrivers_defconfig"
+
+for n in $CONFIGS; do
+ echo ===== $n =====
+ mkdir -p $n.d
+ cp arch/arm/configs/$n $n.d/.config
+ touch $n.d/.noise
+ if ! noise.pl $n.d/.noise "makek -j$MAKES O=$n.d zImage modules"; then
+ echo Failed at $n 1>&2
+ exit 1
+ fi
+ [ ! -f $n.d/.noise.new ] || mv $n.d/.noise.new $n.d/.noise
+done
+echo ===== Done =====
Property changes on: developers/werner/bin/test-build-kernel
___________________________________________________________________
Name: svn:executable
+ *
--- End Message ---
--- Begin Message ---
Author: werner
Date: 2009-03-26 04:32:52 +0100 (Thu, 26 Mar 2009)
New Revision: 4961
Modified:
developers/werner/bin/mdflt
Log:
Yahoo are right about RFC822 and I was wrong: no whitespace is required
after the colon.
Modified: developers/werner/bin/mdflt
===================================================================
--- developers/werner/bin/mdflt 2009-03-26 03:31:37 UTC (rev 4960)
+++ developers/werner/bin/mdflt 2009-03-26 03:32:52 UTC (rev 4961)
@@ -2,8 +2,8 @@
#
# mdflt - Maildir filter
#
-# Copyright (C) 2008 by Openmoko, Inc.
-# Written 2008 by Werner Almesberger
+# Copyright (C) 2008, 2009 by Openmoko, Inc.
+# Written 2008, 2009 by Werner Almesberger
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -82,7 +82,7 @@
while (<FILE>) {
chop;
last if /^$/;
- if (/^(\S+):\s+/) {
+ if (/^(\S+):/) {
$last = uc $1;
$hdr{$last} = $';
} elsif (/^(\S+):$/) {
--- End Message ---
--- Begin Message ---
Author: werner
Date: 2009-03-26 04:33:48 +0100 (Thu, 26 Mar 2009)
New Revision: 4962
Modified:
developers/werner/bin/makek
Log:
Make my kernel make script silent. That way, it doesn't clutter the output
when used with noise.pl
Modified: developers/werner/bin/makek
===================================================================
--- developers/werner/bin/makek 2009-03-26 03:32:52 UTC (rev 4961)
+++ developers/werner/bin/makek 2009-03-26 03:33:48 UTC (rev 4962)
@@ -1,3 +1,3 @@
-#!/bin/sh -x
+#!/bin/sh
PATH=$PATH:../u-boot/tools
make ARCH=arm CROSS_COMPILE=arm-angstrom-linux-gnueabi- "$@"
--- End Message ---
--- Begin Message ---
Author: werner
Date: 2009-03-26 04:35:46 +0100 (Thu, 26 Mar 2009)
New Revision: 4963
Modified:
developers/werner/bin/comm4
Log:
The times are a-changing: I now use xchat instead of good old plain ircII.
Modified: developers/werner/bin/comm4
===================================================================
--- developers/werner/bin/comm4 2009-03-26 03:33:48 UTC (rev 4962)
+++ developers/werner/bin/comm4 2009-03-26 03:35:46 UTC (rev 4963)
@@ -11,7 +11,8 @@
xterm -fn $FONT -geometry 80x24+560+9 -e bash-init \
'telnet host 1991' \
Werner &
-xterm -fn $FONT -geometry 80x40-70+-4 -e bash-init \
- 'su - werner bin/irc' &
+#xterm -fn $FONT -geometry 80x40-70+-4 -e bash-init \
+# 'su - werner bin/irc' &
+su - werner sh -c 'DISPLAY=:0 xchat' &
xterm -fn $FONT -geometry 80x59-65-2 -e bash-init \
mutt &
--- End Message ---
--- Begin Message ---
Author: werner
Date: 2009-03-26 07:21:17 +0100 (Thu, 26 Mar 2009)
New Revision: 4964
Modified:
developers/werner/bin/test-build-kernel
Log:
Run checkpatch to catch editing glitches. (Also nice to have when using
test-build-kernel for original changes.)
Modified: developers/werner/bin/test-build-kernel
===================================================================
--- developers/werner/bin/test-build-kernel 2009-03-26 03:35:46 UTC (rev
4963)
+++ developers/werner/bin/test-build-kernel 2009-03-26 06:21:17 UTC (rev
4964)
@@ -16,6 +16,8 @@
om_3d7k_defconfig \
gta02_moredrivers_defconfig"
+git diff HEAD | scripts/checkpatch.pl --no-signoff - || exit 1
+
for n in $CONFIGS; do
echo ===== $n =====
mkdir -p $n.d
--- End Message ---
_______________________________________________
commitlog mailing list
commitlog@lists.openmoko.org
http://lists.openmoko.org/mailman/listinfo/commitlog