aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
authorIan Jackson <Ian.Jackson@eu.citrix.com>2010-11-23 19:12:55 +0000
committerIan Jackson <Ian.Jackson@eu.citrix.com>2010-11-23 19:12:55 +0000
commitd5e8312ed9393473bfc55c1520956df83a2bc213 (patch)
tree2ad87ce9ff167e94a189920c1f1c69b4bda60d27 /tools/Makefile
parent16f2fb18bc7db5fb359fd114c7cd04e38cdfd306 (diff)
downloadxen-d5e8312ed9393473bfc55c1520956df83a2bc213.tar.gz
xen-d5e8312ed9393473bfc55c1520956df83a2bc213.tar.bz2
xen-d5e8312ed9393473bfc55c1520956df83a2bc213.zip
Reapply 61c0c52a8c6c "qemu-xen: build adjustments"
The changeset qemu-xen: build adjustments to support out-of-tree builds works after all. Sorry for the noise. Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile17
1 files changed, 6 insertions, 11 deletions
diff --git a/tools/Makefile b/tools/Makefile
index b5ca635409..9a97324abd 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -81,20 +81,15 @@ IOEMU_CONFIGURE_CROSS ?= --cpu=$(XEN_TARGET_ARCH) \
--interp-prefix=$(CROSS_SYS_ROOT)
endif
-ioemu/config-host.mak:
- cd ioemu && XEN_TARGET_ARCH=$(XEN_TARGET_ARCH) sh configure \
- --prefix=$(PREFIX) $(IOEMU_CONFIGURE_CROSS)
-
-subdir-all-ioemu subdir-install-ioemu: ioemu/config-host.mak
-
-subdir-clean-ioemu:
- $(MAKE) -C ioemu distclean
+QEMU_ROOT := $(shell if [ -d "$(CONFIG_QEMU)" ]; then echo "$(CONFIG_QEMU)"; else echo .; fi)
+ifneq ($(QEMU_ROOT),.)
+export QEMU_ROOT
+endif
ioemu-dir-find:
set -ex; \
if test -d $(CONFIG_QEMU); then \
- rm -f ioemu-dir; \
- ln -sf $(CONFIG_QEMU) ioemu-dir; \
+ mkdir -p ioemu-dir; \
else \
if [ ! -d ioemu-remote ]; then \
rm -rf ioemu-remote ioemu-remote.tmp; \
@@ -115,7 +110,7 @@ ioemu-dir-find:
$(absolutify_xen_root); \
$(buildmakevars2shellvars); \
cd ioemu-dir; \
- ./xen-setup $(IOEMU_CONFIGURE_CROSS)
+ $(QEMU_ROOT)/xen-setup $(IOEMU_CONFIGURE_CROSS)
.PHONY: ioemu-dir-force-update
ioemu-dir-force-update: