summaryrefslogtreecommitdiff
path: root/Platform/BroxtonPlatformPkg/BuildBios.bat
diff options
context:
space:
mode:
authorLu, ShifeiX A <shifeix.a.lu@intel.com>2017-06-16 17:13:06 +0800
committerzwei4 <david.wei@intel.com>2017-06-16 17:14:47 +0800
commit1ab2511598285f57ec2f48ba1cd260be29e4e478 (patch)
tree1a17c56781475caa05f8dcbc2216af452d1a5e45 /Platform/BroxtonPlatformPkg/BuildBios.bat
parentc8a19a8804acbf9fcd0cdb2ee2ed1861083896ac (diff)
downloadedk2-platforms-1ab2511598285f57ec2f48ba1cd260be29e4e478.tar.xz
Change BIOS ID.
Change BIOS ID 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 'Platform/BroxtonPlatformPkg/BuildBios.bat')
-rw-r--r--Platform/BroxtonPlatformPkg/BuildBios.bat10
1 files changed, 8 insertions, 2 deletions
diff --git a/Platform/BroxtonPlatformPkg/BuildBios.bat b/Platform/BroxtonPlatformPkg/BuildBios.bat
index b59e8ebe55..f656876c21 100644
--- a/Platform/BroxtonPlatformPkg/BuildBios.bat
+++ b/Platform/BroxtonPlatformPkg/BuildBios.bat
@@ -216,9 +216,9 @@ if "%Arch%"=="IA32" (
::Stage of copy of BiosId.env in Conf/ with Platform_Type and Build_Target values removed
if "%Arch%"=="X64" (
- findstr /b /v "BOARD_ID BUILD_TYPE" %PLATFORM_PACKAGE%\BiosId.env > Conf\BiosId.env
+ findstr /b /v "BOARD_ID BUILD_TYPE VERSION_MINOR" %PLATFORM_PACKAGE%\BiosId.env > Conf\BiosId.env
) else if "%Arch%"=="IA32" (
- findstr /b /v "BOARD_ID BUILD_TYPE BOARD_EXT" %PLATFORM_PACKAGE%\BiosId.env > Conf\BiosId.env
+ findstr /b /v "BOARD_ID BUILD_TYPE VERSION_MINOR BOARD_EXT" %PLATFORM_PACKAGE%\BiosId.env > Conf\BiosId.env
echo BOARD_EXT = I32 >> Conf\BiosId.env
)
@@ -230,6 +230,12 @@ if /i "%~2" == "RELEASE" (
echo BUILD_TYPE = D >> Conf\BiosId.env
)
+if %FabId%==B (
+ echo VERSION_MINOR = 0B >> Conf\BiosId.env
+) else (
+ echo VERSION_MINOR = 0A >> Conf\BiosId.env
+)
+
:: Set the Build_Type, Version_Major, and Version_Minor environment variables
find /v "#" Conf\BiosId.env > ver_strings
for /f "tokens=1,3" %%i in (ver_strings) do set %%i=%%j