From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Fri, 11 Dec 2009 14:25:08 -0500 Subject: [U-Boot] [PATCH] Makefile: fix parallel build In-Reply-To: <1260452467-1335-1-git-send-email-daniel.hobi@schmid-telecom.ch> References: <1260452467-1335-1-git-send-email-daniel.hobi@schmid-telecom.ch> Message-ID: <200912111425.09357.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 10 December 2009 08:41:07 Daniel Hobi wrote: > During parallel build, the top Makefile spawns multiple sub-makes > for targets in cpu/$(CPU). If cpu/$(CPU)/.depend is not present, the > sub-makes may end up generating this file simultaneously which leads > to corrupted content. > > A typical error message is: > > .depend:39: *** multiple target patterns. Stop. > > This patch serializes the creation of cpu/$(CPU)/.depend by adding > cpu/$(CPU) to the depend target in the top Makefile. seems to happen in lib_$(ARCH)/ too, but in reviewing my logs from the last few months, most parallel .depend failures have indeed been in cpu/$(CPU)/. maybe this is just coincidence though ... perhaps the depend target should walk all subdirs instead of a just random few ones (use LIBS). -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20091211/38ce3d46/attachment.pgp