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 /Platform/BroxtonPlatformPkg/BuildIFWI.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 'Platform/BroxtonPlatformPkg/BuildIFWI.bat')
-rw-r--r-- | Platform/BroxtonPlatformPkg/BuildIFWI.bat | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/Platform/BroxtonPlatformPkg/BuildIFWI.bat b/Platform/BroxtonPlatformPkg/BuildIFWI.bat index 838f9b3999..1af0bf9d33 100644 --- a/Platform/BroxtonPlatformPkg/BuildIFWI.bat +++ b/Platform/BroxtonPlatformPkg/BuildIFWI.bat @@ -7,6 +7,7 @@ set "Build_Flags= " set Arch=X64 set SkipUsageFlag=FALSE set FabId=B
+set BoardId=MN
set WORKSPACE=%CD% if %WORKSPACE:~-1%==\ ( set WORKSPACE=%WORKSPACE:~0,-1% @@ -90,7 +91,18 @@ if /i "%~1"=="/B" ( shift goto OptLoop ) - +if /i "%~1"=="/MN" (
+ set BoardId=MN
+ set Build_Flags=%Build_Flags% /MN
+ shift
+ goto OptLoop
+)
+if /i "%~1"=="/BG" (
+ set BoardId=BG
+ set Build_Flags=%Build_Flags% /BG
+ shift
+ goto OptLoop
+)
:: Require 2 input parameters if "%~2"=="" ( @@ -130,7 +142,7 @@ del /f/q ver_strings >nul :: Translate Release Build Type if "%BUILD_TYPE%"=="R" set BUILD_TYPE=R -set BIOS_Name=%BOARD_ID%_%Arch%_%BUILD_TYPE%_%VERSION_MAJOR%_%VERSION_MINOR% +set BIOS_Name=%BOARD_ID%%BOARD_REV%_%Arch%_%BUILD_TYPE%_%VERSION_MAJOR%_%VERSION_MINOR%
:: Start Integration process echo ================================================================================ @@ -139,8 +151,8 @@ echo. echo BIOS ROM input: %BIOS_Name% echo. pushd %STITCH_PATH% - echo - call IFWIStitch_Simple.bat %STITCH_PATH%\%BIOS_Name% %FabId%
- call %STITCH_PATH%\IFWIStitch_Simple.bat %STITCH_PATH%\%BIOS_Name% %FabId%
+ echo - call IFWIStitch_Simple.bat %STITCH_PATH%\%BIOS_Name% %FabId% %BoardId%
+ call %STITCH_PATH%\IFWIStitch_Simple.bat %STITCH_PATH%\%BIOS_Name% %FabId% %BoardId%
@echo off popd if ErrorLevel 1 ( |