diff options
Diffstat (limited to 'meta/recipes-devtools/gcc/gcc-testsuite.inc')
-rw-r--r-- | meta/recipes-devtools/gcc/gcc-testsuite.inc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-testsuite.inc b/meta/recipes-devtools/gcc/gcc-testsuite.inc index f68fec58ed..3257f86907 100644 --- a/meta/recipes-devtools/gcc/gcc-testsuite.inc +++ b/meta/recipes-devtools/gcc/gcc-testsuite.inc | |||
@@ -51,9 +51,14 @@ python check_prepare() { | |||
51 | # enable all valid instructions, since the test suite itself does not | 51 | # enable all valid instructions, since the test suite itself does not |
52 | # limit itself to the target cpu options. | 52 | # limit itself to the target cpu options. |
53 | # - valid for x86*, powerpc, arm, arm64 | 53 | # - valid for x86*, powerpc, arm, arm64 |
54 | if qemu_binary.lstrip("qemu-") in ["x86_64", "i386", "ppc", "arm", "aarch64"]: | 54 | if qemu_binary.endswith(("x86_64", "i386", "arm", "aarch64")): |
55 | args += ["-cpu", "max"] | 55 | args += ["-cpu", "max"] |
56 | 56 | else: | |
57 | extra = d.getVar("QEMU_EXTRAOPTIONS:tune-%s" % d.getVar('TUNE_PKGARCH')) | ||
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 | ||
57 | sysroot = d.getVar("RECIPE_SYSROOT") | 62 | sysroot = d.getVar("RECIPE_SYSROOT") |
58 | args += ["-L", sysroot] | 63 | args += ["-L", sysroot] |
59 | # 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 |
@@ -96,7 +101,7 @@ python check_prepare() { | |||
96 | f.write(generate_qemu_linux_user_config(d)) | 101 | f.write(generate_qemu_linux_user_config(d)) |
97 | 102 | ||
98 | # write out target ssh board config | 103 | # write out target ssh board config |
99 | with open(os.path.join(dejagnudir, "ssh.exp"), "w") as f: | 104 | with open(os.path.join(dejagnudir, "linux-ssh.exp"), "w") as f: |
100 | f.write(generate_remote_ssh_linux_config(d)) | 105 | f.write(generate_remote_ssh_linux_config(d)) |
101 | 106 | ||
102 | # generate site.exp to provide boards | 107 | # generate site.exp to provide boards |