mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
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: 972ca555ff3aa41d32980477850c92915b6395ed) 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>
This commit is contained in:
committed by
Steve Sakoman
parent
93c245a868
commit
73d95d9dad
@@ -53,8 +53,8 @@ python check_prepare() {
|
||||
# - valid for x86*, powerpc, arm, arm64
|
||||
if qemu_binary.endswith(("x86_64", "i386", "arm", "aarch64")):
|
||||
args += ["-cpu", "max"]
|
||||
elif qemu_binary.endswith(("ppc", "mips", "mips64")):
|
||||
extra = d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('PACKAGE_ARCH'))
|
||||
else:
|
||||
extra = d.getVar("QEMU_EXTRAOPTIONS_%s" % d.getVar('TUNE_PKGARCH'))
|
||||
if extra:
|
||||
args += extra.split()
|
||||
# For mips64 we could set a maximal CPU (e.g. Loongson-3A4000) however they either have MSA
|
||||
|
||||
Reference in New Issue
Block a user