Skip to contentSkip to conversation

Makefile: Silence relocate-rela call

PATCH New Jan Kiszka 2 participants 2 messages Jun 25, 2020 – Jul 17, 2020 Kbuild

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 Makefile: Silence relocate-rela call

From: Jan Kiszka <[email protected]>

---
 Makefile | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
Makefile +8 -6
index e3c18d8c39..6d2f5bc091 100644
@@ -872,12 +872,14 @@ endif
 # do the relocation).
 ifneq ($(CONFIG_STATIC_RELA),)
 # $(1) is u-boot ELF, $(2) is u-boot bin, $(3) is text base
-DO_STATIC_RELA = \
-	start=$$($(NM) $(1) | grep __rel_dyn_start | cut -f 1 -d ' '); \
-	end=$$($(NM) $(1) | grep __rel_dyn_end | cut -f 1 -d ' '); \
-	tools/relocate-rela $(2) $(3) $$start $$end
+quiet_cmd_static_rela = RELOC   $@
+cmd_static_rela = \
+	start=$$($(NM) $(2) | grep __rel_dyn_start | cut -f 1 -d ' '); \
+	end=$$($(NM) $(2) | grep __rel_dyn_end | cut -f 1 -d ' '); \
+	tools/relocate-rela $(3) $(4) $$start $$end
 else
-DO_STATIC_RELA =
+quiet_cmd_static_rela =
+cmd_static_rela =
 endif
 
 # Always append ALL so that arch config.mk's can add custom ones
@@ -1284,7 +1286,7 @@ endif
 
 u-boot-nodtb.bin: u-boot FORCE
 	$(call if_changed,objcopy)
-	$(call DO_STATIC_RELA,$<,$@,$(CONFIG_SYS_TEXT_BASE))
+	$(call cmd,static_rela,$<,$@,$(CONFIG_SYS_TEXT_BASE))
 	$(BOARD_SIZE_CHECK)
 
 u-boot.ldr:	u-boot
Signature · 1 line
2.26.2
#1 lore raw

PATCH 1/1 Makefile: Silence relocate-rela call

Quoted 3 lines · Jan Kiszka

From: Jan Kiszka <[email protected]>

Applied to u-boot/master, thanks!

Signature · 8 lines
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 659 bytes
Desc: not available
URL: <https://lists.denx.de/pipermail/u-boot/attachments/20200717/45e24b7b/attachment.sig>