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
This commit is contained in:
Stefan Reinauer 2010-03-29 16:23:42 +00:00 committed by Stefan Reinauer
parent 9a16e3e5a6
commit 002c9ff3e4
1 changed files with 5 additions and 0 deletions

View File

@ -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