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 03/18] ref-manual/variables.rst: drop obsolete BBFILE* variables
Date: Wed, 02 Dec 2026 15:55:38 +0100 [thread overview]
Message-ID: <20261202-layer-conf-changes-v1-3-da34d4c770c6@bootlin.com> (raw)
In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com>
BBFILES_DYNAMIC variable is no longer part of layer configuration files. Instead,
BitBake expects to find a "dynamic-recipes/" directory at the root of a
layer. Anything inside it are considered to be dynamic recipes/bbappends.
The remaining variables are no longer part of the layer configuration
file definition. BitBake automatically computes most of it.
Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
documentation/migration-guides/migration-2.7.rst | 2 +-
documentation/migration-guides/migration-3.4.rst | 2 +-
documentation/ref-manual/variables.rst | 67 ------------------------
3 files changed, 2 insertions(+), 69 deletions(-)
diff --git a/documentation/migration-guides/migration-2.7.rst b/documentation/migration-guides/migration-2.7.rst
index c49d2f05d..7ed556d32 100644
--- a/documentation/migration-guides/migration-2.7.rst
+++ b/documentation/migration-guides/migration-2.7.rst
@@ -18,7 +18,7 @@ The following changes have been made to BitBake:
indentation. If found, BitBake produces a warning.
- BitBake now checks
- :term:`BBFILE_COLLECTIONS` for duplicate
+ ``BBFILE_COLLECTIONS`` for duplicate
entries and triggers an error if any are found.
.. _migration-2.7-eclipse-support-dropped:
diff --git a/documentation/migration-guides/migration-3.4.rst b/documentation/migration-guides/migration-3.4.rst
index e9cb3a109..9f224974b 100644
--- a/documentation/migration-guides/migration-3.4.rst
+++ b/documentation/migration-guides/migration-3.4.rst
@@ -60,7 +60,7 @@ case where some code does use them as overrides but some does not. We plan to tr
and make the tune code use overrides more consistently in the future.
There are some variables which do not use override syntax which include the
-suffix to variables in ``layer.conf`` files such as :term:`BBFILE_PATTERN`,
+suffix to variables in ``layer.conf`` files such as ``BBFILE_PATTERN``,
:term:`SRCREV`\ ``_xxx`` where ``xxx`` is a name from :term:`SRC_URI` and
:term:`PREFERRED_VERSION`\ ``_xxx``. In particular, ``layer.conf`` suffixes
may be the same as a :term:`DISTRO` override causing some confusion. We do
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index f4444dd87..4beb77bb1 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -807,77 +807,10 @@ system and gives an overview of their function and contents.
:term:`BBDEBUG`
See :term:`bitbake:BBDEBUG` in the BitBake manual.
- :term:`BBFILE_COLLECTIONS`
- Lists the names of configured layers. These names are used to find
- the other ``BBFILE_*`` variables. Typically, each layer will append
- its name to this variable in its ``conf/layer.conf`` file.
-
- :term:`BBFILE_PATTERN`
- Variable that expands to match files from
- :term:`BBFILES` in a particular layer. This variable
- is used in the ``conf/layer.conf`` file and must be suffixed with the
- name of the specific layer (e.g. ``BBFILE_PATTERN_emenlow``).
-
- :term:`BBFILE_PRIORITY`
- Assigns the priority for recipe files in each layer.
-
- This variable is useful in situations where the same recipe appears
- in more than one layer. Setting this variable allows you to
- prioritize a layer against other layers that contain the same recipe
- --- effectively letting you control the precedence for the multiple
- layers. The precedence established through this variable stands
- regardless of a recipe's version (:term:`PV` variable). For
- example, a layer that has a recipe with a higher :term:`PV` value but for
- which the :term:`BBFILE_PRIORITY` is set to have a lower precedence still
- has a lower precedence.
-
- A larger value for the :term:`BBFILE_PRIORITY` variable results in a
- higher precedence. For example, the value 6 has a higher precedence
- than the value 5. If not specified, the :term:`BBFILE_PRIORITY` variable
- is set based on layer dependencies (see the :term:`LAYERDEPENDS` variable
- for more information. The default priority, if unspecified for a
- layer with no dependencies, is the lowest defined priority + 1 (or 1
- if no priorities are defined).
-
- .. tip::
-
- You can use the command ``bitbake-layers show-layers``
- to list all configured layers along with their priorities.
-
:term:`BBFILES`
A space-separated list of patterns BitBake uses to locate :term:`recipes
<Recipe>` and :term:`append files`.
- :term:`BBFILES_DYNAMIC`
- Activates content when identified layers are present. This mechanism
- is commonly referred to as "dynamic layers". You identify the layers
- by the collections that the layers define.
-
- Use the :term:`BBFILES_DYNAMIC` variable to avoid ``.bbappend`` files
- whose corresponding ``.bb`` file is in a layer that attempts to
- modify other layers through ``.bbappend`` but does not want to
- introduce a hard dependency on those other layers.
-
- Use the following form for :term:`BBFILES_DYNAMIC`:
- ``collection_name:filename_pattern``.
-
- The following example identifies two collection names and two
- filename patterns::
-
- BBFILES_DYNAMIC += " \
- clang-layer:${LAYERDIR}/dynamic-layers/meta-clang/*/*/*.bbappend \
- core:${LAYERDIR}/dynamic-layers/openembedded-core/meta/*/*/*.bbappend \
- "
-
- This next example shows an error message that occurs because invalid
- entries are found, which cause parsing to fail:
-
- .. code-block:: none
-
- ERROR: BBFILES_DYNAMIC entries must be of the form <collection name>:<filename pattern>, not:
- /work/my-layer/dynamic-layers/meta-security-isafw/*/*/*.bbappend
- /work/my-layer/dynamic-layers/openembedded-core/meta/*/*/*.bbappend
-
:term:`BBINCLUDED`
See :term:`bitbake:BBINCLUDED` in the BitBake manual.
--
2.56.0
next prev 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 ` Antonin Godard [this message]
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 ` [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-3-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.