From nobody Sat Apr 27 12:52:01 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) smtp.mailfrom=edk2-devel-bounces@lists.01.org Return-Path: Received: from ml01.01.org (ml01.01.org [198.145.21.10]) by mx.zohomail.com with SMTPS id 1517985921553640.0683569452481; Tue, 6 Feb 2018 22:45:21 -0800 (PST) Received: from [127.0.0.1] (localhost [IPv6:::1]) by ml01.01.org (Postfix) with ESMTP id E38A021F0DA41; Tue, 6 Feb 2018 22:39:21 -0800 (PST) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) (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 3309D223972B4 for ; Tue, 6 Feb 2018 22:39:20 -0800 (PST) Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 06 Feb 2018 22:45:03 -0800 Received: from shwdeopenpsi168.ccr.corp.intel.com ([10.239.158.129]) by fmsmga008.fm.intel.com with ESMTP; 06 Feb 2018 22:45:02 -0800 X-Original-To: edk2-devel@lists.01.org Received-SPF: none (zoho.com: 198.145.21.10 is neither permitted nor denied by domain of lists.01.org) client-ip=198.145.21.10; envelope-from=edk2-devel-bounces@lists.01.org; helo=ml01.01.org; Received-SPF: Pass (sender SPF authorized) identity=mailfrom; client-ip=192.55.52.120; helo=mga04.intel.com; envelope-from=yonghong.zhu@intel.com; receiver=edk2-devel@lists.01.org X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,471,1511856000"; d="scan'208";a="16145369" From: Yonghong Zhu To: edk2-devel@lists.01.org Date: Wed, 7 Feb 2018 14:45:00 +0800 Message-Id: <1517985900-9064-1-git-send-email-yonghong.zhu@intel.com> X-Mailer: git-send-email 2.6.1.windows.1 Subject: [edk2] [Patch V3] BaseTools: not specified value of MAX_CONCURRENT_THREAD_NUMBER X-BeenThere: edk2-devel@lists.01.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: EDK II Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Errors-To: edk2-devel-bounces@lists.01.org Sender: "edk2-devel" X-ZohoMail: RSF_4 Z_629925259 SPT_0 Content-Type: text/plain; charset="utf-8" V3: Update the build option help info when MAX_CONCURRENT_THREAD_NUMBER is not specified, tool will automatically detect number of processor threads. Fixes: https://bugzilla.tianocore.org/show_bug.cgi?id=3D775 Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Yonghong Zhu --- BaseTools/Conf/target.template | 13 ++++++++----- BaseTools/Source/Python/build/build.py | 2 +- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/BaseTools/Conf/target.template b/BaseTools/Conf/target.template index 787fc64..5ff0c19 100644 --- a/BaseTools/Conf/target.template +++ b/BaseTools/Conf/target.template @@ -1,7 +1,7 @@ # -# Copyright (c) 2006 - 2011, Intel Corporation. All rights reserved.
+# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.
# # This program and the accompanying materials # are licensed and made available under the terms and conditions of the B= SD License # which accompanies this distribution. The full text of the license may = be found at # http://opensource.org/licenses/bsd-license.php @@ -57,14 +57,17 @@ TOOL_CHAIN_CONF =3D Conf/tools_def.txt # TAGNAME List Optional Specify the name(s) of the t= ools_def.txt TagName to use. # If not specified, all applic= able TagName tools will be # used for the build. The lis= t uses space character separation. TOOL_CHAIN_TAG =3D MYTOOLS =20 -# MAX_CONCURRENT_THREAD_NUMBER NUMBER Optional The number of concurrent= threads. Recommend to set this -# value to one more than t= he number of your compurter -# cores or CPUs. Less than= 2 means disable multithread build. -MAX_CONCURRENT_THREAD_NUMBER =3D 1 +# MAX_CONCURRENT_THREAD_NUMBER NUMBER Optional The number of concurrent= threads. If not specified or set +# to zero, tool automatica= lly detect number of processor +# threads. Recommend to se= t this value to one less than the +# number of your computer = cores or CPUs. When value set to 1, +# means disable multithrea= d build. Not specify the default +# value in this file. +# MAX_CONCURRENT_THREAD_NUMBER =3D 1 =20 =20 # BUILD_RULE_CONF Filename Optional Specify the file name to use for the= build rules that are followed # when generating Makefiles. If not sp= ecified, the file:=20 # WORKSPACE/Conf/build_rule.txt will b= e used diff --git a/BaseTools/Source/Python/build/build.py b/BaseTools/Source/Pyth= on/build/build.py index 24f9962..f0dd76c 100644 --- a/BaseTools/Source/Python/build/build.py +++ b/BaseTools/Source/Python/build/build.py @@ -2321,11 +2321,11 @@ def MyOptionParser(): help=3D"Using the Tool Chain Tagname to build the platform, overri= ding target.txt's TOOL_CHAIN_TAG definition.") Parser.add_option("-x", "--sku-id", action=3D"callback", type=3D"strin= g", dest=3D"SkuId", callback=3DSingleCheckCallback, help=3D"Using this name of SKU ID to build the platform, overridin= g SKUID_IDENTIFIER in DSC file.") =20 Parser.add_option("-n", action=3D"callback", type=3D"int", dest=3D"Thr= eadNumber", callback=3DSingleCheckCallback, - help=3D"Build the platform using multi-threaded compiler. The valu= e overrides target.txt's MAX_CONCURRENT_THREAD_NUMBER. Less than 2 will dis= able multi-thread builds.") + help=3D"Build the platform using multi-threaded compiler. The valu= e overrides target.txt's MAX_CONCURRENT_THREAD_NUMBER.") =20 Parser.add_option("-f", "--fdf", action=3D"callback", type=3D"string",= dest=3D"FdfFile", callback=3DSingleCheckCallback, help=3D"The name of the FDF file to use, which overrides the setti= ng in the DSC file.") Parser.add_option("-r", "--rom-image", action=3D"append", type=3D"stri= ng", dest=3D"RomImage", default=3D[], help=3D"The name of FD to be generated. The name must be from [FD]= section in FDF file.") --=20 2.6.1.windows.1 _______________________________________________ edk2-devel mailing list edk2-devel@lists.01.org https://lists.01.org/mailman/listinfo/edk2-devel