Skip to contentSkip to conversation

mips: disable QEMU usermode usage when building with n32 ABI

PATCH New Alexander Kanavin 1 participant 1 message Sep 1, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mips: disable QEMU usermode usage when building with n32 ABI

---
 meta/conf/machine/include/mips/arch-mips.inc | 3 +++
 1 file changed, 3 insertions(+)
meta/conf/machine/include/mips/arch-mips.inc +3 -0
index 89d17e7..d3e83d1 100644
@@ -20,6 +20,9 @@ TUNECONFLICTS[n32] = "o32 n64"
 ABIEXTENSION .= "${@bb.utils.contains('TUNE_FEATURES', 'n32', 'n32', '' ,d)}"
 TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'n32', ' -mabi=n32', '', d)}"
 
+# user mode qemu doesn't support mips64 n32: "Invalid ELF image for this architecture"
+MACHINE_FEATURES_BACKFILL_CONSIDERED_append = " ${@bb.utils.contains('TUNE_FEATURES', 'n32', 'qemu-usermode', '', d)}"
+
 TUNEVALID[n64] = "MIPS64 n64 ABI"
 TUNECONFLICTS[n64] = "o32 n32"
 TUNE_CCARGS .= "${@bb.utils.contains('TUNE_FEATURES', 'n64', ' -mabi=64', '', d)}"
Signature · 1 line
2.9.3