From: Wei Liu Subject: [PATCH 1/2] tools: OVMF parallel build Date: Mon, 2 Mar 2015 10:52:20 +0000 Message-ID: <1425293541-26183-2-git-send-email-wei.liu2@citrix.com> References: <1425293541-26183-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1425293541-26183-1-git-send-email-wei.liu2@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: anthony.perard@citrix.com, Wei Liu , ian.jackson@eu.citrix.com, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org Though it doesn't work with make's "-j" option, the build system of OVMF has an option to specify parallel threads used to run the build. Using 4 threads to build OVMF looks like a sensible default. Signed-off-by: Wei Liu Cc: Anthony Perard Cc: Ian Campbell Cc: Ian Jackson --- tools/firmware/ovmf-makefile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/firmware/ovmf-makefile b/tools/firmware/ovmf-makefile index 1ad041f..2838744 100644 --- a/tools/firmware/ovmf-makefile +++ b/tools/firmware/ovmf-makefile @@ -1,6 +1,3 @@ -# OVMF building system is not ready yet to run in parallel. -# Force it to be serial in order to exploit parallelism for neighbors. - XEN_ROOT=$(CURDIR)/../../.. include $(XEN_ROOT)/tools/Rules.mk @@ -10,6 +7,7 @@ else TARGET=RELEASE endif +# OVMF build system has its own parallel building support. .NOTPARALLEL: MAKEFLAGS += -j1 @@ -18,7 +16,7 @@ all: build .PHONY: build build: - OvmfPkg/build.sh -a X64 -b $(TARGET) + OvmfPkg/build.sh -a X64 -b $(TARGET) -n 4 cp Build/OvmfX64/$(TARGET)_GCC*/FV/OVMF.fd ovmf.bin .PHONY: clean -- 1.9.1