From: Wei Liu Date: Tue, 15 Jan 2019 11:09:40 +0000 (+0000) Subject: tools: only call git when necessary in OVMF Makefile X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~2639 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=68292c94a60eab24514ab4a8e4772af24dead807;p=xen.git tools: only call git when necessary in OVMF Makefile Users may choose to export a snapshot of OVMF and build it with xen.git supplied ovmf-makefile. In that case we don't need to call `git submodule`. Fixes b16281870e. Reported-by: Olaf Hering Signed-off-by: Wei Liu Reviewed-by: Anthony PERARD Release-acked-by: Juergen Gross --- diff --git a/tools/firmware/ovmf-makefile b/tools/firmware/ovmf-makefile index 3de2fc0300..55f9992145 100644 --- a/tools/firmware/ovmf-makefile +++ b/tools/firmware/ovmf-makefile @@ -16,7 +16,7 @@ all: build .PHONY: build build: - $(GIT) submodule update --init --recursive + if test -e .git ; then $(GIT) submodule update --init --recursive ; fi OvmfPkg/build.sh -a X64 -b $(TARGET) -n 4 cp Build/OvmfX64/$(TARGET)_GCC*/FV/OVMF.fd ovmf.bin