From patchwork Sat Dec 25 23:02:26 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nobuhiro Iwamatsu X-Patchwork-Id: 76709 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 B75F8B70EB for ; Sun, 26 Dec 2010 10:07:53 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id A344628096; Sun, 26 Dec 2010 00:07:50 +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 PNU-tONwLqWp; Sun, 26 Dec 2010 00:07:50 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1641F28098; Sun, 26 Dec 2010 00:07:48 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 0897728098 for ; Sun, 26 Dec 2010 00:07:46 +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 qOmHTGG8lDWN for ; Sun, 26 Dec 2010 00:07:44 +0100 (CET) X-Greylist: delayed 474 seconds by postgrey-1.27 at theia; Sun, 26 Dec 2010 00:07:41 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 mail-iy0-f172.google.com (mail-iy0-f172.google.com [209.85.210.172]) by theia.denx.de (Postfix) with ESMTP id 19B5828096 for ; Sun, 26 Dec 2010 00:07:41 +0100 (CET) Received: by iyi42 with SMTP id 42so6620440iyi.3 for ; Sat, 25 Dec 2010 15:07:41 -0800 (PST) Received: by 10.42.167.9 with SMTP id q9mr10827266icy.266.1293317984895; Sat, 25 Dec 2010 14:59:44 -0800 (PST) Received: from chimagu (w142187.ppp.asahi-net.or.jp [121.1.142.187]) by mx.google.com with ESMTPS id i2sm9142724icv.15.2010.12.25.14.59.42 (version=TLSv1/SSLv3 cipher=RC4-MD5); Sat, 25 Dec 2010 14:59:43 -0800 (PST) Received: from iwamatsu by chimagu with local (Exim 4.72) (envelope-from ) id 1PWd8C-000459-1C; Sun, 26 Dec 2010 08:02:32 +0900 From: Nobuhiro Iwamatsu To: u-boot@lists.denx.de Date: Sun, 26 Dec 2010 08:02:26 +0900 Message-Id: <1293318147-15653-1-git-send-email-iwamatsu@nigauri.org> X-Mailer: git-send-email 1.7.2.3 Subject: [U-Boot] [PATCH 1/2 for 2010.12 ] Add support PLATFORM_LDFLAGS to cmd_link_o_target 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: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de Current cmd_link_o_target function in config.mk does not support the set of the endian. Some architecture is bi-endian (e.g. mips and sh). Therefore, there is case supporting big endian and little endian with one toolchain. For example, when user builds target of big endian in host of little endian, they need set endian. Signed-off-by: Nobuhiro Iwamatsu --- config.mk | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/config.mk b/config.mk index c6d6f7b..bbcefbe 100644 --- a/config.mk +++ b/config.mk @@ -262,7 +262,7 @@ $(obj)%.s: %.c # If the list of objects to link is empty, just create an empty built-in.o cmd_link_o_target = $(if $(strip $1),\ - $(LD) -r -o $@ $1 ,\ + $(LD) $(ENDIANNESS) -r -o $@ $1 ,\ rm -f $@; $(AR) rcs $@ ) #########################################################################