From patchwork Thu Jan 27 01:06:14 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Shimoda X-Patchwork-Id: 80574 X-Patchwork-Delegate: iwamatsu@nigauri.org Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id B0B551007D1 for ; Thu, 27 Jan 2011 12:06:44 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4A3BD2809B; Thu, 27 Jan 2011 02:06:32 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id wx3idD-AKswx; Thu, 27 Jan 2011 02:06:32 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 16E53280A0; Thu, 27 Jan 2011 02:06:31 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id AE0C32809B for ; Thu, 27 Jan 2011 02:06:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3SXnca3jLijM for ; Thu, 27 Jan 2011 02:06:29 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from relmlor1.renesas.com (relmlor1.renesas.com [210.160.252.171]) by theia.denx.de (Postfix) with ESMTP id F239D280A0 for ; Thu, 27 Jan 2011 02:06:25 +0100 (CET) Received: from relmlir2.idc.renesas.com ([10.200.68.152]) by relmlor1.idc.renesas.com ( SJSMS) with ESMTP id <0LFN009RIPQOQ730@relmlor1.idc.renesas.com> for u-boot@lists.denx.de; Thu, 27 Jan 2011 10:06:24 +0900 (JST) Received: from relmlac4.idc.renesas.com ([10.200.69.24]) by relmlir2.idc.renesas.com ( SJSMS) with ESMTP id <0LFN00EDKPQOYG30@relmlir2.idc.renesas.com> for u-boot@lists.denx.de; Thu, 27 Jan 2011 10:06:24 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 40DED4809D; Thu, 27 Jan 2011 10:06:15 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id AD6EB480A8; Thu, 27 Jan 2011 10:06:15 +0900 (JST) Received: from relmlii2.idc.renesas.com [10.200.68.66] by relmlac4.idc.renesas.com with ESMTP id LAA24116; Thu, 27 Jan 2011 10:06:15 +0900 X-IronPort-AV: E=Sophos;i="4.60,383,1291561200"; d="scan'208";a="8368460" Received: from unknown (HELO [172.30.8.157]) ([172.30.8.157]) by relmlii2.idc.renesas.com with ESMTP; Thu, 27 Jan 2011 10:06:14 +0900 Message-id: <4D40C506.8020005@renesas.com> Date: Thu, 27 Jan 2011 10:06:14 +0900 From: Yoshihiro Shimoda User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; ja; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7 MIME-version: 1.0 To: u-boot@lists.denx.de Subject: [U-Boot] [PATCH] sh: add support the CONFIG_SYS_LDSCRIPT X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.9 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Signed-off-by: Yoshihiro Shimoda --- 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