diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2010-03-29 16:23:42 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2010-03-29 16:23:42 +0000 |
commit | 002c9ff3e453b5c93e1681c4ddc7624a4bf9e5a1 (patch) | |
tree | b9950dceb4f12543a1059ef846b5ca8143c75a49 /util/abuild | |
parent | 9a16e3e5a6f5b0dda15343132c271afc89dbd846 (diff) | |
download | coreboot-002c9ff3e453b5c93e1681c4ddc7624a4bf9e5a1.tar.xz |
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
Diffstat (limited to 'util/abuild')
-rwxr-xr-x | util/abuild/abuild | 5 |
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 |