From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 03C52C433EF for ; Wed, 30 Mar 2022 20:05:53 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 9441784142; Wed, 30 Mar 2022 22:05:51 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id 96F668408F; Wed, 30 Mar 2022 20:41:52 +0200 (CEST) Received: from p3plsmtpa06-01.prod.phx3.secureserver.net (p3plsmtpa06-01.prod.phx3.secureserver.net [173.201.192.102]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id DD612840DF for ; Wed, 30 Mar 2022 20:41:46 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=u74147@gmail.com Received: from localhost.localdomain ([223.73.211.73]) by :SMTPAUTH: with ESMTPSA id ZdGInO9OV68g4ZdGKnY3Dy; Wed, 30 Mar 2022 11:41:45 -0700 X-CMAE-Analysis: v=2.4 cv=e7vD9Yl/ c=1 sm=1 tr=0 ts=6244a469 a=mauWsWONUtM20LBF+x7ImA==:117 a=mauWsWONUtM20LBF+x7ImA==:17 a=x7bEGLp0ZPQA:10 a=n39E6zVzwvMA:10 a=_twTT5zqAAAA:8 a=EOL9r4k2mYDmVjd9wUcA:9 a=ILoXdGDbYT3DTB7Z0gVI:22 X-SECURESERVER-ACCT: dhu@hodcarrier.org From: Du Huanpeng To: u-boot@lists.denx.de Cc: Du Huanpeng Subject: [PATCH] Makefile: add endian link flag to u-boot-elf.o Date: Thu, 31 Mar 2022 02:41:42 +0800 Message-Id: <20220330184142.205156-1-u74147@gmail.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfAHPabTLuzD0jC78SfgjjcZQ0IAEsPzgU4O+uvYNZafcyPjg7gPjp9eXp5bNnAVfsXvnlS55djbC2Nbne/63z0IcRTS8wyQfBo0IJydg0GTxzOpM3BHD Oh0xO36tin8ihO/jEkqWjFMaKIXKHVW+qkiuWKT1tO2aQmnJ06e9IeVCA7s88M7iyfaPmk5ZS9LtkmTzpVFDOYXT7Q4hWRobKH28/BVDQzDg783fnF1kj9m0 X-Mailman-Approved-At: Wed, 30 Mar 2022 22:05:50 +0200 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean From: Du Huanpeng fix compile error when using a little-endian to build with configs: sfr_nb4-ser_ram_defconfig comtrend_wap5813n_ram_defconfig comtrend_ar5387un_ram_defconfig comtrend_ct5361_ram_defconfig comtrend_vr3032u_ram_defconfig comtrend_ar5315u_ram_defconfig huawei_hg556a_ram_defconfig netgear_dgnd3700v2_ram_defconfig Signed-off-by: Du Huanpeng --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 6998388884..5007307f23 100644 --- a/Makefile +++ b/Makefile @@ -1700,6 +1700,7 @@ u-boot-img-spl-at-end.bin: u-boot.img spl/u-boot-spl.bin FORCE quiet_cmd_u-boot-elf ?= LD $@ cmd_u-boot-elf ?= $(LD) u-boot-elf.o -o $@ \ + $(if $(CONFIG_SYS_BIG_ENDIAN),-EB,-EL) \ -T u-boot-elf.lds --defsym=$(CONFIG_PLATFORM_ELFENTRY)=$(CONFIG_SYS_TEXT_BASE) \ -Ttext=$(CONFIG_SYS_TEXT_BASE) u-boot.elf: u-boot.bin u-boot-elf.lds -- 2.32.0