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:
parent
9a16e3e5a6
commit
002c9ff3e4
|
@ -590,6 +590,11 @@ if [ "$target" != "" ]; then
|
||||||
VENDOR=`printf $target|cut -f1 -d/`
|
VENDOR=`printf $target|cut -f1 -d/`
|
||||||
MAINBOARD=`printf $target|cut -f2 -d/`
|
MAINBOARD=`printf $target|cut -f2 -d/`
|
||||||
CONFIG=`printf $target|cut -f3 -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
|
build_target $VENDOR $MAINBOARD $CONFIG
|
||||||
test_target $VENDOR $MAINBOARD
|
test_target $VENDOR $MAINBOARD
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue