[coreboot] New patch to review for coreboot: 1fc1ca9 abuild: abort if payload.sh failed

Patrick Georgi (patrick@georgi-clan.de) gerrit at coreboot.org
Tue Sep 25 11:05:25 CEST 2012


Patrick Georgi (patrick at georgi-clan.de) just uploaded a new patch set to gerrit, which you can find at http://review.coreboot.org/1536

-gerrit

commit 1fc1ca9986ad93f30eb82d23e8024a04398ea17f
Author: Patrick Georgi <patrick.georgi at secunet.com>
Date:   Mon Sep 24 20:52:42 2012 +0200

    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 at secunet.com>
---
 util/abuild/abuild | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/util/abuild/abuild b/util/abuild/abuild
index ecda5c3..04b8e05 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
 




More information about the coreboot mailing list