Skip to contentSkip to conversation

arch-mips.inc: Use -EB/-EL for denoting endianness

PATCH New Khem Raj 1 participant 1 message May 6, 2025

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 arch-mips.inc: Use -EB/-EL for denoting endianness

While -meb/-mel works it is not documented as supported and using -EL/-EB also makes clang work without tweaking TUNE_CCARGS

Fixes
mips-poky-linux-musl-clang: error: unknown argument: '-meb'

---
 meta/conf/machine/include/mips/arch-mips.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/conf/machine/include/mips/arch-mips.inc +1 -1
index e39cdcab5dd..baadc61d652 100644
@@ -8,7 +8,7 @@ DEFAULTTUNE ?= "mips"
 
 # Endianess
 TUNEVALID[bigendian] = "Enable big-endian mode"
-TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', ' -meb', ' -mel', d)}"
+TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'bigendian', ' -EB', ' -EL', d)}"
 
 # ABI flags
 TUNEVALID[o32] = "MIPS o32 ABI"