]> xenbits.xensource.com Git - people/gdunlap/xen.git/commitdiff
tools: OVMF parallel build
authorWei Liu <wei.liu2@citrix.com>
Mon, 2 Mar 2015 10:52:20 +0000 (10:52 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Wed, 11 Mar 2015 15:39:07 +0000 (15:39 +0000)
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 <wei.liu2@citrix.com>
Cc: Anthony Perard <anthony.perard@citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
tools/firmware/ovmf-makefile

index 1ad041ffbb24723b514a16c9e57625b8413eddbc..2838744461ef793010ab60a8807f4012bf3483de 100644 (file)
@@ -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