summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/gcc/gcc-testsuite.inc
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-testsuite.inc')
-rw-r--r--meta/recipes-devtools/gcc/gcc-testsuite.inc8
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-testsuite.inc b/meta/recipes-devtools/gcc/gcc-testsuite.inc
index a8299fa7ae..f16d471478 100644
--- a/meta/recipes-devtools/gcc/gcc-testsuite.inc
+++ b/meta/recipes-devtools/gcc/gcc-testsuite.inc
@@ -53,8 +53,12 @@ python check_prepare() {
53 # - valid for x86*, powerpc, arm, arm64 53 # - valid for x86*, powerpc, arm, arm64
54 if qemu_binary.endswith(("x86_64", "i386", "arm", "aarch64")): 54 if qemu_binary.endswith(("x86_64", "i386", "arm", "aarch64")):
55 args += ["-cpu", "max"] 55 args += ["-cpu", "max"]
56 elif qemu_binary.endswith(("ppc")): 56 elif qemu_binary.endswith(("ppc", "mips", "mips64")):
57 args += d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')).split() 57 extra = d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH'))
58 if extra:
59 args += extra.split()
60 # For mips64 we could set a maximal CPU (e.g. Loongson-3A4000) however they either have MSA
61 # or Loongson-MMI vector extensions, not both and qemu lacks complete support for MMI
58 sysroot = d.getVar("RECIPE_SYSROOT") 62 sysroot = d.getVar("RECIPE_SYSROOT")
59 args += ["-L", sysroot] 63 args += ["-L", sysroot]
60 # lib paths are static here instead of using $libdir since this is used by a -cross recipe 64 # lib paths are static here instead of using $libdir since this is used by a -cross recipe