projects
/
oweals
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a8d954b
)
sh: add support the CONFIG_SYS_LDSCRIPT
author
Yoshihiro Shimoda
<yoshihiro.shimoda.uh@renesas.com>
Thu, 27 Jan 2011 01:06:14 +0000
(10:06 +0900)
committer
Nobuhiro 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
patch
|
blob
|
history
diff --git
a/arch/sh/config.mk
b/arch/sh/config.mk
index 4ef85e3e5de74ffc139e44bbb7b5562a89a2c56f..433cc153892e59400fa5f8b087e7356bc699ee44 100644
(file)
--- 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
+