diff options
| author | Jiaxun Yang <[email protected]> | 2024-06-18 14:56:04 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2024-07-04 16:08:37 -0600 |
| commit | 76a0b9f5b4bf96523398bf07c907efe3e353754a (patch) | |
| tree | 3d8afd6d4f135f883255bcd0c6f79bb9495c2742 | |
| parent | 8dd193bc16246f66d3f709dfa21f3daf8241b85f (diff) | |
xtensa: Define PLATFORM_ELFFLAGS
u-boot.elf target requires it to work.
Tested-by: Max Filippov <[email protected]>
Signed-off-by: Jiaxun Yang <[email protected]>
| -rw-r--r-- | arch/xtensa/config.mk | 6 |
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 |
