summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexander Kanavin <alexander.kanavin@linux.intel.com>2016-09-01 20:50:54 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-09-02 00:14:34 +0100
commitd6dbe4290eb0c668ff57c262d7ff76ac14528e2d (patch)
treeda392947c00ff3e166439c09f4780f0bd377d0f1
parent3750e0d729722e48c12b7308a6964cff71cc9a51 (diff)
downloadopenembedded-core-contrib-d6dbe4290eb0c668ff57c262d7ff76ac14528e2d.tar.gz
openembedded-core-contrib-d6dbe4290eb0c668ff57c262d7ff76ac14528e2d.tar.bz2
openembedded-core-contrib-d6dbe4290eb0c668ff57c262d7ff76ac14528e2d.zip
arch-mips.inc: Disable QEMU usermode usage when building with n32 ABI
QEMU usermode doesn't support n32 binaries, erroring with "Invalid ELF image for this architecture". Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/conf/machine/include/mips/arch-mips.inc3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/conf/machine/include/mips/arch-mips.inc b/meta/conf/machine/include/mips/arch-mips.inc
index 89d17e7c20..d3e83d17f6 100644
--- a/meta/conf/machine/include/mips/arch-mips.inc
+++ b/meta/conf/machine/include/mips/arch-mips.inc
@@ -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)}"