check-version-mismatch.bbclass: make it work for walnascar
A message that is not in the archive (sent off-list or not yet received): [email protected]
ping for walnascar branch
Regards,
Qi
Quoted 61 lines · Chen Qi via lists.openembedded.org
From: Chen Qi <[email protected]>
The oe-core master has qemu.bbclass refactoring, but walnascar does not. So we will need to copy all the needed functions and settings from qemu.bbclass here to make things work.
Signed-off-by Chen Qi <[email protected]>--- .../classes/check-version-mismatch.bbclass | 33 ++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-)meta-oe/classes/check-version-mismatch.bbclass +32
-2@@ -1,4 +1,35 @@ -inherit qemu +def qemu_target_binary(data): + package_arch = data.getVar("PACKAGE_ARCH") + qemu_target_binary = (data.getVar("QEMU_TARGET_BINARY_%s" % package_arch) or "") + if qemu_target_binary: + return qemu_target_binary + + target_arch = data.getVar("TARGET_ARCH") + if target_arch in ("i486", "i586", "i686"): + target_arch = "i386" + elif target_arch == "powerpc": + target_arch = "ppc" + elif target_arch == "powerpc64": + target_arch = "ppc64" + elif target_arch == "powerpc64le": + target_arch = "ppc64le" + + return "qemu-" + target_arch + +def qemu_wrapper_cmdline(data, rootfs_path, library_paths): + import string + + qemu_binary = qemu_target_binary(data) + if qemu_binary == "qemu-allarch": + qemu_binary = "qemuwrapper" + + qemu_options = data.getVar("QEMU_OPTIONS") or "" + + return "PSEUDO_UNLOAD=1 " + qemu_binary + " " + qemu_options + " -L " + rootfs_path\ + + " -E LD_LIBRARY_PATH=" + ":".join(library_paths) + " " + +QEMU_OPTIONS = "-r ${OLDEST_KERNEL} ${@d.getVar("QEMU_EXTRAOPTIONS:tune-%s" % d.getVar('TUNE_PKGARCH')) or ""}" +QEMU_OPTIONS[vardeps] += "QEMU_EXTRAOPTIONS:tune-${TUNE_PKGARCH}" ENABLE_VERSION_MISMATCH_CHECK ?= "${@'1' if bb.utils.contains('MACHINE_FEATURES', 'qemu-usermode', True, False, d) else '0'}" DEBUG_VERSION_MISMATCH_CHECK ?= "1" -=-=-=-=-=-=-=-=-=-=-=-Links: You receive all messages sent to this group.
View/Reply Online (#117671): https://lists.openembedded.org/g/openembedded-devel/message/117671
Mute This Topic: https://lists.openembedded.org/mt/113375864/3618072
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-