diff options
| author | Marek Vasut <[email protected]> | 2025-11-16 01:19:01 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2025-11-28 10:20:34 -0600 |
| commit | 534eaa4d4dec9efed662189fd68f78b3b7b1e636 (patch) | |
| tree | a590c5fe6f07e78d4489159d80b567dba7740256 | |
| parent | 8c0d78ddc4989fe95337b20e392a76e796001eb6 (diff) | |
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 <[email protected]>
| -rw-r--r-- | arch/xtensa/config.mk | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/xtensa/config.mk b/arch/xtensa/config.mk index 200b66f8504..75888720d4a 100644 --- a/arch/xtensa/config.mk +++ b/arch/xtensa/config.mk @@ -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 |
