diff options
| author | Ross Burton <ross.burton@arm.com> | 2025-01-10 13:01:13 +0000 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2025-01-29 06:20:43 -0800 |
| commit | dbb36a45f03af8b78073db1de1da908f8f9397b0 (patch) | |
| tree | 4692b03139752d43948b8618fa543274f1a6b5fd /meta/recipes-devtools | |
| parent | 55d65739ef945db0a2af45239d6a7163a039d11a (diff) | |
| download | poky-dbb36a45f03af8b78073db1de1da908f8f9397b0.tar.gz | |
classes/qemu: use tune to select QEMU_EXTRAOPTIONS, not package architecture
Using the package architecture to select the right qemu options to pass
to qemu-user is incorrect, and fails for recipes that set PACKAGE_ARCH
to MACHINE_ARCH (as the qemuppc workarounds suggest) because there are
not typically any options set for the machine name.
Solve this by using TUNE_PKGARCH instead: for the majority of recipes
this is the same value, but for machine-specific recipes it remains the
same instead of changing to the machine name.
This means we can remove the qemuppc workarounds, as they're obsolete.
Also update the gcc-testsuite recipe which uses the same pattern to use
TUNE_PKGARCH, and generalise the else codepath to avoid needing to
update the list of architectures.
[ YOCTO #15647 ]
(From OE-Core rev: 6db23345fd653aa0b4e483d2635376dfe7bed3cd)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 414b754a6cbb9cc354b1180efd5c3329568a2537)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'meta/recipes-devtools')
| -rw-r--r-- | meta/recipes-devtools/gcc/gcc-testsuite.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/recipes-devtools/gcc/gcc-testsuite.inc b/meta/recipes-devtools/gcc/gcc-testsuite.inc index 0a950b6c9e..af6c7ad5a9 100644 --- a/meta/recipes-devtools/gcc/gcc-testsuite.inc +++ b/meta/recipes-devtools/gcc/gcc-testsuite.inc | |||
| @@ -53,8 +53,8 @@ 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", "mips", "mips64")): | 56 | else: |
| 57 | extra = d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH')) | 57 | extra = d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('TUNE_PKGARCH')) |
| 58 | if extra: | 58 | if extra: |
| 59 | args += extra.split() | 59 | args += extra.split() |
| 60 | # For mips64 we could set a maximal CPU (e.g. Loongson-3A4000) however they either have MSA | 60 | # For mips64 we could set a maximal CPU (e.g. Loongson-3A4000) however they either have MSA |
