mirror of
https://git.yoctoproject.org/poky
synced 2026-04-13 14:02:21 +02:00
qemuwrapper-cross: Use QEMU_OPTIONS
The correct cpu options are needed in order to correctly run some CPU types. This information is available in QEMU_OPTIONS, use it. This avoids architectures like qemuppc failing postinstalls. (From OE-Core rev: 3d9c0cbf1f9b9802d7374c4fa1672c26fc5db5cb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -9,7 +9,8 @@ do_install () {
|
||||
|
||||
echo "#!/bin/sh" > ${D}${bindir_crossscripts}/qemuwrapper
|
||||
qemu_binary=${@qemu_target_binary(d)}
|
||||
echo "$qemu_binary \"\$@\"" >> ${D}${bindir_crossscripts}/qemuwrapper
|
||||
qemu_options='${@d.getVar("QEMU_OPTIONS_%s" % d.getVar('PACKAGE_ARCH', True), True) or d.getVar('QEMU_OPTIONS', True) or ""}'
|
||||
echo "$qemu_binary $qemu_options \"\$@\"" >> ${D}${bindir_crossscripts}/qemuwrapper
|
||||
fallback_qemu_bin=
|
||||
case $qemu_binary in
|
||||
"qemu-i386")
|
||||
|
||||
Reference in New Issue
Block a user