* [PATCH] qemu: add ppc64le support to COMPATIBLE_HOST
@ 2026-06-16 20:50 Andrew Geissler
2026-06-18 13:58 ` [OE-core] " Ross Burton
0 siblings, 1 reply; 3+ messages in thread
From: Andrew Geissler @ 2026-06-16 20:50 UTC (permalink / raw)
To: openembedded-core; +Cc: Andrew Geissler
The move to qemu 11 and the enforcement of 64 bit machines broke ppc64le
machines. Add ppc64le wherever there is a ppc64 machine.
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
---
meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb | 2 +-
meta/recipes-devtools/qemu/qemu-targets.inc | 2 +-
meta/recipes-devtools/qemu/qemu.inc | 4 ++--
3 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb b/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb
index 60fb635600..e591cf0f29 100644
--- a/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb
+++ b/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb
@@ -1,7 +1,7 @@
SUMMARY = "Qemu helper scripts"
LICENSE = "GPL-2.0-only"
# QEMU 11.0.0+ requires a 64-bit host architecture
-COMPATIBLE_HOST = "(aarch64|x86_64|ppc64|riscv64|loongarch64|mips64|s390x|sparc64).*-linux"
+COMPATIBLE_HOST = "(aarch64|x86_64|ppc64|ppc64le|riscv64|loongarch64|mips64|s390x|sparc64).*-linux"
RDEPENDS:${PN} = "nativesdk-qemu nativesdk-unfs3 nativesdk-pseudo \
nativesdk-python3-shell nativesdk-python3-fcntl nativesdk-python3-logging \
"
diff --git a/meta/recipes-devtools/qemu/qemu-targets.inc b/meta/recipes-devtools/qemu/qemu-targets.inc
index 937ef1a911..3af7b74eec 100644
--- a/meta/recipes-devtools/qemu/qemu-targets.inc
+++ b/meta/recipes-devtools/qemu/qemu-targets.inc
@@ -26,7 +26,7 @@ def get_qemu_target_list(d):
if 'linux' not in tos:
return softmmuonly + ''.join([arch + "-softmmu" + "," for arch in archs]).rstrip(',')
# QEMU 11.0.0+ only supports linux-user on 64-bit host architectures
- linux_user_hosts = ['aarch64', 'loongarch64', 'mips64', 'ppc64', 'riscv64', 's390x', 'sparc64', 'x86_64']
+ linux_user_hosts = ['aarch64', 'loongarch64', 'mips64', 'ppc64', 'ppc64le', 'riscv64', 's390x', 'sparc64', 'x86_64']
if tarch not in linux_user_hosts:
return softmmuonly + ''.join([arch + "-softmmu" + "," for arch in archs]).rstrip(',')
return softmmuonly + linuxuseronly + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',')
diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
index 3071f74650..fa6a74f598 100644
--- a/meta/recipes-devtools/qemu/qemu.inc
+++ b/meta/recipes-devtools/qemu/qemu.inc
@@ -63,8 +63,8 @@ COMPATIBLE_HOST:mipsarchn64 = "null"
COMPATIBLE_HOST:riscv32 = "null"
# QEMU 11.0.0+ requires a 64-bit host architecture for emulator builds
-COMPATIBLE_HOST:class-target = "(aarch64|x86_64|ppc64|riscv64|loongarch64|mips64|s390x|sparc64).*-linux"
-COMPATIBLE_HOST:class-nativesdk = "(aarch64|x86_64|ppc64|riscv64|loongarch64|mips64|s390x|sparc64).*-linux"
+COMPATIBLE_HOST:class-target = "(aarch64|x86_64|ppc64|ppc64le|riscv64|loongarch64|mips64|s390x|sparc64).*-linux"
+COMPATIBLE_HOST:class-nativesdk = "(aarch64|x86_64|ppc64|ppc64le|riscv64|loongarch64|mips64|s390x|sparc64).*-linux"
# Per https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03873.html
# upstream states qemu doesn't work without optimization
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [OE-core] [PATCH] qemu: add ppc64le support to COMPATIBLE_HOST
2026-06-16 20:50 [PATCH] qemu: add ppc64le support to COMPATIBLE_HOST Andrew Geissler
@ 2026-06-18 13:58 ` Ross Burton
2026-06-22 14:45 ` Andrew Geissler
0 siblings, 1 reply; 3+ messages in thread
From: Ross Burton @ 2026-06-18 13:58 UTC (permalink / raw)
To: geissonator@gmail.com, mingli.yu@eng.windriver.com
Cc: openembedded-core@lists.openembedded.org
Hi Andrew, Mingli,
> On 16 Jun 2026, at 21:50, Andrew Geissler via lists.openembedded.org <geissonator=gmail.com@lists.openembedded.org> wrote:
>
> The move to qemu 11 and the enforcement of 64 bit machines broke ppc64le
> machines. Add ppc64le wherever there is a ppc64 machine.
Interestingly this patch from Andrew conflicts with a patch from Mingli Yu which changes ppc64 to powerpc64[1].
Without triple-checking I’m more liable to believe your patch as I expect that you’re actually running PPC64LE servers (and also touches more places where COMPATIBLE_HOST is set), but I’m also wondering what Mingli’s patch is doing because it must have been sent for a reason.
Can you both compare each-others patches so we can understand what happened?
Cheers,
Ross
[1] "qemu: Correct the ppc64 setting in COMPATIBLE_HOST”, https://lists.openembedded.org/g/openembedded-core/message/238884
> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
> ---
> meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb | 2 +-
> meta/recipes-devtools/qemu/qemu-targets.inc | 2 +-
> meta/recipes-devtools/qemu/qemu.inc | 4 ++--
> 3 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb b/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb
> index 60fb635600..e591cf0f29 100644
> --- a/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb
> +++ b/meta/recipes-devtools/qemu/nativesdk-qemu-helper_1.0.bb
> @@ -1,7 +1,7 @@
> SUMMARY = "Qemu helper scripts"
> LICENSE = "GPL-2.0-only"
> # QEMU 11.0.0+ requires a 64-bit host architecture
> -COMPATIBLE_HOST = "(aarch64|x86_64|ppc64|riscv64|loongarch64|mips64|s390x|sparc64).*-linux"
> +COMPATIBLE_HOST = "(aarch64|x86_64|ppc64|ppc64le|riscv64|loongarch64|mips64|s390x|sparc64).*-linux"
> RDEPENDS:${PN} = "nativesdk-qemu nativesdk-unfs3 nativesdk-pseudo \
> nativesdk-python3-shell nativesdk-python3-fcntl nativesdk-python3-logging \
> "
> diff --git a/meta/recipes-devtools/qemu/qemu-targets.inc b/meta/recipes-devtools/qemu/qemu-targets.inc
> index 937ef1a911..3af7b74eec 100644
> --- a/meta/recipes-devtools/qemu/qemu-targets.inc
> +++ b/meta/recipes-devtools/qemu/qemu-targets.inc
> @@ -26,7 +26,7 @@ def get_qemu_target_list(d):
> if 'linux' not in tos:
> return softmmuonly + ''.join([arch + "-softmmu" + "," for arch in archs]).rstrip(',')
> # QEMU 11.0.0+ only supports linux-user on 64-bit host architectures
> - linux_user_hosts = ['aarch64', 'loongarch64', 'mips64', 'ppc64', 'riscv64', 's390x', 'sparc64', 'x86_64']
> + linux_user_hosts = ['aarch64', 'loongarch64', 'mips64', 'ppc64', 'ppc64le', 'riscv64', 's390x', 'sparc64', 'x86_64']
> if tarch not in linux_user_hosts:
> return softmmuonly + ''.join([arch + "-softmmu" + "," for arch in archs]).rstrip(',')
> return softmmuonly + linuxuseronly + ''.join([arch + "-linux-user" + "," + arch + "-softmmu" + "," for arch in archs]).rstrip(',')
> diff --git a/meta/recipes-devtools/qemu/qemu.inc b/meta/recipes-devtools/qemu/qemu.inc
> index 3071f74650..fa6a74f598 100644
> --- a/meta/recipes-devtools/qemu/qemu.inc
> +++ b/meta/recipes-devtools/qemu/qemu.inc
> @@ -63,8 +63,8 @@ COMPATIBLE_HOST:mipsarchn64 = "null"
> COMPATIBLE_HOST:riscv32 = "null"
>
> # QEMU 11.0.0+ requires a 64-bit host architecture for emulator builds
> -COMPATIBLE_HOST:class-target = "(aarch64|x86_64|ppc64|riscv64|loongarch64|mips64|s390x|sparc64).*-linux"
> -COMPATIBLE_HOST:class-nativesdk = "(aarch64|x86_64|ppc64|riscv64|loongarch64|mips64|s390x|sparc64).*-linux"
> +COMPATIBLE_HOST:class-target = "(aarch64|x86_64|ppc64|ppc64le|riscv64|loongarch64|mips64|s390x|sparc64).*-linux"
> +COMPATIBLE_HOST:class-nativesdk = "(aarch64|x86_64|ppc64|ppc64le|riscv64|loongarch64|mips64|s390x|sparc64).*-linux"
>
> # Per https://lists.nongnu.org/archive/html/qemu-devel/2020-09/msg03873.html
> # upstream states qemu doesn't work without optimization
> --
> 2.43.0
>
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#238962): https://lists.openembedded.org/g/openembedded-core/message/238962
> Mute This Topic: https://lists.openembedded.org/mt/119840793/6875888
> Group Owner: openembedded-core+owner@lists.openembedded.org
> Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [ross.burton@arm.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] qemu: add ppc64le support to COMPATIBLE_HOST
2026-06-18 13:58 ` [OE-core] " Ross Burton
@ 2026-06-22 14:45 ` Andrew Geissler
0 siblings, 0 replies; 3+ messages in thread
From: Andrew Geissler @ 2026-06-22 14:45 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1707 bytes --]
On Thu, Jun 18, 2026 at 07:00 AM, Ross Burton wrote:
>
> Hi Andrew, Mingli,
>
>
>> On 16 Jun 2026, at 21:50, Andrew Geissler via lists.openembedded.org
>> <geissonator=gmail.com@lists.openembedded.org> wrote:
>>
>> The move to qemu 11 and the enforcement of 64 bit machines broke ppc64le
>> machines. Add ppc64le wherever there is a ppc64 machine.
>
> Interestingly this patch from Andrew conflicts with a patch from Mingli Yu
> which changes ppc64 to powerpc64[1].
>
> Without triple-checking I’m more liable to believe your patch as I expect
> that you’re actually running PPC64LE servers (and also touches more places
> where COMPATIBLE_HOST is set), but I’m also wondering what Mingli’s patch
> is doing because it must have been sent for a reason.
>
> Can you both compare each-others patches so we can understand what
> happened?
>
> Cheers,
> Ross
>
> [1] "qemu: Correct the ppc64 setting in COMPATIBLE_HOST”, https://lists.openembedded.org/g/openembedded-core/message/238884
>
Yep I tested my patch on our POWER9 ppc64le based machine and verified it allowed me to build the latest OpenBMC distro. I submitted this patch because our CI process that utilizes a ppc64le stopped working when we picked up the latest oe-core in OpenBMC.
I poked around a bit and when I look at a POWER server that not running in little endian mode, I don't actually see ppc64 or powerpc64 from Mingli patch. As far as I can tell it's just powerpc (uname -p). So I don't have a lot vested in the non-ppc64le portion. If Mingli can confirm it tested fine for their config then I'm good if we just merge both patches, otherwise please merge mine at least :)
Andrew
[-- Attachment #2: Type: text/html, Size: 1970 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-06-22 14:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-16 20:50 [PATCH] qemu: add ppc64le support to COMPATIBLE_HOST Andrew Geissler
2026-06-18 13:58 ` [OE-core] " Ross Burton
2026-06-22 14:45 ` Andrew Geissler
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.