From patchwork Wed Dec 2 14:25:10 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106995 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37224.1796221532702242680 for ; Wed, 02 Dec 2026 06:25:33 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@bootlin.com header.s=dkim header.b=lM7gwBkD; spf=pass (domain: bootlin.com, ip: 185.246.84.56, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id 4AB981A18E6; Wed, 2 Dec 2026 14:25:31 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 17B926075F; Wed, 2 Dec 2026 14:25:31 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 33EED11EA1B3D; Wed, 02 Dec 2026 15:25:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796221530; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=R7fC8cifb6VI3G8v9enh0jEd8JguqBeJFiwapPBobg0=; b=lM7gwBkD93Rs33J89HfrzPJLhHNKKAdblYxEX6ARFaytcjESis7GN1jGOAetcm7pGPP2fr IqzU89nLvdIKXf4O0HgXtaUAL6jYvc282V6+OfXvX6k3DMiiJ1t7ZM8jDpyrvbkljvm4Id kiWGm8q87F+fMppJMeANvPFG3AcPxrcvXmrbhRsbSNGPOIMX2zLz5XbXNQog2Wpo2IBogQ ezj9WNILpLlh/3eD6jxP5LLG9+jMwmXOAON0n8RRTOwt78czWKV/IgY/Ed6crsvmh8myXW oRElIk1oWIVYGuaASXsZhCrgflpy6/g7fKTCaDglGbxFVQ7G+w1nvUxnWMBREA== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:10 +0100 Subject: [PATCH 7/9] doc/bitbake-user-manual-execution: refresh the Locating Recipes section MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-7-266a5f5d51ad@bootlin.com> References: <20261202-layer-conf-doc-changes-v1-0-266a5f5d51ad@bootlin.com> In-Reply-To: <20261202-layer-conf-doc-changes-v1-0-266a5f5d51ad@bootlin.com> To: bitbake-devel@lists.openembedded.org Cc: Thomas Petazzoni , docs@lists.yoctoproject.org, Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=4368; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=Ese5d3HBbkr9jZAL9hQPKEQNYMvRm3HjFwfg4gYGUDc=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpKIMicAm1lMSpBho8XtFZXjfQD9sZ8MpHIG Dfv6gLpI36JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSgAKCRDRgEFAKaOo NmYkEACgoswsqczX8e20gaBKukn62PaRl5A1MP2Zm0jZZjA5FOatKY3mC1sL/+095qWh1Smp88w QUjE4fc+dbWzdPM1G/bn/zWmKCiMsRVQbT+buXrHN/bob0RvE1qTXhibwA4yBEEPaOT8/j9eqA5 nqVxwuHkPH73j++yua1KZ2nk6waw6mjjAjy0/jDH4UowNoe2xFEma7IrjPq+ula8LKNZ+ugx76h 85Sl6+HdtDyju+jJJT2LXIskHbXQj7xVML8lOEFEZ81tka1nnj7nNTWCF2KIcOjtZIdbqOAIQx/ qT+BIZgCa2pVqhhFhgLs7sxE0ssRa0UdAudKAZQ66h4LpvLQWoDODH6R796IfhuMmlcrztUfsJ9 nnLIOSA8p04JiTNUow3SNlXkWBjlA9jDLVuTVaasha6b91hMd4AzFWmzmb5Ki/VZ/3Lr1FpsQf8 dOn6P4nC2aBE/hPjMxB9rYG3oWoUDkwGv9SRsBTHxo4tHx1xRjCpAnBU3XYXfxasQ714z3dU011 r9CFiHqWrSFm3XNHy4vXnsfI6cXrMWPXgRlrtC+TYKUJK/HrH9AxbqVC18NeoGcqvs2IzPYKExv vLQL89fU2gOHqdLC7sJvK0a8BnMGKHKHffFkIhplvpt7QVT6HhQhX3ScA2SBNpsiWJ/EYQXq6Gh kznNzLJFL0IIkwA== X-Developer-Key: i=antonin.godard@bootlin.com; a=openpgp; fpr=8648725188DD401BB9A0D3FFD180414029A3A836 X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 14:25:41 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10884 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 --- .../bitbake-user-manual-execution.rst | 59 +++++++++------------- 1 file changed, 25 insertions(+), 34 deletions(-) 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-*/*/_.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