diff mbox series

[4/9] doc/bitbake-user-manual-ref-variables: BBMASK: refresh definition

Message ID 20261202-layer-conf-doc-changes-v1-4-266a5f5d51ad@bootlin.com
State New
Headers show
Series doc: refresh after layer configuration format changes | expand

Commit Message

Antonin Godard Dec. 2, 2026, 2:25 p.m. UTC
After the layer configuration format changes, update the BBMASK
definition which used the BBFILE_PATTERN variable for its examples. The
LAYERDIR variable has replaced it. Note that compared to BBFILE_PATTERN,
LAYERDIR does not contain the leading "^" which was used in the regular
expression. Add it manually in the examples.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 .../bitbake-user-manual-ref-variables.rst             | 19 +++++++++----------
 1 file changed, 9 insertions(+), 10 deletions(-)
diff mbox series

Patch

diff --git a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst
index 4baea1550..5b163b74e 100644
--- a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst
+++ b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst
@@ -1023,16 +1023,16 @@  overview of their function and contents.
       BitBake to ignore all recipe and recipe append files in
       ``recipes-bsp`` directory (recursively) of ``meta-ti-bsp``::
 
-         BBMASK = "${BBFILE_PATTERN_meta-ti-bsp}/recipes-bsp/"
+         BBMASK = "^${LAYERDIR_meta-ti-bsp}/recipes-bsp/"
 
       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 += "${BBFILE_PATTERN_meta-ti-bsp}/recipes-graphics/libgal/"
-         BBMASK += "${BBFILE_PATTERN_openembedded-layer}/recipes-support/"
-         BBMASK += "${BBFILE_PATTERN_openembedded-layer}/.*/openldap"
-         BBMASK += "${BBFILE_PATTERN_meta-ti-bsp}/.*/optee.*\.bbappend"
+         BBMASK += "^${LAYERDIR_meta-ti-bsp}/recipes-graphics/libgal/"
+         BBMASK += "^${LAYERDIR_meta-oe}/recipes-support/"
+         BBMASK += "^${LAYERDIR_meta-oe}/.*/openldap"
+         BBMASK += "^${LAYERDIR_meta-ti-bsp}/.*/optee.*\.bbappend"
 
       This masks:
 
@@ -1053,12 +1053,12 @@  overview of their function and contents.
          directory and not a file, you must end the expression with a trailing
          slash. That is::
 
-            BBMASK += "${BBFILE_PATTERN_meta-ti-bsp}/recipes-graphics/libgal/"
+            BBMASK += "^${LAYERDIR_meta-ti-bsp}/recipes-graphics/libgal/"
 
          Will match anything under ``recipes-graphics/ligbal/`` directory of
          ``meta-ti-bsp``. And::
 
-            BBMASK += "${BBFILE_PATTERN_meta-ti-bsp}/recipes-graphics/libgal"
+            BBMASK += "^${LAYERDIR_meta-ti-bsp}/recipes-graphics/libgal"
 
          Will match in ``meta-ti-bsp`` any file prefixed with ``libgal`` in
          ``recipes-graphics/`` and any directory (recursively; and its
@@ -1075,8 +1075,7 @@  overview of their function and contents.
       .. note::
 
          Because these are complete regular expressions, failing to start the
-         pattern with a ``^`` sign (which is usually the first character in
-         :term:`BBFILE_PATTERN`) means it can match *any* portion of a path.
+         pattern with a ``^`` sign means it can match *any* portion of a path.
          Take the following as an example::
 
             BBMASK = "recipes-graphics/libgal/"
@@ -1110,7 +1109,7 @@  overview of their function and contents.
          makes sure that doesn't happen. However, this doesn't prevent matching
          a directory ``recipes-graphics/libgal/`` from another layer.
 
-         Again, we highly recommend using :term:`BBFILE_PATTERN` in the
+         Again, we highly recommend using ``^`` and :term:`LAYERDIR` in the
          expressions to specify absolute paths specific to one layer.
 
    :term:`BBMULTICONFIG`