mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
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>
25 lines
402 B
Plaintext
25 lines
402 B
Plaintext
XEN_ROOT=$(CURDIR)/../../..
|
|
include $(XEN_ROOT)/tools/Rules.mk
|
|
|
|
ifeq ($(debug),y)
|
|
TARGET=DEBUG
|
|
else
|
|
TARGET=RELEASE
|
|
endif
|
|
|
|
# OVMF build system has its own parallel building support.
|
|
.NOTPARALLEL:
|
|
MAKEFLAGS += -j1
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
.PHONY: build
|
|
build:
|
|
OvmfPkg/build.sh -a X64 -b $(TARGET) -n 4
|
|
cp Build/OvmfX64/$(TARGET)_GCC*/FV/OVMF.fd ovmf.bin
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf ovmf.bin Build/*
|