[PATCH 2/2] example-xen-guest-bundle: require xen and x11 in DISTRO_FEATURES

[email protected]
Newsgroups org.yoctoproject.lists.meta-virtualization
Message-ID <[email protected]>
From: Martin Jansa <[email protected]>

to match the image recipe from XEN_GUEST_BUNDLES

Fixes:
ERROR: Nothing PROVIDES 'xen-guest-image-minimal'
xen-guest-image-minimal was skipped: using DISTRO 'distro', which is missing required DISTRO_FEATURES: 'xen'
in bitbake world builds

Signed-off-by: Martin Jansa <[email protected]>
---
 .../xen-guest-bundles/example-xen-guest-bundle_1.0.bb        | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/recipes-extended/xen-guest-bundles/example-xen-guest-bundle_1.0.bb b/recipes-extended/xen-guest-bundles/example-xen-guest-bundle_1.0.bb
index 96e17275..70f12492 100644
--- a/recipes-extended/xen-guest-bundles/example-xen-guest-bundle_1.0.bb
+++ b/recipes-extended/xen-guest-bundles/example-xen-guest-bundle_1.0.bb
@@ -26,7 +26,10 @@ DESCRIPTION = "Demonstrates xen-guest-bundle.bbclass by bundling the \
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
 
-inherit xen-guest-bundle
+inherit xen-guest-bundle features_check
+
+# matches xen-guest-image-minimal recipe
+REQUIRED_DISTRO_FEATURES += "${@bb.utils.contains('IMAGE_FEATURES', 'x11', ' x11', '', d)} xen"
 
 # Define guests to bundle
 # Format: recipe-name[:autostart][:external]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.