summaryrefslogtreecommitdiff
path: root/Platform/BroxtonPlatformPkg/BuildBios.bat
diff options
context:
space:
mode:
authorYonghong Zhu <yonghong.zhu@intel.com>2017-09-28 21:08:48 +0800
committerYonghong Zhu <yonghong.zhu@intel.com>2017-09-30 09:46:27 +0800
commit5ac9e5b74873c57860dbe22e04c26c4ee318ccb2 (patch)
tree6da898d15717749d9a47a4a7e8f3d6e56f1acb8b /Platform/BroxtonPlatformPkg/BuildBios.bat
parentfa673e3638798c1fab18cf5e3cc4c3036fdb13e7 (diff)
downloadedk2-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/BuildBios.bat')
-rw-r--r--Platform/BroxtonPlatformPkg/BuildBios.bat8
1 files changed, 8 insertions, 0 deletions
diff --git a/Platform/BroxtonPlatformPkg/BuildBios.bat b/Platform/BroxtonPlatformPkg/BuildBios.bat
index 3ac411ed41..1e240e81d1 100644
--- a/Platform/BroxtonPlatformPkg/BuildBios.bat
+++ b/Platform/BroxtonPlatformPkg/BuildBios.bat
@@ -179,6 +179,14 @@ if /i "%~1"=="/BG" (
goto OptLoop
)
+if /i "%~1"=="/m" (
+ if defined NUMBER_OF_PROCESSORS (
+ set /a build_threads=%NUMBER_OF_PROCESSORS%
+ )
+ shift
+ goto OptLoop
+)
+
:: Required argument(s)
if "%~2"=="" (
echo. & echo -- ERROR: Not Enough Arguments Provided