From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37905.1796223361322048129 for ; Wed, 02 Dec 2026 06:56:01 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=ICaAzChN; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id E5C5F4E4184A for ; Wed, 2 Dec 2026 14:55:59 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id B3EC66075F for ; Wed, 2 Dec 2026 14:55:59 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 04A8D11EA1BDC; Wed, 02 Dec 2026 15:55:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223355; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=PFgQdt0mIvGbFuCjOVMIJbgXd5osc6rh4SqzJC0Ir00=; b=ICaAzChNzXevhrpZ1+zUMayqzHoRkHLlWpCIwXD4Mw+BnKGU1gJkOdKVR2LVtRRD9ukhKr kPTKsaEY7R42e8kbRgIUXbGQNNNHi19+qOKEaTsafBhelhRNnkFjVbj7bvXTUN0G1RbVfN XcrqqZMt7I9He6kRp2RRDo3z3pN06G2BftUuuKREq4pEJqFspNT4bbrclTasgM3Sl3sU83 r6kx82fVuhPvFZ27VVEkdrXlp0G/2s2bBRx7JWNsqsUI8woEqkvOhR4FT3BXvDEGIbIxN4 Ohv14EBJF4b0nAcSCCeKQViNgVndWUqHW57ez8TVrsKPwhqMom79O+WlWhGMJQ== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:41 +0100 Subject: [PATCH 06/18] ref-manual/variables.rst: document LAYER_FRAGMENTS_OPTED_OUT/LAYER_FRAGMENT_RECOMMENDS_ANY MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20261202-layer-conf-changes-v1-6-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2418; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=uzQMZdms+lol15G7UgfN2F7oX3FwNwjMVxxDnUcfEHo=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFtEBh25HIJb7ErbruEQT8iT18QfL31BoB++ yiEu4iSBo6JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbQAKCRDRgEFAKaOo NhZED/9eBnI34xEaLMl4KEIcWI1nSLCDNVHLbHsNtmUnIcPVKqBFlfk+s8PU821Jnv98eIGe/Uz 4HZ45jGSbrrmhsDWCeRP2ZKjRzUAOgyYb0ExvFz6D8tn7zK3vCu+OQEMLSEH3tdt69DhVFylfsj mB8DfO7vm2dysQplDv6i1DSjplzCb8jD7PkA4PNvG9AJzKG+hSVB+vLminXbLDTNjeGp+wLGtoi FqnPXE40U4mTbi34i7H2OtMeNAILHwz0ZiLETl9tpw8nJ2pBeJPgXWvr0DkG+Q5gpHK1HWz707Z MrziR9csShitWciTWATchziGRuWTc0xiBwTMBLoONbp1FDbF9VEgCLN7WXckJQ2j9lYXAee4HES I6d3D5iM/cIWnEjXFENGOCC8P3keBT9Y+wNsTAcPpPsLbkrLhTpIYCRsXWRS30PTW2MtXyCb1ZT n8OsHoBtXn6gWvyKblazKr5poTKqoy07Z4weLcor22L0xSaPF2/MfNtbDKvZDFAvamq1YeeBh9G itNWYyZ9v6xFrwKz0Hj2F6Zdrc6WoAGZPgZ1L24K5MWvx69Xlyt1ZGKThX1mdBT0MKpblwUnNAV TX4iq0u0h1ki0cWkE3BAZQRkHiBsH5qO/KRQe1rZppkrrwioAJ+2p+YBDDAaFZSfYHSEouixhxp CyM7jS52VSHE6CQ== X-Developer-Key: i=antonin.godard@bootlin.com; a=openpgp; fpr=8648725188DD401BB9A0D3FFD180414029A3A836 X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 14:56:02 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10893 Document these two new variables that can be defined to recommend and opt out of configuration fragments. Signed-off-by: Antonin Godard --- documentation/ref-manual/variables.rst | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index e8a40cae5..3b15fe32a 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -5787,6 +5787,38 @@ system and gives an overview of their function and contents. See the :ref:`ref-classes-grub-efi` class for more information on how this variable is used. + :term:`LAYER_FRAGMENT_RECOMMENDS_ANY` + The :term:`LAYER_FRAGMENT_RECOMMENDS_ANY` variable can be set in the + :ref:`structure-conf-layer.conf` file to contain a list of recommended + :term:`configuration fragments ` to enable when + the layer defining it is enabled (i.e. added to :term:`BBLAYERS`). + + For example, the :yocto_git:`meta-virtualization ` + layer defines:: + + LAYER_FRAGMENT_RECOMMENDS_ANY = "meta-virtualization/container meta-virtualization/k8s meta-virtualization/virt meta-virtualization/xen" + + This means that these four fragments are recommended to be enabled + alongside the layer being enabled itself. + + The :term:`OpenEmbedded Build System` will emit a warning if any of those + fragments are not enabled, unless the :term:`LAYER_FRAGMENTS_OPTED_OUT` + variable is set to opt out of them. + + :term:`LAYER_FRAGMENTS_OPTED_OUT` + The :term:`LAYER_FRAGMENTS_OPTED_OUT` variable can be set from a + :term:`configuration file` to opt out of a :term:`configuration fragment` + recommendation done by a :term:`layer`. + + For example:: + + LAYER_FRAGMENTS_OPTED_OUT = "meta-virtualization/container meta-virtualization/k8s" + + This would ignore the recommendation done by the + :yocto_git:`meta-virtualization ` layer to enable + the ``meta-virtualization/container`` and ``meta-virtualization/k8s`` + fragments. + :term:`LAYER_PASSTHROUGH_VARS_PREFIXES` See :term:`bitbake:LAYER_PASSTHROUGH_VARS_PREFIXES` in the BitBake User Manual. -- 2.56.0