diff mbox series

[05/18] ref-manual/variables.rst: link bitbake-specific to the bitbake manual

Message ID 20261202-layer-conf-changes-v1-5-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
Let's keep a single definition for bitbake-specific variables and (that
are not specific to OE) in the BitBake User Manual, to avoid
duplication.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>

ref-manual/variables.rst: link BBMASK variable to BitBake User Manual

Keep a single definition for BBMASK, in the BitBake User Manual, to
avoid duplication (and the explanation is much better there).

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 documentation/ref-manual/variables.rst | 98 +++++-----------------------------
 1 file changed, 12 insertions(+), 86 deletions(-)
diff mbox series

Patch

diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 2f491b3ef..e8a40cae5 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -842,40 +842,7 @@  system and gives an overview of their function and contents.
       See :term:`bitbake:BBLAYERS_FETCH_DIR` in the BitBake manual.
 
    :term:`BBMASK`
-      Prevents BitBake from processing recipes and recipe append files.
-
-      You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and
-      ``.bbappend`` files. BitBake ignores any recipe or recipe append
-      files that match any of the expressions. It is as if BitBake does not
-      see them at all. Consequently, matching files are not parsed or
-      otherwise used by BitBake.
-
-      The values you provide are passed to Python's regular expression
-      compiler. Consequently, the syntax follows Python's Regular
-      Expression (re) syntax. The expressions are compared against the full
-      paths to the files. For complete syntax information, see Python's
-      documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax.
-
-      The following example uses a complete regular expression to tell
-      BitBake to ignore all recipe and recipe append files in the
-      ``meta-ti/recipes-misc/`` directory::
-
-         BBMASK = "meta-ti/recipes-misc/"
-
-      If you want to mask out multiple directories or recipes, you can
-      specify multiple regular expression fragments. This next example
-      masks out multiple directories and individual recipes::
-
-         BBMASK += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/"
-         BBMASK += "/meta-oe/recipes-support/"
-         BBMASK += "/meta-foo/.*/openldap"
-         BBMASK += "opencv.*\.bbappend"
-         BBMASK += "lzma"
-
-      .. note::
-
-         When specifying a directory name, use the trailing slash character
-         to ensure you match just that directory name.
+      See :term:`bitbake:BBMASK` in the BitBake User Manual.
 
    :term:`BBMULTICONFIG`
       Specifies each additional separate configuration when you are
@@ -2143,19 +2110,7 @@  system and gives an overview of their function and contents.
       not intended to be user-configurable.
 
    :term:`DEFAULT_PREFERENCE`
-      Specifies a weak bias for recipe selection priority.
-
-      The most common usage of this is variable is to set it to "-1" within
-      a recipe for a development version of a piece of software. Using the
-      variable in this way causes the stable version of the recipe to build
-      by default in the absence of :term:`PREFERRED_VERSION` being used to
-      build the development version.
-
-      .. note::
-
-         The bias provided by :term:`DEFAULT_PREFERENCE` is weak and is overridden
-         by :term:`BBFILE_PRIORITY` if that variable is different between two
-         layers that contain different versions of the same recipe.
+      See :term:`bitbake:DEFAULT_PREFERENCE` in the BitBake User Manual.
 
    :term:`DEFAULT_TIMEZONE`
       Specifies the time zone set in the image.
@@ -5832,55 +5787,26 @@  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:`LAYERDEPENDS`
-      Lists the layers, separated by spaces, on which this layer depends.
-      Optionally, you can specify a specific layer version for a dependency
-      by adding it to the end of the layer name. Here is an example::
-
-         LAYERDEPENDS_mylayer = "anotherlayer (=3)"
+   :term:`LAYER_PASSTHROUGH_VARS_PREFIXES`
+      See :term:`bitbake:LAYER_PASSTHROUGH_VARS_PREFIXES` in the BitBake User Manual.
 
-      In this previous example,
-      version 3 of "anotherlayer" is compared against
-      :term:`LAYERVERSION`\ ``_anotherlayer``.
-
-      An error is produced if any dependency is missing or the version
-      numbers (if specified) do not match exactly. This variable is used in
-      the ``conf/layer.conf`` file and must be suffixed with the name of
-      the specific layer (e.g. ``LAYERDEPENDS_mylayer``).
+   :term:`LAYERDEPENDS`
+      See :term:`bitbake:LAYERDEPENDS` in the BitBake User Manual.
 
    :term:`LAYERDIR`
-      When used inside the ``layer.conf`` configuration file, this variable
-      provides the path of the current layer. This variable is not
-      available outside of ``layer.conf`` and references are expanded
-      immediately when parsing of the file completes.
+      See :term:`bitbake:LAYERDIR` in the BitBake User Manual.
 
-   :term:`LAYERRECOMMENDS`
-      Lists the layers, separated by spaces, recommended for use with this
-      layer.
+   :term:`LAYERNAME`
+      See :term:`bitbake:LAYERNAME` in the BitBake User Manual.
 
-      Optionally, you can specify a specific layer version for a
-      recommendation by adding the version to the end of the layer name.
-      Here is an example::
-
-         LAYERRECOMMENDS_mylayer = "anotherlayer (=3)"
-
-      In this previous example, version 3 of "anotherlayer" is compared
-      against ``LAYERVERSION_anotherlayer``.
-
-      This variable is used in the ``conf/layer.conf`` file and must be
-      suffixed with the name of the specific layer (e.g.
-      ``LAYERRECOMMENDS_mylayer``).
+   :term:`LAYERRECOMMENDS`
+      See :term:`bitbake:LAYERRECOMMENDS` in the BitBake User Manual.
 
    :term:`LAYERSERIES_COMPAT`
       See :term:`bitbake:LAYERSERIES_COMPAT` in the BitBake manual.
 
    :term:`LAYERVERSION`
-      Optionally specifies the version of a layer as a single number. You
-      can use this within :term:`LAYERDEPENDS` for
-      another layer in order to depend on a specific version of the layer.
-      This variable is used in the ``conf/layer.conf`` file and must be
-      suffixed with the name of the specific layer (e.g.
-      ``LAYERVERSION_mylayer``).
+      See :term:`bitbake:LAYERVERSION` in the BitBake User Manual.
 
    :term:`LD`
       The minimal command and arguments used to run the :manpage:`linker