diff options
author | lushifex <shifeix.a.lu@intel.com> | 2017-06-08 15:58:21 +0800 |
---|---|---|
committer | zwei4 <david.wei@intel.com> | 2017-06-08 16:02:05 +0800 |
commit | 5b9597c9b486a74d379f75f9533bf5146edd92e3 (patch) | |
tree | b16fc0f0286caed5bb853a96eab0fa9dee6a4fad /BuildBIOS.sh | |
parent | 1acb19fd5d4371143a40b45fce2771a326529049 (diff) | |
download | edk2-platforms-5b9597c9b486a74d379f75f9533bf5146edd92e3.tar.xz |
Build script.
Change build script to differentiate FAB A and FAB B Board.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: lushifex <shifeix.a.lu@intel.com>
Diffstat (limited to 'BuildBIOS.sh')
-rwxr-xr-x | BuildBIOS.sh | 31 |
1 files changed, 30 insertions, 1 deletions
diff --git a/BuildBIOS.sh b/BuildBIOS.sh index fb67f04c21..c241d870e7 100755 --- a/BuildBIOS.sh +++ b/BuildBIOS.sh @@ -8,6 +8,34 @@ # THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, # WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. # + +##********************************************************************** +## Initial Setup +##********************************************************************** + +Build_Flags= + +## Parse Optional arguments +if [ "$1" == "/?" ]; then + Usage +fi + +## Build Flags +for (( i=1; i<=$#; )) + do + if [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/B" ]; then + FabId=B + Build_Flags="$Build_Flags /B" + shift + elif [ "$(echo $1 | tr 'a-z' 'A-Z')" == "/A" ]; then + FabId=A + Build_Flags="$Build_Flags /A" + shift + else + break + fi + done + Target_Flag=Release if [ "$1" == "Debug" ]; then Target_Flag=Debug @@ -18,6 +46,7 @@ if [ "$1" == "Release" ]; then shift fi +echo $Build_Flags echo $Target_Flag export WORKSPACE=`pwd` @@ -27,5 +56,5 @@ export PACKAGES_PATH=$WORKSPACE:$WORKSPACE/Core:$WORKSPACE/Silicon/:$WORKSPACE/P make -C BaseTools -bash ./Platform/BroxtonPlatformPkg/BuildIFWI.sh APLI $Target_Flag +bash ./Platform/BroxtonPlatformPkg/BuildIFWI.sh $Build_Flags APLI $Target_Flag |