summaryrefslogtreecommitdiff
path: root/BuildBIOS.sh
diff options
context:
space:
mode:
authorGuo Mang <mang.guo@intel.com>2018-04-27 15:46:50 +0800
committerGuo Mang <mang.guo@intel.com>2018-04-28 10:44:17 +0800
commit2e497f750976dbe1f40ef7b354eef1ef82c359cc (patch)
treecf7373ba44aa6101f38d7f4ac5e4375d429c2cc6 /BuildBIOS.sh
parent19ab545ff075b0b949a2f5c19c79a3995ac31a2f (diff)
downloadedk2-platforms-2e497f750976dbe1f40ef7b354eef1ef82c359cc.tar.xz
Upgrading core: Fix GCC build failure
Upgrate core to UDK2018: Fix GCC build failure. Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Guo Mang <mang.guo@intel.com>
Diffstat (limited to 'BuildBIOS.sh')
-rwxr-xr-xBuildBIOS.sh13
1 files changed, 7 insertions, 6 deletions
diff --git a/BuildBIOS.sh b/BuildBIOS.sh
index 91d6bd63d3..5cf0777da7 100755
--- a/BuildBIOS.sh
+++ b/BuildBIOS.sh
@@ -1,5 +1,5 @@
#
-# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
# This program and the accompanying materials
# are licensed and made available under the terms and conditions of the BSD License
# which accompanies this distribution. The full text of the license may be found at
@@ -108,12 +108,13 @@ fi
echo $Build_Flags
echo $Target_Flag
+cd ..
export WORKSPACE=`pwd`
-export PACKAGES_PATH=$WORKSPACE:$WORKSPACE/Core:$WORKSPACE/Silicon/:$WORKSPACE/Platform:$WORKSPACE/Platform/BroxtonPlatformPkg:$WORKSPACE/Silicon/BroxtonSoC:$WORKSPACE/Platform/BroxtonPlatformPkg/Common
+export CORE_PATH=$WORKSPACE/edk2
+export PACKAGES_PATH=$WORKSPACE:$WORKSPACE/edk2:$WORKSPACE/edk2-platforms/:$WORKSPACE/edk2-platforms/Platform:$WORKSPACE/edk2-platforms/Platform/BroxtonPlatformPkg:$WORKSPACE/edk2-platforms/Silicon/BroxtonSoC:$WORKSPACE/edk2-platforms/Silicon:$WORKSPACE/edk2-platforms/Platform/BroxtonPlatformPkg/Common
-. edksetup.sh BaseTools
+make -C $CORE_PATH/BaseTools
+source $CORE_PATH/edksetup.sh BaseTools
-make -C BaseTools
-
-bash ./Platform/BroxtonPlatformPkg/BuildIFWI.sh $Build_Flags Broxton $Target_Flag
+bash ./edk2-platforms/Platform/BroxtonPlatformPkg/BuildIFWI.sh $Build_Flags Broxton $Target_Flag