]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - post/Makefile
POST Make: fix the sub-dir dependencies missing.
[karo-tx-uboot.git] / post / Makefile
index a402e6adccaae32e3f2b37b7495c8d1b1ae6961e..666a89649eef7c2a5c57492d5bb8c26ca0819bc0 100644 (file)
@@ -45,7 +45,12 @@ SRCS := $(SOBJS:.o=.S) $(COBJS:.o=.c)
 OBJS   := $(addprefix $(obj),$(COBJS))
 LIB    := $(obj)$(LIB)
 
-all:   $(LIB)
+all:   postdeps $(LIB)
+
+postdeps:
+       @for lib in $(SPLIB-y) ; do \
+               $(MAKE) -C `dirname $$lib` all ; \
+       done
 
 # generic POST library
 $(GPLIB): $(obj).depend $(OBJS)