summaryrefslogtreecommitdiff
path: root/BuildBIOS.sh
diff options
context:
space:
mode:
authorzwei4 <david.wei@intel.com>2017-05-16 14:00:24 +0800
committerzwei4 <david.wei@intel.com>2017-05-16 14:00:24 +0800
commitf6e803f2e0106d0e2dbdac5c21a6ea988e62970e (patch)
treecb30f954bf911628fad4c0c627d87879f1cc9840 /BuildBIOS.sh
parent44830de298e069275027874e889898b5f8923195 (diff)
downloadedk2-platforms-f6e803f2e0106d0e2dbdac5c21a6ea988e62970e.tar.xz
GCC build script change.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: zwei4 <david.wei@intel.com>
Diffstat (limited to 'BuildBIOS.sh')
-rwxr-xr-xBuildBIOS.sh8
1 files changed, 7 insertions, 1 deletions
diff --git a/BuildBIOS.sh b/BuildBIOS.sh
index 49a9e1b129..0dece1f773 100755
--- a/BuildBIOS.sh
+++ b/BuildBIOS.sh
@@ -8,6 +8,12 @@
# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
#
+Target_Flag=Release
+if [ "$1" == "Debug" ]; then
+ Target_Flag=Debug
+fi
+
+echo $Target_Flag
export WORKSPACE=`pwd`
export PACKAGES_PATH=$WORKSPACE:$WORKSPACE/Core:$WORKSPACE/Silicon/:$WORKSPACE/Platform:$WORKSPACE/Platform/BroxtonPlatformPkg:$WORKSPACE/Silicon/BroxtonSoC:$WORKSPACE/Platform/BroxtonPlatformPkg/Common
@@ -16,5 +22,5 @@ export PACKAGES_PATH=$WORKSPACE:$WORKSPACE/Core:$WORKSPACE/Silicon/:$WORKSPACE/P
make -C BaseTools
-./Platform/BroxtonPlatformPkg/BuildIFWI.sh APLI Release
+. ./Platform/BroxtonPlatformPkg/BuildIFWI.sh APLI $Target_Flag