]> git.proxmox.com Git - mirror_edk2.git/commitdiff
BeagleBoard: Support bash script when 'set -u'
authoroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 29 Dec 2011 12:16:57 +0000 (12:16 +0000)
committeroliviermartin <oliviermartin@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 29 Dec 2011 12:16:57 +0000 (12:16 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12902 6f19259b-4bc3-4df7-8a09-765794883524

BeagleBoardPkg/build.sh

index 87f29891ba0b58301e6317b28f7b58e3613c27ed..ad8e69fc2478393027b24cb0b4a02f9ee526be8d 100755 (executable)
@@ -37,7 +37,7 @@ function process_debug_scripts {
 #
 # Setup workspace if it is not set
 #
-if [ -z "$WORKSPACE" ]
+if [ -z "${WORKSPACE:-}" ]
 then
   echo Initializing workspace
   cd ..
@@ -53,7 +53,7 @@ fi
 #
 # Pick a default tool type for a given OS if no toolchain already defined
 #
-if [ -z "$TARGET_TOOLS" ]
+if [ -z "${TARGET_TOOLS:-}" ]
 then
   case `uname` in
     CYGWIN*) 
@@ -105,9 +105,9 @@ fi
 # Build the edk2 BeagleBoard code
 #
 if [[ $TARGET == RELEASE ]]; then
-  build -p $WORKSPACE/BeagleBoardPkg/BeagleBoardPkg.dsc -a ARM -t $TARGET_TOOLS -b $TARGET -D DEBUG_TARGET=RELEASE $2 $3 $4 $5 $6 $7 $8
+  build -p $WORKSPACE/BeagleBoardPkg/BeagleBoardPkg.dsc -a ARM -t $TARGET_TOOLS -b $TARGET -D DEBUG_TARGET=RELEASE ${2:-} ${3:-} ${4:-} ${5:-} ${6:-} ${7:-} ${8:-}
 else
-  build -p $WORKSPACE/BeagleBoardPkg/BeagleBoardPkg.dsc -a ARM -t $TARGET_TOOLS -b $TARGET $1 $2 $3 $4 $5 $6 $7 $8
+  build -p ${WORKSPACE:-}/BeagleBoardPkg/BeagleBoardPkg.dsc -a ARM -t $TARGET_TOOLS -b $TARGET ${1:-} ${2:-} ${3:-} ${4:-} ${5:-} ${6:-} ${7:-} ${8:-}
 fi