diff options
author | Michael Kinney <michael.d.kinney@intel.com> | 2016-11-29 12:01:44 -0800 |
---|---|---|
committer | Michael Kinney <michael.d.kinney@intel.com> | 2016-11-30 10:21:23 -0800 |
commit | eae631bc687c3cbfab01632ce3bc21783d22b590 (patch) | |
tree | b3fdbccb46aaa5278cc7b131e89dc88f04854c6c | |
parent | eafde7a221b981c0458b4620a9c11cb6e8947e9e (diff) | |
download | edk2-eae631bc687c3cbfab01632ce3bc21783d22b590.zip edk2-eae631bc687c3cbfab01632ce3bc21783d22b590.tar.gz edk2-eae631bc687c3cbfab01632ce3bc21783d22b590.tar.bz2 |
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>
-rw-r--r-- | Vlv2TbltDevicePkg/Build_IFWI.bat | 5 | ||||
-rw-r--r-- | Vlv2TbltDevicePkg/bld_vlv.bat | 8 |
2 files changed, 13 insertions, 0 deletions
diff --git a/Vlv2TbltDevicePkg/Build_IFWI.bat b/Vlv2TbltDevicePkg/Build_IFWI.bat index d33f73e..ac22a76 100644 --- a/Vlv2TbltDevicePkg/Build_IFWI.bat +++ b/Vlv2TbltDevicePkg/Build_IFWI.bat @@ -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
diff --git a/Vlv2TbltDevicePkg/bld_vlv.bat b/Vlv2TbltDevicePkg/bld_vlv.bat index beec27c..a1d8c5b 100644 --- a/Vlv2TbltDevicePkg/bld_vlv.bat +++ b/Vlv2TbltDevicePkg/bld_vlv.bat @@ -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.
|