From 002c9ff3e453b5c93e1681c4ddc7624a4bf9e5a1 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Mon, 29 Mar 2010 16:23:42 +0000 Subject: [PATCH] abuild: fail with dignity if mainboard does not exist. Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@5312 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- util/abuild/abuild | 5 +++++ 1 file changed, 5 insertions(+) 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 '' + exit 1 + fi build_target $VENDOR $MAINBOARD $CONFIG test_target $VENDOR $MAINBOARD else