]> git.sur5r.net Git - u-boot/commitdiff
sh: add support the CONFIG_SYS_LDSCRIPT
authorYoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Thu, 27 Jan 2011 01:06:14 +0000 (10:06 +0900)
committerNobuhiro Iwamatsu <iwamatsu@nigauri.org>
Wed, 2 Feb 2011 07:38:41 +0000 (16:38 +0900)
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/config.mk

index 4ef85e3e5de74ffc139e44bbb7b5562a89a2c56f..433cc153892e59400fa5f8b087e7356bc699ee44 100644 (file)
@@ -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
+