diff mbox series

[7/9] doc/bitbake-user-manual-execution: refresh the Locating Recipes section

Message ID 20261202-layer-conf-doc-changes-v1-7-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
The new layer configuration format and behavior makes BitBake
automatically find recipes, bbappends, etc. in a layer as soon as it is
added to BBLAYERS. Rework this section to explain how a layer is
expected to be organized. Also remove the last bit about collections, as
this concepts is now deprecated and one should always have multiple
layers for overlaying or appending metadata.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 .../bitbake-user-manual-execution.rst              | 59 +++++++++-------------
 1 file changed, 25 insertions(+), 34 deletions(-)
diff mbox series

Patch

diff --git a/doc/bitbake-user-manual/bitbake-user-manual-execution.rst b/doc/bitbake-user-manual/bitbake-user-manual-execution.rst
index 95f040e44..1221d8509 100644
--- a/doc/bitbake-user-manual/bitbake-user-manual-execution.rst
+++ b/doc/bitbake-user-manual/bitbake-user-manual-execution.rst
@@ -181,32 +181,42 @@  execution environment.
 Locating and Parsing Recipes
 ============================
 
-During the configuration phase, BitBake will have set
-:term:`BBFILES`. BitBake now uses it to construct a
-list of recipes to parse, along with any append files (``.bbappend``) to
-apply. :term:`BBFILES` is a space-separated list of available files and
-supports wildcards. An example would be::
+When parsing, BitBake will expect recipes and append files
+(``.bbappend``) to be found in directories matching the following pattern:
 
-  BBFILES = "/path/to/bbfiles/*.bb /path/to/appends/*.bbappend"
+.. code-block:: text
 
-BitBake parses each
-recipe and append file located with :term:`BBFILES` and stores the values of
-various variables into the :term:`datastore`.
+   recipes-*/*/<recipe name>_<recipe version>.bb[append]
 
-.. note::
+An example:
 
-   Append files are applied in the order they are encountered in BBFILES.
+.. code-block:: text
+
+   meta-foo/
+   ├── conf/
+   │   └── layer.conf
+   └── recipes-example/
+       └── example/
+           └── example_0.1.bb
+
+BitBake parses each recipe and append file it finds and stores the values of
+various variables into the :term:`datastore`.
 
 For each file, a fresh copy of the base configuration is made, then the
 recipe is parsed line by line. Any inherit statements cause BitBake to
 find and then parse class files (``.bbclass``) using
-:term:`BBPATH` as the search path. Finally, BitBake
-parses in order any append files found in :term:`BBFILES`.
+:term:`BBPATH` as the search path. Finally, BitBake parses any append files
+found.
+
+.. note::
+
+   The order in which append files are applied is detailed in the
+   :ref:`bitbake-user-manual/bitbake-user-manual-execution:Parsing Order
+   And Priorities` section below.
 
 One common convention is to use the recipe filename to define pieces of
 metadata. For example, in ``bitbake.conf`` the recipe name and version
-are used to set the variables :term:`PN` and
-:term:`PV`::
+are used to set the variables :term:`PN` and :term:`PV`::
 
    PN = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[0] or 'defaultpkgname'}"
    PV = "${@bb.parse.vars_from_file(d.getVar('FILE', False),d)[1] or '1.0'}"
@@ -234,25 +244,6 @@  in the cache and the recipe and class files have not changed, BitBake is
 able to use the cache. BitBake then reloads the cached information about
 the recipe instead of reparsing it from scratch.
 
-Recipe file collections exist to allow the user to have multiple
-repositories of ``.bb`` files that contain the same exact package. For
-example, one could easily use them to make one's own local copy of an
-upstream repository, but with custom modifications that one does not
-want upstream. Here is an example::
-
-  BBFILES = "/stuff/openembedded/*/*.bb /stuff/openembedded.modified/*/*.bb"
-  BBFILE_COLLECTIONS = "upstream local"
-  BBFILE_PATTERN_upstream = "^/stuff/openembedded/"
-  BBFILE_PATTERN_local = "^/stuff/openembedded.modified/"
-  BBFILE_PRIORITY_upstream = "5"
-  BBFILE_PRIORITY_local = "10"
-
-.. note::
-
-   The layers mechanism is now the preferred method of collecting code.
-   While the collections code remains, its main use is to set layer
-   priorities and to deal with overlap (conflicts) between layers.
-
 .. _bb-bitbake-providers:
 
 Providers