aboutsummaryrefslogtreecommitdiffstats
path: root/tools/Makefile
diff options
context:
space:
mode:
authorIan Campbell <ian.campbell@citrix.com>2010-11-09 18:15:25 +0000
committerIan Campbell <ian.campbell@citrix.com>2010-11-09 18:15:25 +0000
commitcb6c757fa4e9b79e32adac8d1648e6faed6923d7 (patch)
tree216c7e6119c897b51f2ad969fdb46fb91477b2e4 /tools/Makefile
parent8fe49db6bda46327bc04bace2cf6a88402d8929e (diff)
downloadxen-cb6c757fa4e9b79e32adac8d1648e6faed6923d7.tar.gz
xen-cb6c757fa4e9b79e32adac8d1648e6faed6923d7.tar.bz2
xen-cb6c757fa4e9b79e32adac8d1648e6faed6923d7.zip
tools: provide explicit target for refetching/resetting qemu
This patch adds an explicit update mechanism: make tools/ioemu-dir-force-update This isn't brilliant but is better than doing "cd tools/ioemu-remote && git reset --hard <sha1...>" by hand. Note that invoking this target will destroy all working tree changes made to qemu-xen. Acked-by: Ian Jackson <ian.jackson@eu.citrix.com> Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com>
Diffstat (limited to 'tools/Makefile')
-rw-r--r--tools/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/Makefile b/tools/Makefile
index ed70b93a84..b5ca635409 100644
--- a/tools/Makefile
+++ b/tools/Makefile
@@ -117,6 +117,14 @@ ioemu-dir-find:
cd ioemu-dir; \
./xen-setup $(IOEMU_CONFIGURE_CROSS)
+.PHONY: ioemu-dir-force-update
+ioemu-dir-force-update:
+ set -ex; \
+ if [ "$(QEMU_TAG)" ]; then \
+ cd ioemu-remote; \
+ $(GIT) reset --hard $(QEMU_TAG); \
+ fi
+
subdir-all-ioemu-dir subdir-install-ioemu-dir: ioemu-dir-find
subdir-clean-ioemu-dir: