diff mbox series

[06/18] ref-manual/variables.rst: document LAYER_FRAGMENTS_OPTED_OUT/LAYER_FRAGMENT_RECOMMENDS_ANY

Message ID 20261202-layer-conf-changes-v1-6-da34d4c770c6@bootlin.com
State New
Headers show
Series docs: refresh after layer configuration format changes | expand

Commit Message

Antonin Godard Dec. 2, 2026, 2:55 p.m. UTC
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 mbox series

Patch

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.