1XEN_ROOT=$(CURDIR)/../../..
2include $(XEN_ROOT)/tools/Rules.mk
3
4ifeq ($(debug),y)
5TARGET=DEBUG
6else
7TARGET=RELEASE
8endif
9
10# OVMF build system has its own parallel building support.
11.NOTPARALLEL:
12MAKEFLAGS  += -j1
13
14.PHONY: all
15all: build
16
17.PHONY: build
18build:
19	if test -e .git ; then $(GIT) submodule update --init --recursive ; fi
20	OvmfPkg/build.sh -a X64 -b $(TARGET) -n 4
21	cp Build/OvmfX64/$(TARGET)_GCC*/FV/OVMF.fd ovmf.bin
22
23.PHONY: clean
24clean:
25	rm -rf ovmf.bin Build/*
26