summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xBeagleBoardPkg/build.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/BeagleBoardPkg/build.sh b/BeagleBoardPkg/build.sh
index 8eaa1db..d777fe3 100755
--- a/BeagleBoardPkg/build.sh
+++ b/BeagleBoardPkg/build.sh
@@ -76,7 +76,8 @@ esac
TARGET=DEBUG
for arg in "$@"
do
- if [[ $arg == RELEASE ]]; then
+ if [[ $arg == RELEASE ]];
+ then
TARGET=RELEASE
fi
done
@@ -97,7 +98,12 @@ fi
#
# Build the edk2 BeagleBoard code
#
-build -p $WORKSPACE/BeagleBoardPkg/BeagleBoardPkg.dsc -a ARM -t $TARGET_TOOLS -b $TARGET $1 $2 $3 $4 $5 $6 $7 $8
+if [[ $TARGET == RELEASE ]]; then
+ build -p $WORKSPACE/BeagleBoardPkg/BeagleBoardPkg.dsc -a ARM -t $TARGET_TOOLS -b $1 $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
+fi
+
for arg in "$@"
do