From: Johannes Stezenbach Date: Mon, 28 Jan 2008 23:11:25 +0000 (+0100) Subject: Add dependencies to avoid race conditions with parallel make. X-Git-Tag: v1.3.2-rc1~29 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=88f72527f5b89c0905ad5c36cc2ef8d29dd6bbf0;p=oweals%2Fu-boot.git Add dependencies to avoid race conditions with parallel make. Signed-off-by: Johannes Stezenbach --- diff --git a/Makefile b/Makefile index 852dca865c..3b339ad17e 100644 --- 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