Skip to contentSkip to conversation

libubootenv: Disable for ppc/ppc64 qemu machines

PATCH In review Khem Raj 3 participants 9 messages Jul 4, 2021 – Jul 23, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 libubootenv: Disable for ppc/ppc64 qemu machines

This recipe depends on u-boot and u-boot is not available for qemuppc/qemuppc64 and there is no defconfig available either

---
 meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb +3 -0
index 306296922c..88a8397c3c 100644
@@ -25,6 +25,9 @@ RPROVIDES_${PN}-bin += "u-boot-fw-utils"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
+COMPATIBLE_HOST_qemuppc64 = "null"
+COMPATIBLE_HOST_qemuppc = "null"
+
 RRECOMMENDS_${PN}-bin_append_class-target = " u-boot-default-env"
 
 BBCLASSEXTEND = "native"
Signature · 1 line
2.32.0
author
#1 lore raw

ping

Quoted 26 lines · Khem Raj

This recipe depends on u-boot and u-boot is not available for qemuppc/qemuppc64 and there is no defconfig available either

---
 meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb +3 -1
index 306296922c..88a8397c3c 100644
@@ -25,6 +25,9 @@ RPROVIDES_${PN}-bin += "u-boot-fw-utils"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
+COMPATIBLE_HOST_qemuppc64 = "null"
+COMPATIBLE_HOST_qemuppc = "null"
+
 RRECOMMENDS_${PN}-bin_append_class-target = " u-boot-default-env"
 
 BBCLASSEXTEND = "native"
--

2.32.0

author
#2 lore raw

ping^2

Is there any issue with this patch ? If so please let me know

I am seeing following on qemuppc64

ERROR: Nothing RPROVIDES 'u-boot-default-env' (but /mnt/b/yoe/master/sources/openembedded-core/meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb RDEPENDS on or otherwise requires it)
u-boot-starfive RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-hardkernel RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-poplar RPROVIDES u-boot-default-env but was skipped: Either UBOOT_MACHINE or UBOOT_CONFIG must be set in the qemuppc64 machine configuration.
u-boot-imx-mfgtool RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-toradex RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-ti-mainline RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-juno RPROVIDES u-boot-default-env but was skipped: Either UBOOT_MACHINE or UBOOT_CONFIG must be set in the qemuppc64 machine configuration.
u-boot-qoriq RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-ti-staging RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-timesys RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-congatec RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-qoriq RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE)
u-boot-imx RPROVIDES u-boot-default-env but was skipped: incompatible
with machine qemuppc64 (not in COMPATIBLE_MACHINE)
u-boot RPROVIDES u-boot-default-env but was skipped: Either
UBOOT_MACHINE or UBOOT_CONFIG must be set in the qemuppc64 machine configuration.
u-boot-fslc RPROVIDES u-boot-default-env but was skipped: incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE)
u-boot-gateworks-imx RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-boundary RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-orangepi-i96 RPROVIDES u-boot-default-env but was skipped:
Either UBOOT_MACHINE or UBOOT_CONFIG must be set in the qemuppc64
machine configuration.
u-boot-fslc-mfgtool RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-kontron RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-remarkable2 RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-variscite RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE) u-boot-ti-staging RPROVIDES u-boot-default-env but was skipped:
incompatible with machine qemuppc64 (not in COMPATIBLE_MACHINE)
NOTE: Runtime target 'u-boot-default-env' is unbuildable, removing... Missing or unbuildable dependency chain was: ['u-boot-default-env']
ERROR: Required build target 'meta-world-pkgdata' has no buildable providers. Missing or unbuildable dependency chain was: ['meta-world-pkgdata', 'libubootenv', 'u-boot-default-env']

Quoted 30 lines · Khem Raj

ping

Quoted 26 lines · Khem Raj

This recipe depends on u-boot and u-boot is not available for qemuppc/qemuppc64 and there is no defconfig available either

---
 meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb | 3 +++
 1 file changed, 3 insertions(+)
meta/recipes-bsp/u-boot/libubootenv_0.3.2.bb +3 -1
index 306296922c..88a8397c3c 100644
@@ -25,6 +25,9 @@ RPROVIDES_${PN}-bin += "u-boot-fw-utils"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
+COMPATIBLE_HOST_qemuppc64 = "null"
+COMPATIBLE_HOST_qemuppc = "null"
+
 RRECOMMENDS_${PN}-bin_append_class-target = " u-boot-default-env"
 
 BBCLASSEXTEND = "native"
--

2.32.0

#3 lore raw
Quoted 3 lines · Khem Raj

ping^2

Is there any issue with this patch ? If so please let me know

Note that qemu-ppce500_defconfig would be a good target to use for ppc for U-Boot, but not ppc64 and wouldn't cover the mac99 machine type OE uses anyhow.

Signature · 1 line
Tom
author
#4 lore raw
Quoted 7 lines · Tom Rini
Quoted 3 lines · Khem Raj

ping^2

Is there any issue with this patch ? If so please let me know

Note that qemu-ppce500_defconfig would be a good target to use for ppc

It would be far from what we emulate though as qemuppc machine

Quoted 2 lines

for U-Boot, but not ppc64 and wouldn't cover the mac99 machine type OE uses anyhow.

Same here

We don’t use uboot
On these machines so I don’t see any harm in disabling it here do you ?

Quoted 5 lines

--
Tom

#5 lore raw
Quoted 13 lines · Khem Raj
Quoted 7 lines · Tom Rini
Quoted 3 lines · Khem Raj

ping^2

Is there any issue with this patch ? If so please let me know

Note that qemu-ppce500_defconfig would be a good target to use for ppc

It would be far from what we emulate though as qemuppc machine

Quoted 8 lines
Quoted 2 lines

for U-Boot, but not ppc64 and wouldn't cover the mac99 machine type OE uses anyhow.

Same here

We don’t use uboot
On these machines so I don’t see any harm in disabling it here do you ?

I guess I only high-level wonder why the target in OE is an old powermac and not the e500 class machines. I mean it could be related to how the qemu target in U-Boot wasn't that useful for a while, a long while back. So no, I don't object to this specific change, but I do wonder why OE targets what it targets rather than (what I understand anyhow to be) the common use case of qemu for ppc32 systems. I could just be mistaken there, however.

Signature · 1 line
Tom
author
#6 lore raw
Quoted 23 lines · Tom Rini
Quoted 13 lines · Khem Raj
Quoted 7 lines · Tom Rini
Quoted 3 lines · Khem Raj

ping^2

Is there any issue with this patch ? If so please let me know

Note that qemu-ppce500_defconfig would be a good target to use for ppc

It would be far from what we emulate though as qemuppc machine

Quoted 8 lines
Quoted 2 lines

for U-Boot, but not ppc64 and wouldn't cover the mac99 machine type OE uses anyhow.

Same here

We don’t use uboot
On these machines so I don’t see any harm in disabling it here do you ?

Quoted 7 lines

I guess I only high-level wonder why the target in OE is an old powermac and not the e500 class machines. I mean it could be related to how the qemu target in U-Boot wasn't that useful for a while, a long while back. So no, I don't object to this specific change, but I do wonder why OE targets what it targets rather than (what I understand anyhow to be) the common use case of qemu for ppc32 systems. I could just be mistaken there, however.

BookE implementation in Qemu was never as robust to emulate full system in past that’s where we use traditional ppc target here

Quoted 4 lines

--
Tom

#7 lore raw
In reply to Khem Raj
Quoted 3 lines · Khem Raj

ping^2

Is there any issue with this patch ? If so please let me know

There was an ongoing discussion about whether a patch triggering some of these issues should be reverted or not. I was hoping we'd figure that issue out...

Cheers,

Richard

author
#8 lore raw
Quoted 9 lines · Richard Purdie
Quoted 3 lines · Khem Raj

ping^2

Is there any issue with this patch ? If so please let me know

There was an ongoing discussion about whether a patch triggering some of these
issues should be reverted or not. I was hoping we'd figure that issue out...

Sadly the revert does not help here this patch is still needed

Quoted 7 lines

Cheers,

Richard