[coreboot] New patch to review for coreboot: 6e67db0 abuild: Write XML/JUnit files per board

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Sat Nov 5 14:48:11 CET 2011


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/407

-gerrit

commit 6e67db0f0212f219c0eca3cae45ceff0a1abd79a
Author: Patrick Georgi <patrick at georgi-clan.de>
Date:   Sat Nov 5 13:21:14 2011 +0100

    abuild: Write XML/JUnit files per board
    
    Write them per-board and merge them after everything is done.
    This prepares for build parallelization.
    
    Change-Id: Ia4e7ce03473bcf8861fb9ae06e9c1270292401ac
    Signed-off-by: Patrick Georgi <patrick at georgi-clan.de>
---
 util/abuild/abuild |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/util/abuild/abuild b/util/abuild/abuild
index 4ab0230..8b81ea1 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -17,9 +17,12 @@
 ABUILD_DATE="December 10th, 2010"
 ABUILD_VERSION="0.9.1"
 
+TOP=$PWD
+
 # Where shall we place all the build trees?
 TARGET=coreboot-builds
-XMLFILE=$( pwd )/abuild.xml
+XMLFILE=$TOP/abuild.xml
+REAL_XMLFILE=$XMLFILE
 
 # path to payload. Should be more generic
 PAYLOAD=/dev/null
@@ -363,6 +366,7 @@ function build_target
  	HOSTCC='gcc'
 
 	printf "Building $VENDOR/$MAINBOARD; "
+	XMLFILE=$TOP/$TARGET/${VENDOR}_${MAINBOARD}/abuild.xml
 
 	xml "<mainboard>"
 	xml ""
@@ -652,6 +656,8 @@ if [ "$target" != "" ]; then
 	fi
 	build_target $VENDOR $MAINBOARD $CONFIG
 	test_target $VENDOR $MAINBOARD
+	cat $TARGET/${VENDOR}_${MAINBOARD}/abuild.xml >> $REAL_XMLFILE
+	XMLFILE=$REAL_XMLFILE
 else
 	# build all boards per default
 	for VENDOR in $( vendors ); do
@@ -661,6 +667,10 @@ else
 			remove_target $VENDOR $MAINBOARD
 		done
 	done
+	for xmlfile in $TARGET/*_*/abuild.xml; do
+		cat $xmlfile >> $REAL_XMLFILE
+	done
+	XMLFILE=$REAL_XMLFILE
 fi
 xml '</abuild>'
 junit '</testsuite>'




More information about the coreboot mailing list