xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] tools: ovmf debug build only if tools debug is enabled
@ 2013-10-31 14:02 Fabio Fantoni
  2013-10-31 14:23 ` Wei Liu
  2013-10-31 14:34 ` Andrew Cooper
  0 siblings, 2 replies; 8+ messages in thread
From: Fabio Fantoni @ 2013-10-31 14:02 UTC (permalink / raw)
  To: xen-devel; +Cc: wei.liu2, Fabio Fantoni, Ian.Jackson, Ian.Campbell

Signed-off-by: Fabio Fantoni <fabio.fantoni@m2r.biz>
---
 tools/firmware/ovmf-makefile |   13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)

diff --git a/tools/firmware/ovmf-makefile b/tools/firmware/ovmf-makefile
index 073ed44..efb4fb1 100644
--- a/tools/firmware/ovmf-makefile
+++ b/tools/firmware/ovmf-makefile
@@ -1,3 +1,6 @@
+XEN_ROOT = $(CURDIR)/../../..
+include $(XEN_ROOT)/tools/Rules.mk
+
 # OVMF building system is not ready yet to run in parallel.
 # Force it to be serial in order to exploit parallelism for neighbors.
 
@@ -9,8 +12,14 @@ all: ovmf.bin
 
 .PHONY: ovmf.bin
 ovmf.bin:
-	OvmfPkg/build.sh -a X64
-	cp Build/OvmfX64/DEBUG_GCC*/FV/OVMF.fd ovmf.bin
+	if [ "$(debug)" == y ]; then \
+		OvmfPkg/build.sh -a X64; \
+		cp Build/OvmfX64/DEBUG_GCC*/FV/OVMF.fd ovmf.bin; \
+	else \
+		OvmfPkg/build.sh -a X64 -b RELEASE; \
+		cp Build/OvmfX64/RELEASE_GCC*/FV/OVMF.fd ovmf.bin; \
+	fi
+
 
 .PHONY: clean
 clean:
-- 
1.7.9.5

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

end of thread, other threads:[~2013-12-05  9:00 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-10-31 14:02 [PATCH] tools: ovmf debug build only if tools debug is enabled Fabio Fantoni
2013-10-31 14:23 ` Wei Liu
2013-10-31 14:56   ` Fabio Fantoni
2013-10-31 14:34 ` Andrew Cooper
2013-10-31 14:52   ` Fabio Fantoni
2013-12-04 14:47     ` Fabio Fantoni
2013-12-04 16:23       ` Wei Liu
2013-12-05  9:00         ` Fabio Fantoni

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).