From 3fd44c36e5d02af9ab0c5356c64b12be303a40bf Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 7 Nov 2011 19:01:54 +0100 Subject: abuild: Don't try to use files that don't exist Collecting per-board abuild.xml is bound to fail if there are no such files. Change-Id: I6bd6b4389beda51654005e0380f0e52f006642db Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/422 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- util/abuild/abuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'util') diff --git a/util/abuild/abuild b/util/abuild/abuild index 8b81ea17fc..78a4718997 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -656,7 +656,7 @@ if [ "$target" != "" ]; then fi build_target $VENDOR $MAINBOARD $CONFIG test_target $VENDOR $MAINBOARD - cat $TARGET/${VENDOR}_${MAINBOARD}/abuild.xml >> $REAL_XMLFILE + test "$mode" != "text" && cat $TARGET/${VENDOR}_${MAINBOARD}/abuild.xml >> $REAL_XMLFILE XMLFILE=$REAL_XMLFILE else # build all boards per default @@ -667,9 +667,11 @@ else remove_target $VENDOR $MAINBOARD done done - for xmlfile in $TARGET/*_*/abuild.xml; do - cat $xmlfile >> $REAL_XMLFILE - done + if [ "$mode" != "text" ]; then + for xmlfile in $TARGET/*_*/abuild.xml; do + cat $xmlfile >> $REAL_XMLFILE + done + fi XMLFILE=$REAL_XMLFILE fi xml '' -- cgit v1.2.3