From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: mx.groups.io; dkim=missing; spf=none, err=permanent DNS error (domain: bsdio.com, ip: 65.103.231.193, mailfrom: rebecca@bsdio.com) Received: from muon.bsdio.com (muon.bsdio.com [65.103.231.193]) by groups.io with SMTP; Sun, 21 Jul 2019 17:58:27 -0700 Received: from muon.bsdio.com (localhost [127.0.0.1]) by muon.bsdio.com (Postfix) with ESMTP id DBF0E886AF; Sun, 21 Jul 2019 18:58:47 -0600 (MDT) Received: from muon.bsdio.com ([127.0.0.1]) by muon.bsdio.com (muon.bsdio.com [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gVQdKx1em9f4; Sun, 21 Jul 2019 18:58:46 -0600 (MDT) Received: from photon.int.bluestop.org (unknown [10.0.10.120]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by muon.bsdio.com (Postfix) with ESMTPSA; Sun, 21 Jul 2019 18:58:46 -0600 (MDT) From: rebecca@bsdio.com To: devel@edk2.groups.io, Jordan Justen , Laszlo Ersek , Ard Biesheuvel Cc: Rebecca Cran Subject: [PATCH] OvmfPkg: enable multiprocessor builds when using build.sh Date: Sun, 21 Jul 2019 18:58:16 -0600 Message-Id: <20190722005816.96146-1-rebecca@bsdio.com> X-Mailer: git-send-email 2.22.0 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable When building both BaseTools and OvmfPkg, enable multiprocessor builds, using up to the number of cores available in the system. This can drastically reduce build times. For example, on a modern ThreadRipper system the time required to build decreases from 3 minutes to 1 minute. Signed-off-by: Rebecca Cran --- OvmfPkg/build.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OvmfPkg/build.sh b/OvmfPkg/build.sh index 4fcbdd2bc9..5d3a672bd2 100755 --- a/OvmfPkg/build.sh +++ b/OvmfPkg/build.sh @@ -40,7 +40,7 @@ ARCH_X64=3Dno BUILDTARGET=3DDEBUG BUILD_OPTIONS=3D PLATFORMFILE=3D -THREADNUMBER=3D1 +THREADNUMBER=3D$(getconf _NPROCESSORS_ONLN) LAST_ARG=3D RUN_QEMU=3Dno ENABLE_FLASH=3Dno --=20 2.22.0