diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-13 10:14:51 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-08-15 08:15:25 +0100 |
commit | 58ca420c350affadb6332371c574fc9b37e7df77 (patch) | |
tree | 165104dfbafb5b26ce98e50267549a71083cf8c6 /meta/recipes-devtools/gcc | |
parent | 911532040a9a085ee98bb2b5f1ea84d978bcf746 (diff) | |
download | poky-58ca420c350affadb6332371c574fc9b37e7df77.tar.gz |
gcc-testsuite: Set qemu options for mips correctly
MIPS sets QEMU CPU values similarly to ppc and doens't support 'max'.
Allow this to filter through correctly to the toolchain testing.
(From OE-Core rev: 8c939780228d1440190a87cc24abd72d26aade74)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/gcc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-testsuite.inc | 8 |
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 |