summaryrefslogtreecommitdiff
path: root/arch/sh/config.mk
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2011-02-04 20:38:27 +0100
committerWolfgang Denk <wd@denx.de>2011-02-04 20:38:27 +0100
commit4bfa18fb99e4ffa9451d9ec95375a5e970847bf8 (patch)
treef282cf36e32c60c4fce716c1e7ce236f7d19f5ae /arch/sh/config.mk
parent42d44f631c4e8e5359775bdc098f2fffde4e5c05 (diff)
parente72f46787f44c1104a8df18511ab230b6072a1f0 (diff)
Merge branch 'master' of git://git.denx.de/u-boot-sh
Diffstat (limited to 'arch/sh/config.mk')
-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 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
+