]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
tools: only call git when necessary in OVMF Makefile
authorWei Liu <wei.liu2@citrix.com>
Tue, 15 Jan 2019 11:09:40 +0000 (11:09 +0000)
committerWei Liu <wei.liu2@citrix.com>
Wed, 16 Jan 2019 14:52:22 +0000 (14:52 +0000)
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 <olaf@aepfle.de>
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
Release-acked-by: Juergen Gross <jgross@suse.com>
tools/firmware/ovmf-makefile

index 3de2fc03005ddc09da762a36dc33beaf7fa03373..55f999214545a2890688a5ac46708f19217ed074 100644 (file)
@@ -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