diff options
author | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-09-28 21:08:48 +0800 |
---|---|---|
committer | Yonghong Zhu <yonghong.zhu@intel.com> | 2017-09-30 09:46:27 +0800 |
commit | 5ac9e5b74873c57860dbe22e04c26c4ee318ccb2 (patch) | |
tree | 6da898d15717749d9a47a4a7e8f3d6e56f1acb8b /Platform/BroxtonPlatformPkg/BuildIFWI.bat | |
parent | fa673e3638798c1fab18cf5e3cc4c3036fdb13e7 (diff) | |
download | edk2-platforms-5ac9e5b74873c57860dbe22e04c26c4ee318ccb2.tar.xz |
Add option /m to enable multiple thread build
current in windows it takes ~10 minutes to build a image, so we add
/m option to use EDK II build tool's multiple thread build function,
it can save about half build time.
Cc: zwei4 <david.wei@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Yonghong Zhu <yonghong.zhu@intel.com>
Reviewed-by: zwei4 <david.wei@intel.com>
Diffstat (limited to 'Platform/BroxtonPlatformPkg/BuildIFWI.bat')
-rw-r--r-- | Platform/BroxtonPlatformPkg/BuildIFWI.bat | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Platform/BroxtonPlatformPkg/BuildIFWI.bat b/Platform/BroxtonPlatformPkg/BuildIFWI.bat index 1af0bf9d33..504258040e 100644 --- a/Platform/BroxtonPlatformPkg/BuildIFWI.bat +++ b/Platform/BroxtonPlatformPkg/BuildIFWI.bat @@ -8,6 +8,7 @@ set Arch=X64 set SkipUsageFlag=FALSE set FabId=B
set BoardId=MN
+set buildthread= set WORKSPACE=%CD% if %WORKSPACE:~-1%==\ ( set WORKSPACE=%WORKSPACE:~0,-1% @@ -104,6 +105,14 @@ if /i "%~1"=="/BG" ( goto OptLoop
)
+if /i "%~1"=="/m" ( + set buildthread=/m + echo. + shift + goto OptLoop +) + + :: Require 2 input parameters if "%~2"=="" ( echo. & echo -- ERROR: Not Enough Arguments Provided @@ -120,8 +129,8 @@ echo =========================================================================== echo Build_IFWI: Calling BIOS build Script... echo. -echo - call BuildBios.bat %Build_Flags% %Platform_Type% %Build_Target% -call %WORKSPACE%\%PLATFORM_PATH%\BuildBios.bat %Build_Flags% %Platform_Type% %Build_Target% +echo - call BuildBios.bat %buildthread% %Build_Flags% %Platform_Type% %Build_Target% +call %WORKSPACE%\%PLATFORM_PATH%\BuildBios.bat %buildthread% %Build_Flags% %Platform_Type% %Build_Target% if ErrorLevel 1 ( echo echo -- Error Building BIOS & echo. set exitCode=1 |