From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mx.groups.io with SMTP id smtpd.web12.11920.1642430601353899549 for ; Mon, 17 Jan 2022 06:43:21 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="unable to parse pub key" header.i=@intel.com header.s=intel header.b=f1d6Ov61; spf=pass (domain: intel.com, ip: 192.55.52.115, mailfrom: steven.shi@intel.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642430601; x=1673966601; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=K+95a2SiWB8CGKUzr2lKJEWdXK16VtYQqhbfb0WPm8A=; b=f1d6Ov61XfMc1y1HxQlyweu1Zoo6W4/Mo/RtM+KGGmSXY9OcRruCyOPA 0+gPvr6zv5Lse5s9PH2vWROa6LTKEyZPWFS2016k6RFe2+5rSgpwiTsVH NsBmXhgltuM8mGVMGJ7pxbIeryga/gGAOkuntgSZied3UTW8VdDgQQ4jh DlHnmLGVgCHc3bYyg2yWg1t7gXE7r8OR6ekX2prd0XPKBbYwr1fORpnzN amjZgwGfsD4NpZ8u1ULmS90X4++dotN/Rt1RCc9q99AV3i2s9tADotNjv wkoOS9lNzvgzyyFt7VcxENGB6nk+bIOtczmlrevmQcMYanVHXspGeoigA w==; X-IronPort-AV: E=McAfee;i="6200,9189,10229"; a="244833136" X-IronPort-AV: E=Sophos;i="5.88,295,1635231600"; d="scan'208";a="244833136" Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2022 06:43:20 -0800 X-IronPort-AV: E=Sophos;i="5.88,295,1635231600"; d="scan'208";a="517436707" Received: from jshi19-mobl1.ccr.corp.intel.com ([10.254.213.227]) by orsmga007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 17 Jan 2022 06:43:17 -0800 From: "Steven Shi" To: devel@edk2.groups.io Cc: bob.c.feng@intel.com, yuwei.chen@intel.com, ardb@kernel.org, leif@nuviainc.com, abner.chang@hpe.com, daniel.schaefer@hpe.com, Steven Shi Subject: [PATCH 0/1] Enable GNU make parallel jobs by default for GCC5 and CLANGPDB ToolChains Date: Mon, 17 Jan 2022 22:42:50 +0800 Message-Id: <20220117144251.1087-1-steven.shi@intel.com> X-Mailer: git-send-email 2.22.0.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable The GNU make parallel jobs flgs (-j or --jobs) can significantly (~30%) imp= rove the edk2 build time in Linux.=0D This patch enable the GNU make parallel jobs by default.=0D Below the OVMF test result on GCC5 and CLANGPDB toolchains:=0D GCC5 build without patch:=0D jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ time build -p OvmfPkg/OvmfPkgIa32X64= .dsc -a IA32 -a X64 -t GCC5 -DSECURE_BOOT_ENABLE=3DTRUE=0D real 0m58.784s=0D user 5m18.820s=0D sys 0m46.337s=0D GCC5 build with patch:=0D jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ time build -p OvmfPkg/OvmfPkgIa32X64= .dsc -a IA32 -a X64 -t GCC5 -DSECURE_BOOT_ENABLE=3DTRUE=0D real 0m41.547s=0D user 5m23.617s=0D sys 0m47.397s=0D =0D GCC5 build time improved by +29%=0D =0D CLANGPDB build without patch:=0D jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ time build -p OvmfPkg/OvmfPkgIa32X64= .dsc -a IA32 -a X64 -t CLANGPDB -DSECURE_BOOT_ENABLE=3DTRUE=0D real 1m4.162s=0D user 4m15.025s=0D sys 0m30.480s=0D =0D CLANGPDB build with patch:=0D jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ time build -p OvmfPkg/OvmfPkgIa32X64= .dsc -a IA32 -a X64 -t CLANGPDB -DSECURE_BOOT_ENABLE=3DTRUE=0D real 0m31.307s=0D user 4m21.952s=0D sys 0m30.641s=0D CLANGPDB build time improved by +51%=0D Steven Shi (1): BaseTools: Enable GNU make parallel jobs by default BaseTools/Conf/tools_def.template | 4 ++++ BaseTools/Source/Python/AutoGen/GenMake.py | 5 +++-- BaseTools/Source/Python/AutoGen/PlatformAutoGen.py | 12 +++++++++++- 3 files changed, 18 insertions(+), 3 deletions(-) --=20 2.22.0.windows.1