Improve plumbing for calling external qemu builds
PATCH 1/1 Improve plumbing for calling external qemu builds
* Remove ioemu-dir before replacing it with a symlink so that switching between trees doesn't go wrong.
* Remove case-based arrangement for making XEN_ROOT absolute and replace with $(abspath ...) since we depend on GNU make anyway.
* `make clean' recurses into ioemu-dir
tools/Makefile +7 -8
@@ -79,15 +79,14 @@ ioemu-dir-find: $(GIT) clone $(CONFIG_QEMU) ioemu-remote.tmp; \ mv ioemu-remote.tmp ioemu-remote; \ fi; \ + rm -f ioemu-dir; \ ln -sf ioemu-remote ioemu-dir; \ fi - set -e; \ - case "$XEN_ROOT" in \ - /*) XEN_ROOT=$(XEN_ROOT) ;; \ - *) XEN_ROOT=`pwd`/$(XEN_ROOT) ;; \ - esac; \ - export XEN_ROOT; \ - cd ioemu-dir; \ - ./xen-setup + cd ioemu-dir && XEN_ROOT="$(abspath $(XEN_ROOT))" ./xen-setup subdir-all-ioemu-dir subdir-install-ioemu-dir: ioemu-dir-find + +subdir-clean-ioemu-dir: + if test -d ioemu-dir/.; then \ + $(MAKE) -C ioemu-dir clean; \ + fi
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
Quoted 3 lines · I wrote:
* Remove case-based arrangement for making
XEN_ROOTabsolute and replace with $(abspath ...) since we depend on GNU make anyway.
It turns out that this is a recently-introduced GNU make feature. I must remember to check.
The attached patch, against current tip, reverts that part of 17992 (and fixes a quoting bug that was in the previous code).
Ian.
Config.mk +2 -2
@@ -82,8 +82,8 @@ QEMU_REMOTE=http://www.chiark.greenend.o # Specify which qemu-dm to use. This may be `ioemu' to use the old # Mercurial in-tree version, or a local directory, or a git URL. -CONFIG_QEMU ?= ioemu -# CONFIG_QEMU ?= ../qemu-xen.git +# CONFIG_QEMU ?= ioemu +CONFIG_QEMU ?= /u/iwj/work/qemu-iwj.git # CONFIG_QEMU ?= $(QEMU_REMOTE) # Optional components
tools/Makefile +8 -1
@@ -82,7 +82,14 @@ ioemu-dir-find: rm -f ioemu-dir; \ ln -sf ioemu-remote ioemu-dir; \ fi - cd ioemu-dir && XEN_ROOT="$(abspath $(XEN_ROOT))" ./xen-setup + set -e; \ + case "$(XEN_ROOT)" in \ + /*) XEN_ROOT=$(XEN_ROOT) ;; \ + *) XEN_ROOT=`pwd`/$(XEN_ROOT) ;; \ + esac; \ + export XEN_ROOT; \ + cd ioemu-dir; \ + ./xen-setup subdir-all-ioemu-dir subdir-install-ioemu-dir: ioemu-dir-find
_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel
iwj writes ("Re: [PATCH] Improve plumbing for calling external qemu builds"):
Quoted 4 lines
diff -r
5cd4fe68b6c2Config.mk
Config.mk QEMU_REMOTE=http://www.chiark.greenend.o · line 89
Quoted 10 lines
Config.mk +2
-2@@ -82,8 +82,8 @@ QEMU_REMOTE=http://www.chiark.greenend.o # Specify which qemu-dm to use. This may be `ioemu' to use the old # Mercurial in-tree version, or a local directory, or a git URL. -CONFIG_QEMU ?= ioemu -# CONFIG_QEMU ?= ../qemu-xen.git +# CONFIG_QEMU ?= ioemu +CONFIG_QEMU ?= /u/iwj/work/qemu-iwj.git # CONFIG_QEMU ?= $(QEMU_REMOTE) # Optional components
Oh dear. Disregard that hunk, please. Perhaps the coffee will sink in shortly.
Ian.