summaryrefslogtreecommitdiff
path: root/arch/sh
diff options
context:
space:
mode:
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>2011-01-27 10:06:14 +0900
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>2011-02-02 16:38:41 +0900
commit36781e489732e314a58b078c931229996739ded9 (patch)
tree93bac9cf865e2016291c251b31d8ad57b28a49a7 /arch/sh
parenta8d954ba266b0c91eb179a53ee1bdaae15661727 (diff)
downloadu-boot-imx-36781e489732e314a58b078c931229996739ded9.zip
u-boot-imx-36781e489732e314a58b078c931229996739ded9.tar.gz
u-boot-imx-36781e489732e314a58b078c931229996739ded9.tar.bz2
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>
Diffstat (limited to 'arch/sh')
-rw-r--r--arch/sh/config.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/sh/config.mk b/arch/sh/config.mk
index 4ef85e3..433cc15 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
+