Author: stepan Date: Mon Mar 29 18:23:42 2010 New Revision: 5312 URL: https://tracker.coreboot.org/trac/coreboot/changeset/5312
Log: abuild: fail with dignity if mainboard does not exist.
Signed-off-by: Stefan Reinauer stepan@coresystems.de Acked-by: Stefan Reinauer stepan@coresystems.de
Modified: trunk/util/abuild/abuild
Modified: trunk/util/abuild/abuild ============================================================================== --- trunk/util/abuild/abuild Mon Mar 29 16:45:36 2010 (r5311) +++ trunk/util/abuild/abuild Mon Mar 29 18:23:42 2010 (r5312) @@ -590,6 +590,11 @@ 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