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 05/18] ref-manual/variables.rst: link bitbake-specific to the bitbake manual
Date: Wed, 02 Dec 2026 15:55:40 +0100	[thread overview]
Message-ID: <20261202-layer-conf-changes-v1-5-da34d4c770c6@bootlin.com> (raw)
In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com>

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 --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

-- 
2.56.0


  parent reply	other threads:[~2026-12-02 14:55 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 ` Antonin Godard [this message]
2026-12-02 14:55 ` [PATCH 06/18] ref-manual/variables.rst: document LAYER_FRAGMENTS_OPTED_OUT/LAYER_FRAGMENT_RECOMMENDS_ANY Antonin Godard
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-5-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.