diff options
author | Lu, ShifeiX A <shifeix.a.lu@intel.com> | 2017-09-14 13:59:07 +0800 |
---|---|---|
committer | zwei4 <david.wei@intel.com> | 2017-09-14 14:24:54 +0800 |
commit | 6cd1979741110bc949153e1f019bbff33e040fed (patch) | |
tree | 185653158a8ff0ee225b5b7a07241b90d69dbdbc /BuildBIOS.bat | |
parent | d0985c22d5c2c7e24fcf82f8bd77dad44eb342b8 (diff) | |
download | edk2-platforms-6cd1979741110bc949153e1f019bbff33e040fed.tar.xz |
Build Script.
Change build script to generate different BIOS ID to differentiate Minnow3 and Benson Glacier board.
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: lushifex <shifeix.a.lu@intel.com>
Diffstat (limited to 'BuildBIOS.bat')
-rw-r--r-- | BuildBIOS.bat | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/BuildBIOS.bat b/BuildBIOS.bat index 3bc68e5367..4bb4b03ce3 100644 --- a/BuildBIOS.bat +++ b/BuildBIOS.bat @@ -11,6 +11,7 @@ set BuildTarget=Debug set Compiler=/vs13
set Arch=/x64
set FabId=/B
+set BoardId=/MN
:: Optional arguments
:OptLoop
@@ -72,6 +73,18 @@ if /i "%~1"=="/B" ( shift
goto OptLoop
)
+if /i "%~1"=="/MN" (
+ set BoardId=/MN
+ echo.
+ shift
+ goto OptLoop
+)
+if /i "%~1"=="/BG" (
+ set BoardId=/BG
+ echo.
+ shift
+ goto OptLoop
+)
:: Required argument(s)
:: Require 2 input parameters
@@ -83,8 +96,8 @@ set BuildTarget=%~2 :OptLoopEnd
echo ---- Call Build Script of Broxton ----
-echo calling : Platform\%PlatformName%PlatformPkg\BuildIFWI.bat %Compiler% %Arch% %FabId% /fspw %BuildFlags% MINN %BuildTarget%
-call Platform\%PlatformName%PlatformPkg\BuildIFWI.bat %Compiler% %Arch% %FabId% /fspw %BuildFlags% MINN %BuildTarget%
+echo calling : Platform\%PlatformName%PlatformPkg\BuildIFWI.bat %Compiler% %Arch% %BoardId% %FabId% /fspw %BuildFlags% MINN %BuildTarget%
+call Platform\%PlatformName%PlatformPkg\BuildIFWI.bat %Compiler% %Arch% %BoardId% %FabId% /fspw %BuildFlags% MINN %BuildTarget%
goto Exit
@@ -99,6 +112,8 @@ echo /x64 Set Arch to X64 (default: X64) echo /IA32 Set Arch to IA32 (default: X64)
echo /A Set FabId to A (default: FAB_B)
echo /B Set FabId to B (default: FAB_B)
+echo /MN Minnow3 Board (default: MN)
+echo /BG Benson Glacier Board
echo PlatformName: Broxton
echo BuildTargets: Release, Debug
|