qemu: Enable ppc64le support for qemu-usermode
PATCH v2 1/1 qemu: Enable ppc64le support for qemu-usermode
glibc defines minimum kernel needed to be 3.10.0 for LE ppc64
Signed-off-by Khem Raj <[email protected]>
---
v2: Exclude ppc64le from system-qemu target list, its usermode only
option
meta/classes/qemu.bbclass | 3 +++ meta/conf/bitbake.conf | 1 + meta/recipes-devtools/qemu/qemu-targets.inc | 2 +- meta/recipes-devtools/qemu/qemu.inc | 2 +- 4 files changed, 6 insertions(+), 2 deletions(-)
meta/classes/qemu.bbclass +3 -0
@@ -16,6 +16,8 @@ def qemu_target_binary(data): target_arch = "ppc" elif target_arch == "powerpc64": target_arch = "ppc64" + elif target_arch == "powerpc64le": + target_arch = "ppc64le" return "qemu-" + target_arch
@@ -62,3 +64,4 @@ QEMU_EXTRAOPTIONS_ppc64e5500 = " -cpu e500mc" QEMU_EXTRAOPTIONS_ppce6500 = " -cpu e500mc" QEMU_EXTRAOPTIONS_ppc64e6500 = " -cpu e500mc" QEMU_EXTRAOPTIONS_ppc7400 = " -cpu 7400" +QEMU_EXTRAOPTIONS_powerpc64le = " -cpu POWER8"
meta/conf/bitbake.conf +1 -0
@@ -430,6 +430,7 @@ SDKPATHNATIVE = "${SDKPATH}/sysroots/${SDK_SYS}" OLDEST_KERNEL = "3.2.0" OLDEST_KERNEL_aarch64 = "3.14" OLDEST_KERNEL_nios2 = "3.19" +OLDEST_KERNEL_powerpc64le = "3.10.0" OLDEST_KERNEL_riscv32 = "4.15" OLDEST_KERNEL_riscv64 = "4.15"
meta/recipes-devtools/qemu/qemu-targets.inc +1 -1
@@ -13,7 +13,7 @@ def get_qemu_target_list(d): softmmuonly += arch + "-softmmu," archs.remove(arch) linuxuseronly = "" - for arch in ['armeb', 'alpha', 'ppc64abi32', 'sparc32plus', 'aarch64_be']: + for arch in ['armeb', 'alpha', 'ppc64abi32', 'ppc64le', 'sparc32plus', 'aarch64_be']: if arch in archs: linuxuseronly += arch + "-linux-user," archs.remove(arch)
meta/recipes-devtools/qemu/qemu.inc +1 -1
@@ -59,7 +59,7 @@ do_install_ptest() { } # QEMU_TARGETS is overridable variable -QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc ppc64 riscv32 riscv64 sh4 x86_64" +QEMU_TARGETS ?= "arm aarch64 i386 mips mipsel mips64 mips64el ppc ppc64 ppc64le riscv32 riscv64 sh4 x86_64" EXTRA_OECONF = " \ --prefix=${prefix} \
Signature · 1 line
2.25.0