summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRick Chen <rick@andestech.com>2017-12-26 13:55:56 +0800
committerTom Rini <trini@konsulko.com>2018-01-12 08:05:12 -0500
commit42ac26f2b0c94f27170fdca2d7d05dbfb9a1d3fd (patch)
treebb2ecc237c4b5a662256980c1ffbfef81a4dc12c /Makefile
parent3dafc016c174076f01a40d26444f6b07c281004f (diff)
riscv: tools: Prelink u-boot
Add prelink-riscv to arrange .rela.dyn and .rela.got in compile time. So that u-boot can be directly executed without fixup. Signed-off-by: Chih-Mao Chen <cmchen@andestech.com> Signed-off-by: Rick Chen <rick@andestech.com> Signed-off-by: Rick Chen <rickchen36@gmail.com> Signed-off-by: Greentime Hu <green.hu@gmail.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d8f419bcd90..23cd34025f3 100644
--- a/Makefile
+++ b/Makefile
@@ -1264,6 +1264,10 @@ ifeq ($(CONFIG_KALLSYMS),y)
$(call cmd,u-boot__) common/system_map.o
endif
+ifeq ($(CONFIG_RISCV),y)
+ @tools/prelink-riscv $@ 0
+endif
+
quiet_cmd_sym ?= SYM $@
cmd_sym ?= $(OBJDUMP) -t $< > $@
u-boot.sym: u-boot FORCE