mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-28 23:50:26 +09:00
sh: add support the CONFIG_SYS_LDSCRIPT
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com> Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
This commit is contained in:
parent
a8d954ba26
commit
36781e4897
@ -31,4 +31,10 @@ endif
|
|||||||
PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
|
PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
|
||||||
PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE)
|
PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE)
|
||||||
LDFLAGS_u-boot = --gc-sections
|
LDFLAGS_u-boot = --gc-sections
|
||||||
|
|
||||||
|
ifdef CONFIG_SYS_LDSCRIPT
|
||||||
|
LDSCRIPT := $(subst ",,$(CONFIG_SYS_LDSCRIPT))
|
||||||
|
else
|
||||||
LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
|
LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
|
||||||
|
endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user