]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
xtensa: Fix big endian build
authorMarek Vasut <marek.vasut+renesas@mailbox.org>
Sun, 16 Nov 2025 00:19:01 +0000 (01:19 +0100)
committerTom Rini <trini@konsulko.com>
Fri, 28 Nov 2025 16:20:34 +0000 (10:20 -0600)
Make sure the correct PLATFORM_...FLAGS are assigned in each
case, consistently. Assign PLATFORM_ELFFLAGS for both LE and
BE case. The previous PLATFORM_CPPFLAGS makes no sense for
these particular parameters, which are passed to objcopy.

Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
arch/xtensa/config.mk

index 200b66f850473530d27ecb48b9a8b7f8dd71b2ff..75888720d4a3db8070991d7305cff03a6b06c325 100644 (file)
@@ -9,7 +9,7 @@ PLATFORM_CPPFLAGS += -D__XTENSA__ -mlongcalls -mforce-no-pic \
 LDFLAGS_FINAL += --gc-sections
 
 ifeq ($(CONFIG_SYS_BIG_ENDIAN),y)
-PLATFORM_CPPFLAGS += -B xtensa -O elf32-xtensa-be
+PLATFORM_ELFFLAGS += -B xtensa -O elf32-xtensa-be
 else
 PLATFORM_ELFFLAGS += -B xtensa -O elf32-xtensa-le
 endif