summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Georgi <patrick.georgi@coresystems.de>2009-04-22 08:10:48 +0000
committerPatrick Georgi <patrick.georgi@coresystems.de>2009-04-22 08:10:48 +0000
commit18d7320d17622e3fb87caae3eea645d8b06f942f (patch)
treef463fc0706bb266937ec6f601619e65291d736ca
parent6af0cb6efc64bcf694056fee1e31b0f4631661aa (diff)
Remove the requirement for payload.sh files to be executable. This
helps if the file is generated from patches, esp. if that happens often (eg. with quilt) Signed-off-by: Patrick Georgi <patrick.georgi@coresystems.de> Acked-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4165 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
-rwxr-xr-xutil/abuild/abuild6
1 files changed, 3 insertions, 3 deletions
diff --git a/util/abuild/abuild b/util/abuild/abuild
index 0fd4226b99..ac268eaa0c 100755
--- a/util/abuild/abuild
+++ b/util/abuild/abuild
@@ -127,12 +127,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