From 80d2526c727e09c15d234b9a999555dea038709c Mon Sep 17 00:00:00 2001 From: Patrick Georgi Date: Mon, 24 Sep 2012 20:52:42 +0200 Subject: abuild: abort if payload.sh failed With this chance it becomes practical to have payload.sh build/update the payload, and abort abuild if something bad happened. Change-Id: Iee25de2e8b62153c477b8e5d32e097b59797523c Signed-off-by: Patrick Georgi Reviewed-on: http://review.coreboot.org/1536 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich --- util/abuild/abuild | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'util') diff --git a/util/abuild/abuild b/util/abuild/abuild index ecda5c3491..04b8e05955 100755 --- a/util/abuild/abuild +++ b/util/abuild/abuild @@ -155,6 +155,10 @@ function create_config if [ -f $payloads/payload.sh ]; then PAYLOAD=`sh $payloads/payload.sh $VENDOR $MAINBOARD` + if [ $? -gt 0 ]; then + echo "problem with payload" + exit 1 + fi printf "Using payload $PAYLOAD\n" fi -- cgit v1.2.3