[PATCH v2 1/4] xen: Fix class inherit in xen-image


Bertrand Marquis
 

Remove inherit of qemuboot classes when not build for qemu in
xen-image-minimal.
When reverted the handling for only adding inherited classes for qemu
was kept but the line always inheriting them was kept to.
This patch is fixing that so that qemuboot classes are now only added
when the image is built for qemu.

This fixes commit 27e5ade0abc2660226389b8b62ef07d85f4b8758

Signed-off-by: Bertrand Marquis <bertrand.marquis@...>
---
recipes-extended/images/xen-image-minimal.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-extended/images/xen-image-minimal.bb b/recipes-exten=
ded/images/xen-image-minimal.bb
index 7f10b1d..9fd05d2 100644
--- a/recipes-extended/images/xen-image-minimal.bb
+++ b/recipes-extended/images/xen-image-minimal.bb
@@ -36,7 +36,7 @@ LICENSE =3D "MIT"
=20
QB_NETWORK_XEN_BRIDGE =3D "1"
=20
-inherit core-image qemuboot-xen-defaults qemuboot-xen-dtb qemuboot-testi=
mage-network
+inherit core-image
# Only inherit the qemuboot classes when building for a qemu machine
QB_QEMU_CLASSES =3D ""
QB_QEMU_CLASSES:qemuall =3D "qemuboot-xen-defaults qemuboot-xen-dtb qemu=
boot-testimage-network"
--=20
2.25.1


Christopher Clark
 

On Tue, May 10, 2022 at 8:35 AM Bertrand Marquis
<bertrand.marquis@...> wrote:

Remove inherit of qemuboot classes when not build for qemu in
xen-image-minimal.
When reverted the handling for only adding inherited classes for qemu
was kept but the line always inheriting them was kept to.
This patch is fixing that so that qemuboot classes are now only added
when the image is built for qemu.

This fixes commit 27e5ade0abc2660226389b8b62ef07d85f4b8758

Signed-off-by: Bertrand Marquis <bertrand.marquis@...>
Reviewed-by: Christopher Clark <christopher.w.clark@...>

thanks,

Christopher

---
recipes-extended/images/xen-image-minimal.bb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/recipes-extended/images/xen-image-minimal.bb b/recipes-extended/images/xen-image-minimal.bb
index 7f10b1d..9fd05d2 100644
--- a/recipes-extended/images/xen-image-minimal.bb
+++ b/recipes-extended/images/xen-image-minimal.bb
@@ -36,7 +36,7 @@ LICENSE = "MIT"

QB_NETWORK_XEN_BRIDGE = "1"

-inherit core-image qemuboot-xen-defaults qemuboot-xen-dtb qemuboot-testimage-network
+inherit core-image
# Only inherit the qemuboot classes when building for a qemu machine
QB_QEMU_CLASSES = ""
QB_QEMU_CLASSES:qemuall = "qemuboot-xen-defaults qemuboot-xen-dtb qemuboot-testimage-network"
--
2.25.1