mirror of
https://git.yoctoproject.org/poky
synced 2026-06-07 03:04:04 +00:00
qemuwrapper: Explicitly exit in case of no qemu supported for target
Running qemu for userspace code on unsupported target binaries might be bad idea because qemu could say running in endless loop instead of crashing due to illegal instruction or unsupported binary format. While this is qemu bug we should avoid hitting it by explicitly exiting from the wrapper when qemu backfill considered for machine. Behaviour was observed in do_rootfs stage when building on IBM Power 8 host for PowerPC e7400 target. (From OE-Core rev: a0ebc77ee0b461fc30e704f7dd9e9c2061ef4193) Signed-off-by: Serhey Popovych <serhe.popovych@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
14dc19f868
commit
76172256e3
@@ -21,7 +21,8 @@ do_install () {
|
||||
set -x
|
||||
|
||||
if [ ${@bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', 'True', 'False', d)} = False ]; then
|
||||
echo "qemuwrapper: qemu usermode is not supported"
|
||||
echo "qemuwrapper: qemu usermode is not supported"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user