Vlv2TbltDevicePkg: Add /m flag for multi-processor build

https://bugzilla.tianocore.org/show_bug.cgi?id=274

Add support for multi-processor builds using a /m flag.

Cc: Jiewen Yao <jiewen.yao@intel.com>
Cc: David Wei <david.wei@intel.com>
Cc: Mang Guo <mang.guo@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Michael Kinney <michael.d.kinney@intel.com>
Reviewed-by: Jiewen Yao <jiewen.yao@intel.com>
This commit is contained in:
Michael Kinney 2016-11-29 12:01:44 -08:00
parent eafde7a221
commit eae631bc68
2 changed files with 13 additions and 0 deletions

View File

@ -45,6 +45,11 @@ if /i "%~1"=="/y" (
shift
goto OptLoop
)
if /i "%~1"=="/m" (
set Build_Flags=%Build_Flags% /m
shift
goto OptLoop
)
if /i "%~1" == "/c" (
set Build_Flags=%Build_Flags% /c
shift

View File

@ -71,6 +71,13 @@ if /i "%~1"=="/y" (
shift
goto OptLoop
)
if /i "%~1"=="/m" (
if defined NUMBER_OF_PROCESSORS (
set /a build_threads=%NUMBER_OF_PROCESSORS%+1
)
shift
goto OptLoop
)
if /i "%~1" == "/c" (
echo Removing previous build files ...
if exist build (
@ -266,6 +273,7 @@ echo.
echo /c CleanAll before building
echo /l Generate build log file
echo /y Generate build report file
echo /m Enable multi-processor build
echo /IA32 Set Arch to IA32 (default: X64)
echo /X64 Set Arch to X64 (default: X64)
echo.