public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] Makefile: add endian link flag to u-boot-elf.o
@ 2022-03-30 18:41 Du Huanpeng
  2022-04-06 15:55 ` Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Du Huanpeng @ 2022-03-30 18:41 UTC (permalink / raw)
  To: u-boot; +Cc: Du Huanpeng

From: Du Huanpeng <dhu@hodcarrier.org>

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 <dhu@hodcarrier.org>
---
 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


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Makefile: add endian link flag to u-boot-elf.o
  2022-03-30 18:41 [PATCH] Makefile: add endian link flag to u-boot-elf.o Du Huanpeng
@ 2022-04-06 15:55 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2022-04-06 15:55 UTC (permalink / raw)
  To: Du Huanpeng; +Cc: u-boot, Du Huanpeng

[-- Attachment #1: Type: text/plain, Size: 560 bytes --]

On Thu, Mar 31, 2022 at 02:41:42AM +0800, Du Huanpeng wrote:

> From: Du Huanpeng <dhu@hodcarrier.org>
> 
> 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 <dhu@hodcarrier.org>

Applied to u-boot/master, thanks!

-- 
Tom

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-06 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-03-30 18:41 [PATCH] Makefile: add endian link flag to u-boot-elf.o Du Huanpeng
2022-04-06 15:55 ` Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox