mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
xtensa: Fix big endian build
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>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user