]> xenbits.xensource.com Git - people/dwmw2/xen.git/commitdiff
tools/firmware: update OVMF Makefile, when necessary
authorWei Liu <wei.liu2@citrix.com>
Wed, 28 Nov 2018 17:43:33 +0000 (17:43 +0000)
committerIan Jackson <ian.jackson@eu.citrix.com>
Mon, 29 Apr 2019 15:23:06 +0000 (16:23 +0100)
[ This is two commits from master aka staging-4.12: ]

OVMF has become dependent on OpenSSL, which is included as a
submodule.  Initialise submodules before building.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Anthony PERARD <anthony.perard@citrix.com>
(cherry picked from commit b16281870e06f5f526029a4e69634a16dc38e8e4)

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 <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>
(cherry picked from commit 68292c94a60eab24514ab4a8e4772af24dead807)

tools/firmware/ovmf-makefile

index 2838744461ef793010ab60a8807f4012bf3483de..55f999214545a2890688a5ac46708f19217ed074 100644 (file)
@@ -16,6 +16,7 @@ all: build
 
 .PHONY: build
 build:
+       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