[PATCH 04/10] xtensa: Define PLATFORM_ELFFLAGS
Jiaxun Yang
jiaxun.yang at flygoat.com
Sun May 19 22:53:51 CEST 2024
u-boot.elf target requiures it to work.
Signed-off-by: Jiaxun Yang <jiaxun.yang at flygoat.com>
---
arch/xtensa/config.mk | 3 +++
1 file changed, 3 insertions(+)
diff --git a/arch/xtensa/config.mk b/arch/xtensa/config.mk
index b0809999e403..3ec936272f25 100644
--- a/arch/xtensa/config.mk
+++ b/arch/xtensa/config.mk
@@ -7,3 +7,6 @@ PLATFORM_CPPFLAGS += -D__XTENSA__ -mlongcalls -mforce-no-pic \
-ffunction-sections -fdata-sections
LDFLAGS_FINAL += --gc-sections
+
+PLATFORM_ELFFLAGS += -B xtensa -O elf32-xtensa-le
+
--
2.43.0
More information about the U-Boot
mailing list