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	OvmfPkg/build.sh -a X64 -b $(TARGET) -n 4
20	cp Build/OvmfX64/$(TARGET)_GCC*/FV/OVMF.fd ovmf.bin
21
22.PHONY: clean
23clean:
24	rm -rf ovmf.bin Build/*
25