summaryrefslogtreecommitdiff
path: root/post
diff options
context:
space:
mode:
authorYuri Tikhonov <yur@emcraft.com>2008-12-07 22:12:50 +0100
committerWolfgang Denk <wd@denx.de>2008-12-15 22:02:15 +0100
commit45845301af3de8675c1f7bbc815c6de35452605a (patch)
tree1916354726f87546b51250645d2f936c04f71e67 /post
parent22525779cb51f1bbe4e96fea7b778de1935a5a69 (diff)
POST Make: fix the sub-dir dependencies missing.
Signed-off-by: Yuri Tikhonov <yur@emcraft.com>
Diffstat (limited to 'post')
-rw-r--r--post/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/post/Makefile b/post/Makefile
index a402e6adcca..666a89649ee 100644
--- a/post/Makefile
+++ b/post/Makefile
@@ -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)