aboutsummaryrefslogtreecommitdiff
path: root/arch/xtensa
diff options
context:
space:
mode:
authorJiaxun Yang2024-06-18 14:56:04 +0100
committerTom Rini2024-07-04 16:08:37 -0600
commit76a0b9f5b4bf96523398bf07c907efe3e353754a (patch)
tree3d8afd6d4f135f883255bcd0c6f79bb9495c2742 /arch/xtensa
parent8dd193bc16246f66d3f709dfa21f3daf8241b85f (diff)
xtensa: Define PLATFORM_ELFFLAGS
u-boot.elf target requires it to work. Tested-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Jiaxun Yang <jiaxun.yang@flygoat.com>
Diffstat (limited to 'arch/xtensa')
-rw-r--r--arch/xtensa/config.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/xtensa/config.mk b/arch/xtensa/config.mk
index b0809999e40..200b66f8504 100644
--- a/arch/xtensa/config.mk
+++ b/arch/xtensa/config.mk
@@ -7,3 +7,9 @@ PLATFORM_CPPFLAGS += -D__XTENSA__ -mlongcalls -mforce-no-pic \
-ffunction-sections -fdata-sections
LDFLAGS_FINAL += --gc-sections
+
+ifeq ($(CONFIG_SYS_BIG_ENDIAN),y)
+PLATFORM_CPPFLAGS += -B xtensa -O elf32-xtensa-be
+else
+PLATFORM_ELFFLAGS += -B xtensa -O elf32-xtensa-le
+endif