From: Ian Jackson Subject: Re: [PATCH] Serialise some things in top-level Makefile Date: Thu, 8 Jul 2010 15:09:40 +0100 Message-ID: <19509.56356.540448.884898@mariner.uk.xensource.com> References: <19508.43101.877001.354543@mariner.uk.xensource.com> <4C3597AE020000780000A301@vpn.id2.novell.com> <20100708082527.GW31695@whitby.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20100708082527.GW31695@whitby.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Tim Deegan Cc: "xen-devel@lists.xensource.com" , Jan Beulich List-Id: xen-devel@lists.xenproject.org Tim Deegan writes ("Re: [Xen-devel] [PATCH] Serialise some things in top-level Makefile"): > +1. I do most of my work with 32-bit tools and a 64-bit Xen; I > definitely don't want to serialize my tools builds behind a useless > 32-bit Xen build. You all seem to be right that "make tools" works without "make xen". I had a clear impression that the reverse was true. It doesn't seem to be any more. "make stubdom" doesn't work on its own though. So how about this ? Makefile: Serialise stubdom build after tools Currently "make stubdom" on its own fails because it depends on files being installed by the results of "make tools". This also means that in some circumstances a parallel "make tools stubdom" (or "make all") can fail due to races. So make "make stubdom" depend on "make tools" having completed first. Signed-off-by: Ian Jackson diff -r a0f0ae5be814 Makefile --- a/Makefile Tue Jul 06 17:58:37 2010 +0100 +++ b/Makefile Thu Jul 08 15:08:08 2010 +0100 @@ -74,7 +74,7 @@ for i in $(XKERNELS) ; do $(MAKE) $$i-install || exit 1; done .PHONY: install-stubdom -install-stubdom: tools/ioemu-dir +install-stubdom: tools/ioemu-dir install-tools $(MAKE) -C stubdom install ifeq (x86_64,$(XEN_TARGET_ARCH)) XEN_TARGET_ARCH=x86_32 $(MAKE) -C stubdom install-grub