diff options
author | Wolfgang Denk <wd@denx.de> | 2008-12-16 14:44:06 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2008-12-16 14:44:06 +0100 |
commit | aa1bcca3d2e22af4dea9f02132f9b56a30378ded (patch) | |
tree | 7779c86b36e252709a79349bfcc866fe132aba2d /post/Makefile | |
parent | 4a0f7538c5c0805fd9a791967bbabacc41deadd9 (diff) |
post/Makefile: fix dependency problem with parallel builds
Parallel builds (using "make -jN") would occasionally fail with error
messages like
ppc_4xxFP-objdump: string.o: File format not recognized
or
post/libpost.a(cpu.o): In function `cpu_post_test':
/home/wd/git/u-boot/work/post/lib_ppc/cpu.c:130: undefined reference to `cpu_post_test_string'
or similar. We now make sure to run the 'postdeps" step before
attempting to build the specific POST libraries.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'post/Makefile')
-rw-r--r-- | post/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/post/Makefile b/post/Makefile index 666a89649e..769e9c6396 100644 --- a/post/Makefile +++ b/post/Makefile @@ -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 |