From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 38F5881D38 for ; Tue, 29 Nov 2016 14:12:55 -0800 (PST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga103.fm.intel.com with ESMTP; 29 Nov 2016 14:12:54 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.31,570,1473145200"; d="scan'208";a="1092281421" Received: from mdkinney-mobl.amr.corp.intel.com ([10.232.100.16]) by fmsmga002.fm.intel.com with ESMTP; 29 Nov 2016 14:12:54 -0800 From: Michael Kinney To: edk2-devel@lists.01.org Cc: Jiewen Yao , David Wei , Mang Guo Date: Tue, 29 Nov 2016 14:12:52 -0800 Message-Id: <1480457572-10564-4-git-send-email-michael.d.kinney@intel.com> X-Mailer: git-send-email 2.6.3.windows.1 In-Reply-To: <1480457572-10564-1-git-send-email-michael.d.kinney@intel.com> References: <1480457572-10564-1-git-send-email-michael.d.kinney@intel.com> Subject: [Patch 3/3] Vlv2TbltDevicePkg: Add /m flag for multi-processor build X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 Nov 2016 22:12:55 -0000 https://bugzilla.tianocore.org/show_bug.cgi?id=274 Add support for multi-processor builds using a /m flag. Cc: Jiewen Yao Cc: David Wei Cc: Mang Guo Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Michael Kinney --- 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