diff options
author | Patrick Georgi <patrick@georgi-clan.de> | 2011-11-07 19:01:54 +0100 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2011-11-07 22:04:21 +0100 |
commit | 3fd44c36e5d02af9ab0c5356c64b12be303a40bf (patch) | |
tree | 439e4527dec24a94d5ac5917f24b22b432733d28 | |
parent | 0802ad90ccfb6caa270918b5fc7aa628cf2a0378 (diff) | |
download | coreboot-3fd44c36e5d02af9ab0c5356c64b12be303a40bf.tar.xz |
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 <patrick@georgi-clan.de>
Reviewed-on: http://review.coreboot.org/422
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
-rwxr-xr-x | util/abuild/abuild | 10 |
1 files changed, 6 insertions, 4 deletions
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 '</abuild>' |