mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-23 13:56:20 +00:00
kbuild: fix a bug of the u-boot-spl link rule
cmd_u-boot-spl includes $(PLATFORM_LIBS) which changes when CONFIG_USE_PRIVATE_GCC is updated. The u-boot-spl image should be re-linked if any prerequisite is newer than it or the command line has changed. $(call, if_changed,...) should be used instead of $(call cmd,...). Signed-off-by: Masahiro Yamada <yamada.m@jp.panasonic.com>
This commit is contained in:
parent
45ccec8f29
commit
9adb6d2407
1 changed files with 4 additions and 4 deletions
|
@ -216,13 +216,13 @@ $(obj)/sunxi-spl.bin: $(obj)/$(SPL_BIN).bin
|
||||||
endif
|
endif
|
||||||
|
|
||||||
quiet_cmd_u-boot-spl = LD $@
|
quiet_cmd_u-boot-spl = LD $@
|
||||||
cmd_u-boot-spl = cd $(obj) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) \
|
cmd_u-boot-spl = (cd $(obj) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) \
|
||||||
$(patsubst $(obj)/%,%,$(u-boot-spl-init)) --start-group \
|
$(patsubst $(obj)/%,%,$(u-boot-spl-init)) --start-group \
|
||||||
$(patsubst $(obj)/%,%,$(u-boot-spl-main)) --end-group \
|
$(patsubst $(obj)/%,%,$(u-boot-spl-main)) --end-group \
|
||||||
$(PLATFORM_LIBS) -Map $(SPL_BIN).map -o $(SPL_BIN)
|
$(PLATFORM_LIBS) -Map $(SPL_BIN).map -o $(SPL_BIN))
|
||||||
|
|
||||||
$(obj)/$(SPL_BIN): $(u-boot-spl-init) $(u-boot-spl-main) $(obj)/u-boot-spl.lds
|
$(obj)/$(SPL_BIN): $(u-boot-spl-init) $(u-boot-spl-main) $(obj)/u-boot-spl.lds FORCE
|
||||||
$(call cmd,u-boot-spl)
|
$(call if_changed,u-boot-spl)
|
||||||
|
|
||||||
$(sort $(u-boot-spl-init) $(u-boot-spl-main)): $(u-boot-spl-dirs) ;
|
$(sort $(u-boot-spl-init) $(u-boot-spl-main)): $(u-boot-spl-dirs) ;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue