changeset 1494:0921d99c1b71

Allow buildall to do multiple native control-images, and put control image name in native-*.txt log.
author Rob Landley <rob@landley.net>
date Sat, 28 Jan 2012 20:40:58 -0600
parents a6cf6fde0703
children ef315a8461c0
files more/buildall-native.sh more/buildall.sh
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/more/buildall-native.sh	Sat Jan 28 19:33:07 2012 -0600
+++ b/more/buildall-native.sh	Sat Jan 28 20:40:58 2012 -0600
@@ -32,5 +32,6 @@
 # Run a control image for each target, using existing hdb.img
 
 [ -z "$TIMEOUT" ] && export TIMEOUT=60
+[ -z "$LOGFILE" ] && LOGFILE="$(echo $1 | sed 's@.*/\(.*\)\.hdc@\1@')"
 more/for-each-target.sh \
-  'more/timeout.sh $TIMEOUT "HDB=hdb.img more/native-build-from-build.sh $TARGET "'"$1"'" | tee build/logs/native-$TARGET.txt"'
+  'more/timeout.sh $TIMEOUT "HDB=hdb.img more/native-build-from-build.sh $TARGET '"$1 | tee build/logs/native-$LOGFILE-"'$TARGET.txt"'
--- a/more/buildall.sh	Sat Jan 28 19:33:07 2012 -0600
+++ b/more/buildall.sh	Sat Jan 28 20:40:58 2012 -0600
@@ -51,6 +51,9 @@
 
 # If we have a control image, build natively
 
-[ ! -z "$1" ] && more/buildall-native.sh "$1"
+for i in "$@"
+do
+  more/buildall-native.sh "$1"
+done
 
 more/smoketest-report.sh | tee build/logs/status.txt