summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2010-03-29 16:23:42 +0000
committerStefan Reinauer <stepan@openbios.org>2010-03-29 16:23:42 +0000
commit002c9ff3e453b5c93e1681c4ddc7624a4bf9e5a1 (patch)
treeb9950dceb4f12543a1059ef846b5ca8143c75a49
parent9a16e3e5a6f5b0dda15343132c271afc89dbd846 (diff)
abuild: fail with dignity if mainboard does not exist.
Signed-off-by: Stefan Reinauer <stepan@coresystems.de> Acked-by: Stefan Reinauer <stepan@coresystems.de> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5312 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rwxr-xr-xutil/abuild/abuild5
1 files changed, 5 insertions, 0 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index fbb801ec82..6c32cacead 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -590,6 +590,11 @@ if [ "$target" != "" ]; then
VENDOR=`printf $target|cut -f1 -d/`
MAINBOARD=`printf $target|cut -f2 -d/`
CONFIG=`printf $target|cut -f3 -d/`
+ if [ ! -r $ROOT/src/mainboard/$target ]; then
+ printf "No such target: $target\n"
+ xml '</abuild>'
+ exit 1
+ fi
build_target $VENDOR $MAINBOARD $CONFIG
test_target $VENDOR $MAINBOARD
else