summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@secunet.com>2012-09-24 20:52:42 +0200
committerRonald G. Minnich <rminnich@gmail.com>2012-09-25 16:08:53 +0200
commit80d2526c727e09c15d234b9a999555dea038709c (patch)
tree8546ee369d1321db347279f3ecaa24a7541276d3 /util
parent5c63761c378b14edf290c3f72e70a1d1d2709aae (diff)
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 <patrick.georgi@secunet.com> Reviewed-on: http://review.coreboot.org/1536 Tested-by: build bot (Jenkins) Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util')
-rwxr-xr-xutil/abuild/abuild4
1 files changed, 4 insertions, 0 deletions
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