diff mbox

[U-Boot] sh: add support the CONFIG_SYS_LDSCRIPT

Message ID 4D40C506.8020005@renesas.com
State Accepted, archived
Delegated to: Nobuhiro Iwamatsu
Headers show

Commit Message

Yoshihiro Shimoda Jan. 27, 2011, 1:06 a.m. UTC
Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
---
 arch/sh/config.mk |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

Comments

Nobuhiro Iwamatsu Feb. 2, 2011, 7:22 a.m. UTC | #1
Applied, thanks.

On Thu, Jan 27, 2011 at 10:06:14AM +0900, Yoshihiro Shimoda wrote:
> Signed-off-by: Yoshihiro Shimoda <yoshihiro.shimoda.uh@renesas.com>
> ---
>  arch/sh/config.mk |    4 ++++
>  1 files changed, 4 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/sh/config.mk b/arch/sh/config.mk
> index 415c949..b408a44 100644
> --- a/arch/sh/config.mk
> +++ b/arch/sh/config.mk
> @@ -31,4 +31,8 @@ endif
>  PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
>  PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE)
> 
> +ifdef CONFIG_SYS_LDSCRIPT
> +LDSCRIPT := $(subst ",,$(CONFIG_SYS_LDSCRIPT))
> +else
>  LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
> +endif
> -- 
> 1.7.1
diff mbox

Patch

diff --git a/arch/sh/config.mk b/arch/sh/config.mk
index 415c949..b408a44 100644
--- a/arch/sh/config.mk
+++ b/arch/sh/config.mk
@@ -31,4 +31,8 @@  endif
 PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__
 PLATFORM_LDFLAGS += -e $(CONFIG_SYS_TEXT_BASE) --defsym reloc_dst=$(CONFIG_SYS_TEXT_BASE)

+ifdef CONFIG_SYS_LDSCRIPT
+LDSCRIPT := $(subst ",,$(CONFIG_SYS_LDSCRIPT))
+else
 LDSCRIPT := $(SRCTREE)/$(CPUDIR)/u-boot.lds
+endif