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>
This commit is contained in:
parent
5c63761c37
commit
80d2526c72
|
@ -155,6 +155,10 @@ function create_config
|
||||||
|
|
||||||
if [ -f $payloads/payload.sh ]; then
|
if [ -f $payloads/payload.sh ]; then
|
||||||
PAYLOAD=`sh $payloads/payload.sh $VENDOR $MAINBOARD`
|
PAYLOAD=`sh $payloads/payload.sh $VENDOR $MAINBOARD`
|
||||||
|
if [ $? -gt 0 ]; then
|
||||||
|
echo "problem with payload"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
printf "Using payload $PAYLOAD\n"
|
printf "Using payload $PAYLOAD\n"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue