From: Yoshihiro Shimoda Date: Thu, 27 Jan 2011 01:06:14 +0000 (+0900) Subject: sh: add support the CONFIG_SYS_LDSCRIPT X-Git-Tag: v2011.03-rc2~102^2~6 X-Git-Url: https://git.kernelconcepts.de/?a=commitdiff_plain;h=36781e489732e314a58b078c931229996739ded9;p=karo-tx-uboot.git sh: add support the CONFIG_SYS_LDSCRIPT Signed-off-by: Yoshihiro Shimoda Signed-off-by: Nobuhiro Iwamatsu --- diff --git a/arch/sh/config.mk b/arch/sh/config.mk index 4ef85e3e5d..433cc15389 100644 --- a/arch/sh/config.mk +++ b/arch/sh/config.mk @@ -31,4 +31,10 @@ endif PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__ PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE) LDFLAGS_u-boot = --gc-sections + +ifdef CONFIG_SYS_LDSCRIPT +LDSCRIPT := $(subst ",,$(CONFIG_SYS_LDSCRIPT)) +else LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds +endif +