Hi, the attached patch removes the requirement for payload.sh files to be executable. That help if the file is generated from patches, esp. if that happens often (eg. with quilt)
Signed-off-by: Patrick Georgi <[email protected]>
Allow non-executable payload.sh scripts. This helps with using payload.sh scripts that come from patches, where no executable flag is set. Signed-off-by: Patrick Georgi <[email protected]> Index: util/abuild/abuild =================================================================== --- util/abuild/abuild +++ util/abuild/abuild @@ -124,12 +124,12 @@ function create_config # get a working payload for the board if we have one. # the --payload option expects a directory containing - # an executable shell script payload.sh + # a shell script payload.sh # Usage: payload.sh [VENDOR] [DEVICE] # the script returns an absolute path to the payload binary. - if [ -x $payloads/payload.sh ]; then - PAYLOAD=`$payloads/payload.sh $VENDOR $MAINBOARD` + if [ -f $payloads/payload.sh ]; then + PAYLOAD=`sh $payloads/payload.sh $VENDOR $MAINBOARD` printf "Using payload $PAYLOAD\n" fi
-- coreboot mailing list: [email protected] http://www.coreboot.org/mailman/listinfo/coreboot

