All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] tools: only call git when necessary in OVMF Makefile
@ 2019-01-15 11:09 Wei Liu
  2019-01-15 11:13 ` Anthony PERARD
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Wei Liu @ 2019-01-15 11:09 UTC (permalink / raw)
  To: xen-devel; +Cc: Anthony PERARD, Ian Jackson, Olaf Hering, Wei Liu

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>
---
 tools/firmware/ovmf-makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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
 
-- 
2.11.0


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-01-15 11:41 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-15 11:09 [PATCH] tools: only call git when necessary in OVMF Makefile Wei Liu
2019-01-15 11:13 ` Anthony PERARD
2019-01-15 11:27 ` Andrew Cooper
2019-01-15 11:29   ` Wei Liu
2019-01-15 11:33     ` Andrew Cooper
2019-01-15 11:36     ` Anthony PERARD
2019-01-15 11:39       ` Wei Liu
2019-01-15 11:40 ` Wei Liu
2019-01-15 11:41   ` Juergen Gross

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.