[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] tools: ovmf debug build only if tools debug is enabled



Signed-off-by: Fabio Fantoni <fabio.fantoni@xxxxxxx>
---
 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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.