aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
authorMatthew Daley <mattjd@gmail.com>2013-09-04 01:12:59 +1200
committerIan Campbell <ian.campbell@citrix.com>2013-09-09 14:41:49 +0100
commit8e4610ec55751c3d1a4f515ba4041ca6faa16d15 (patch)
tree39c2a3c8db991dc8df6f1c38c9e94059fd555d88 /tools/Makefile
parent4b947321c9a742282fb630b6e0f7abf970abd7ec (diff)
downloadxen-8e4610ec55751c3d1a4f515ba4041ca6faa16d15.tar.gz
xen-8e4610ec55751c3d1a4f515ba4041ca6faa16d15.tar.bz2
xen-8e4610ec55751c3d1a4f515ba4041ca6faa16d15.zip
tools: build debug qemu-xen in debug tools builds
When building tools in debug mode (debug=y), pass --enable-debug when configuring qemu-xen to enable some debug support (namely, to prevent symbols from being stripped). Signed-off-by: Matthew Daley <mattjd@gmail.com>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile7
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index 0531f48a84..066df66487 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -173,6 +173,12 @@ qemu-xen-dir-force-update:
$(GIT) reset --hard $(QEMU_UPSTREAM_REVISION); \
fi
+ifeq ($(debug),y)
+QEMU_XEN_ENABLE_DEBUG := --enable-debug
+else
+QEMU_XEN_ENABLE_DEBUG :=
+endif
+
subdir-all-qemu-xen-dir: qemu-xen-dir-find
if test -d $(QEMU_UPSTREAM_URL) ; then \
source=$(QEMU_UPSTREAM_URL); \
@@ -181,6 +187,7 @@ subdir-all-qemu-xen-dir: qemu-xen-dir-find
fi; \
cd qemu-xen-dir; \
$$source/configure --enable-xen --target-list=i386-softmmu \
+ $(QEMU_XEN_ENABLE_DEBUG) \
--prefix=$(PREFIX) \
--source-path=$$source \
--extra-cflags="-I$(XEN_ROOT)/tools/include \