1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 00:32:04 +02:00

Makefile: Silence relocate-rela call

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
This commit is contained in:
Jan Kiszka
2020-06-25 08:39:45 +02:00
committed by Tom Rini
parent 499b7493e7
commit 7125d2c195

View File

@@ -875,12 +875,14 @@ endif
# do the relocation). # do the relocation).
ifneq ($(CONFIG_STATIC_RELA),) ifneq ($(CONFIG_STATIC_RELA),)
# $(1) is u-boot ELF, $(2) is u-boot bin, $(3) is text base # $(1) is u-boot ELF, $(2) is u-boot bin, $(3) is text base
DO_STATIC_RELA = \ quiet_cmd_static_rela = RELOC $@
start=$$($(NM) $(1) | grep __rel_dyn_start | cut -f 1 -d ' '); \ cmd_static_rela = \
end=$$($(NM) $(1) | grep __rel_dyn_end | cut -f 1 -d ' '); \ start=$$($(NM) $(2) | grep __rel_dyn_start | cut -f 1 -d ' '); \
tools/relocate-rela $(2) $(3) $$start $$end end=$$($(NM) $(2) | grep __rel_dyn_end | cut -f 1 -d ' '); \
tools/relocate-rela $(3) $(4) $$start $$end
else else
DO_STATIC_RELA = quiet_cmd_static_rela =
cmd_static_rela =
endif endif
# Always append ALL so that arch config.mk's can add custom ones # Always append ALL so that arch config.mk's can add custom ones
@@ -1287,7 +1289,7 @@ endif
u-boot-nodtb.bin: u-boot FORCE u-boot-nodtb.bin: u-boot FORCE
$(call if_changed,objcopy) $(call if_changed,objcopy)
$(call DO_STATIC_RELA,$<,$@,$(CONFIG_SYS_TEXT_BASE)) $(call cmd,static_rela,$<,$@,$(CONFIG_SYS_TEXT_BASE))
$(BOARD_SIZE_CHECK) $(BOARD_SIZE_CHECK)
u-boot.ldr: u-boot u-boot.ldr: u-boot