Commit aa1bcca3d2e22af4dea9f02132f9b56a30378ded

Authored by Wolfgang Denk
1 parent 4a0f7538c5

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>

Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff

... ... @@ -45,7 +45,7 @@
45 45 OBJS := $(addprefix $(obj),$(COBJS))
46 46 LIB := $(obj)$(LIB)
47 47  
48   -all: postdeps $(LIB)
  48 +all: $(LIB)
49 49  
50 50 postdeps:
51 51 @for lib in $(SPLIB-y) ; do \
... ... @@ -57,7 +57,7 @@
57 57 $(AR) $(ARFLAGS) $@ $(OBJS)
58 58  
59 59 # specific POST libraries
60   -$(SPLIB): $(obj).depend
  60 +$(SPLIB): $(obj).depend postdeps
61 61 $(MAKE) -C $(dir $(subst $(obj),,$@))
62 62  
63 63 # the POST lib archive