Remove the requirement for payload.sh files to be executable. This
authorPatrick Georgi <patrick.georgi@coresystems.de>
Wed, 22 Apr 2009 08:10:48 +0000 (08:10 +0000)
committerPatrick Georgi <patrick.georgi@coresystems.de>
Wed, 22 Apr 2009 08:10:48 +0000 (08:10 +0000)
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

util/abuild/abuild

index 0fd4226b99965f9fdc052f42087c4358fa158dc4..ac268eaa0c0c475b4e2e417935e72e6816f4f67d 100755 (executable)
@@ -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