]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
classes/qemu: use tune to select QEMU_EXTRAOPTIONS, not package architecture
authorRoss Burton <ross.burton@arm.com>
Fri, 10 Jan 2025 13:01:13 +0000 (13:01 +0000)
committerSteve Sakoman <steve@sakoman.com>
Fri, 17 Jan 2025 15:04:10 +0000 (07:04 -0800)
commit6db23345fd653aa0b4e483d2635376dfe7bed3cd
treeebacf98534906879153be9531c59613d8c0a824d
parent9c64247b206efa72a52460a0b94734f7afc832e1
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 ]

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>
meta/classes-recipe/qemu.bbclass
meta/recipes-devtools/gcc/gcc-testsuite.inc