public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH 0/1] Enable GNU make parallel jobs by default for GCC5 and CLANGPDB ToolChains
@ 2022-01-17 14:42 Steven Shi
  2022-01-17 14:42 ` [PATCH 1/1] BaseTools: Enable GNU make parallel jobs by default Steven Shi
  0 siblings, 1 reply; 6+ messages in thread
From: Steven Shi @ 2022-01-17 14:42 UTC (permalink / raw)
  To: devel
  Cc: bob.c.feng, yuwei.chen, ardb, leif, abner.chang, daniel.schaefer,
	Steven Shi

The GNU make parallel jobs flgs (-j or --jobs) can significantly (~30%) improve the edk2 build time in Linux.
This patch enable the GNU make parallel jobs by default.
Below the OVMF test result on GCC5 and CLANGPDB toolchains:

GCC5 build without patch:
jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ time build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5 -DSECURE_BOOT_ENABLE=TRUE
real    0m58.784s
user    5m18.820s
sys     0m46.337s
GCC5 build with patch:
jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ time build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t GCC5 -DSECURE_BOOT_ENABLE=TRUE
real    0m41.547s
user    5m23.617s
sys     0m47.397s

GCC5 build time improved by +29%

CLANGPDB build without patch:
jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ time build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t CLANGPDB -DSECURE_BOOT_ENABLE=TRUE
real    1m4.162s
user    4m15.025s
sys     0m30.480s

CLANGPDB build with patch:
jshi19@ub2-uefi-b01:~/wksp_efi/edk2-2$ time build -p OvmfPkg/OvmfPkgIa32X64.dsc -a IA32 -a X64 -t CLANGPDB -DSECURE_BOOT_ENABLE=TRUE
real    0m31.307s
user    4m21.952s
sys     0m30.641s
CLANGPDB build time improved by +51%


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(-)

-- 
2.22.0.windows.1


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-01-27  3:01 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-17 14:42 [PATCH 0/1] Enable GNU make parallel jobs by default for GCC5 and CLANGPDB ToolChains Steven Shi
2022-01-17 14:42 ` [PATCH 1/1] BaseTools: Enable GNU make parallel jobs by default Steven Shi
2022-01-17 14:54   ` Steven Shi
2022-01-19 10:52     ` [edk2-devel] " Steven Shi
2022-01-19 15:03       ` Abner Chang
2022-01-27  3:00   ` Bob Feng

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox