From: Ian Jackson Subject: [PATCH] Improve plumbing for calling external qemu builds Date: Tue, 8 Jul 2008 14:06:58 +0100 Message-ID: <18547.26226.599082.25644@mariner.uk.xensource.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="5cpyinYYd/" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org --5cpyinYYd/ Content-Type: text/plain; charset=us-ascii Content-Description: message body text Content-Transfer-Encoding: 7bit * 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 Signed-off-by: Ian Jackson --5cpyinYYd/ Content-Type: text/plain Content-Description: improve external qemu build plumbing Content-Disposition: inline; filename="xen-tools-qemu-extern-call.patch" Content-Transfer-Encoding: 7bit diff -r 9b35ae586cb8 tools/Makefile --- a/tools/Makefile Mon Jul 07 10:45:50 2008 +0100 +++ b/tools/Makefile Tue Jul 08 12:08:36 2008 +0100 @@ -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 --5cpyinYYd/ Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --5cpyinYYd/--