Add dependencies to avoid race conditions with parallel make.
authorJohannes Stezenbach <js@sig21.net>
Mon, 28 Jan 2008 23:11:25 +0000 (00:11 +0100)
committerWolfgang Denk <wd@denx.de>
Thu, 14 Feb 2008 00:18:17 +0000 (01:18 +0100)
Signed-off-by: Johannes Stezenbach <js@sig21.net>
Makefile

index 852dca865c1eaadaed4530f138ab8fd8806f7606..3b339ad17e66ca976914ad1d45bd6d90e8f5c07e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -312,13 +312,13 @@ $(obj)u-boot:             depend $(SUBDIRS) $(OBJS) $(LIBS) $(LDSCRIPT)
                        --start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
                        -Map u-boot.map -o u-boot
 
-$(OBJS):       $(obj)include/autoconf.mk
+$(OBJS):       depend $(obj)include/autoconf.mk
                $(MAKE) -C cpu/$(CPU) $(if $(REMOTE_BUILD),$@,$(notdir $@))
 
-$(LIBS):       $(obj)include/autoconf.mk
+$(LIBS):       depend $(obj)include/autoconf.mk
                $(MAKE) -C $(dir $(subst $(obj),,$@))
 
-$(SUBDIRS):    $(obj)include/autoconf.mk
+$(SUBDIRS):    depend $(obj)include/autoconf.mk
                $(MAKE) -C $@ all
 
 $(NAND_SPL):   $(VERSION_FILE) $(obj)include/autoconf.mk