All of lore.kernel.org
 help / color / mirror / Atom feed
From: Antonin Godard <antonin.godard@bootlin.com>
To: docs@lists.yoctoproject.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	 Antonin Godard <antonin.godard@bootlin.com>
Subject: [PATCH 06/18] ref-manual/variables.rst: document LAYER_FRAGMENTS_OPTED_OUT/LAYER_FRAGMENT_RECOMMENDS_ANY
Date: Wed, 02 Dec 2026 15:55:41 +0100	[thread overview]
Message-ID: <20261202-layer-conf-changes-v1-6-da34d4c770c6@bootlin.com> (raw)
In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com>

Document these two new variables that can be defined to recommend and
opt out of configuration fragments.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 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 <Configuration Fragment>` to enable when
+      the layer defining it is enabled (i.e. added to :term:`BBLAYERS`).
+
+      For example, the :yocto_git:`meta-virtualization </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 </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


  parent reply	other threads:[~2026-12-02 14:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 14:55 [PATCH 00/18] docs: refresh after layer configuration format changes Antonin Godard
2026-12-02 14:55 ` [PATCH 01/18] ref-manual/layers.rst: add document Antonin Godard
2026-12-02 14:55 ` [PATCH 02/18] ref-manual/variables.rst: BBFILES: refresh the definition Antonin Godard
2026-12-02 14:55 ` [PATCH 03/18] ref-manual/variables.rst: drop obsolete BBFILE* variables Antonin Godard
2026-12-02 14:55 ` [PATCH 04/18] ref-manual/variables.rst: drop LAYERDIR_RE Antonin Godard
2026-12-02 14:55 ` [PATCH 05/18] ref-manual/variables.rst: link bitbake-specific to the bitbake manual Antonin Godard
2026-12-02 14:55 ` Antonin Godard [this message]
2026-12-02 14:55 ` [PATCH 07/18] migration-guides/migration-6.2.rst: add section on now layer format Antonin Godard
2026-12-02 14:55 ` [PATCH 08/18] migration-guides/migration-6.2.rst: add a section on the new core layer names Antonin Godard
2026-12-02 14:55 ` [PATCH 09/18] dev-manual/layers.rst: remove a leftover poky repo reference Antonin Godard
2026-12-02 14:55 ` [PATCH 10/18] dev-manual/layers.rst: refresh after layer configuration format changes Antonin Godard
2026-12-02 14:55 ` [PATCH 11/18] bsp-manual/bsp.rst: remove obsolete layer.conf references Antonin Godard
2026-12-02 14:55 ` [PATCH 12/18] kernel-dev/common.rst: " Antonin Godard
2026-12-02 14:55 ` [PATCH 13/18] docs-wide: rename core/* fragments to oe-core/* Antonin Godard
2026-12-02 14:55 ` [PATCH 14/18] dev-manual/creating-fragments.rst: remove obsolete BBFILE_COLLECTIONS reference Antonin Godard
2026-12-02 14:55 ` [PATCH 15/18] dev-manual/licenses.rst: refresh obsolete bblayers.conf.sample example Antonin Godard
2026-12-02 14:55 ` [PATCH 16/18] dev-manual/new-recipe.rst: remove obsolete BBFILES statement Antonin Godard
2026-12-02 14:55 ` [PATCH 17/18] security-manual/vulnerabilities.rst: rename core -> oe-core in JSON snippet Antonin Godard
2026-12-02 14:55 ` [PATCH 18/18] test-manual/runtime-testing.rst: fix wrong BBPATH statements Antonin Godard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202-layer-conf-changes-v1-6-da34d4c770c6@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=docs@lists.yoctoproject.org \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.