]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/Makefile
post/Makefile: fix dependency problem with parallel builds
[karo-tx-uboot.git] / post / Makefile
index 666a89649eef7c2a5c57492d5bb8c26ca0819bc0..769e9c63966b939658b0b55470de292dcaead882 100644 (file)
@@ -45,7 +45,7 @@ SRCS  := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 LIB    := $(obj)$(LIB)
 
-all:   postdeps $(LIB)
+all:   $(LIB)
 
 postdeps:
        @for lib in $(SPLIB-y) ; do \
@@ -57,7 +57,7 @@ $(GPLIB): $(obj).depend $(OBJS)
        $(AR) $(ARFLAGS) $@ $(OBJS)
 
 # specific POST libraries
-$(SPLIB): $(obj).depend
+$(SPLIB): $(obj).depend postdeps
        $(MAKE) -C $(dir $(subst $(obj),,$@))
 
 # the POST lib archive