From: Michael Kinney <michael.d.kinney@intel.com>
To: edk2-devel@lists.01.org
Cc: Jiewen Yao <jiewen.yao@intel.com>,
David Wei <david.wei@intel.com>, Mang Guo <mang.guo@intel.com>
Subject: [Patch 3/3] Vlv2TbltDevicePkg: Add /m flag for multi-processor build
Date: Tue, 29 Nov 2016 14:12:52 -0800 [thread overview]
Message-ID: <1480457572-10564-4-git-send-email-michael.d.kinney@intel.com> (raw)
In-Reply-To: <1480457572-10564-1-git-send-email-michael.d.kinney@intel.com>
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>
---
Vlv2TbltDevicePkg/Build_IFWI.bat | 5 +++++
Vlv2TbltDevicePkg/bld_vlv.bat | 8 ++++++++
2 files changed, 13 insertions(+)
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 e6e0bd0..0193d4c 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.
--
2.6.3.windows.1
next prev parent reply other threads:[~2016-11-29 22:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-11-29 22:12 [Patch 0/3] Vlv2TbltDevicePkg: Update build scripts Michael Kinney
2016-11-29 22:12 ` [Patch 1/3] Vlv2TbltDevicePkg: Fix typo in name of nul output file Michael Kinney
2016-11-29 22:12 ` [Patch 2/3] Vlv2TbltDevicePkg: Add /y flag to generate report files Michael Kinney
2016-11-29 22:12 ` Michael Kinney [this message]
2016-11-30 1:58 ` [Patch 0/3] Vlv2TbltDevicePkg: Update build scripts Yao, Jiewen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-list from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1480457572-10564-4-git-send-email-michael.d.kinney@intel.com \
--to=devel@edk2.groups.io \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox