All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] Makefile: fix parallel build
@ 2009-12-10 13:41 Daniel Hobi
  2009-12-11 19:25 ` Mike Frysinger
  0 siblings, 1 reply; 9+ messages in thread
From: Daniel Hobi @ 2009-12-10 13:41 UTC (permalink / raw)
  To: u-boot

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.

Signed-off-by: Daniel Hobi <daniel.hobi@schmid-telecom.ch>
---
 Makefile |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/Makefile b/Makefile
index 19b5ac0..2fd22c7 100644
--- a/Makefile
+++ b/Makefile
@@ -400,7 +400,7 @@ env:
 		$(MAKE) -C tools/env all MTD_VERSION=${MTD_VERSION} || exit 1
 
 depend dep:	$(TIMESTAMP_FILE) $(VERSION_FILE) $(obj)include/autoconf.mk
-		for dir in $(SUBDIRS) ; do $(MAKE) -C $$dir _depend ; done
+		for dir in $(SUBDIRS) cpu/$(CPU); do $(MAKE) -C $$dir _depend ; done
 
 TAG_SUBDIRS += include
 TAG_SUBDIRS += lib_generic board/$(BOARDDIR)
-- 
1.6.5.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2010-01-18 21:25 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-12-10 13:41 [U-Boot] [PATCH] Makefile: fix parallel build Daniel Hobi
2009-12-11 19:25 ` Mike Frysinger
2009-12-15  9:21   ` Daniel Hobi
2009-12-15  9:25     ` Mike Frysinger
2009-12-15 13:51       ` [U-Boot] [PATCH v2] " Daniel Hobi
2009-12-15 17:15         ` Mike Frysinger
2009-12-17 22:41         ` Wolfgang Denk
2010-01-18 17:13           ` [U-Boot] [PATCH v3] " Daniel Hobi
2010-01-18 21:25             ` Wolfgang Denk

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.