From patchwork Wed Dec 2 14:25:04 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106988 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36786.1796221529094187951 for ; Wed, 02 Dec 2026 06:25:29 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=aiUi0xEt; spf=pass (domain: bootlin.com, ip: 185.171.202.116, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 00896C01337; Wed, 2 Dec 2026 14:25:37 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 009CB6075F; Wed, 2 Dec 2026 14:25:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 3B9FB11EA18CB; Wed, 02 Dec 2026 15:25:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796221526; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=EzL5vGEhfKBitTP1jC/sm/AllRNvHpwA4a6IMeu567w=; b=aiUi0xEtljd3FsExM3MShkqb9MoaEL67uuSBrUNWgObA4SimDGyoFWpmoA/gmjI+v3jTBo buz0CtSecTvWcKiQvbXD68gbLQt4EPaul+FVAUVn4YRrScr5h1ecKXyzM/pU8HixuD3Rq/ AEwPfwA8J06FL7RI3pSdseQMSy4T2S+e2Dz6n4OujRbusaa8tOiM/xfylno8IoWvQTDOPh jewqewx6DOO58YQUlq6+fB/lvfonEAD3LoszMKrKLCkJMIsd3mZGNA1fCy9po22UE7WX1f 2YPWyFJO9P7KE+f6IDTPq2gziXvVFNets4hayN+LNHQxYtaj+9jpJPCaULpoCg== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:04 +0100 Subject: [PATCH 1/9] doc/bitbake-user-manual-ref-variables: document LAYERSERIES_CORENAMES MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-1-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=1310; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=zaAy+tgEx7tVBdzMzJpCyobCTzYPKQbCNFcee9x6SMo=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpJQOAmdgUZ1W/Ic/y9rZ2dFGic9cgLgoVWm Vmw5GZrHqKJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSQAKCRDRgEFAKaOo NojmD/9P5sBBu2R9DtWHsat73x9fpPG83l3rgvglEim0KwaMbvuIzGFRKENCy789y94Tj+2T4KM T/eLEgjPDJWSs/z0hHpGzs5m0q2pVAfBVGAleZQq6fdCG6LcRyMStwmJrQvbghWuDId6aJAc5f+ fHQjOBDYOhXezJdgqzFhXJr3yF7GkzlInWDF5jI6u3rDvwKTS4+Dp0cJwvf+45r46k4C0sEhiKn XVNWWxba7GUIXsFY0wZjjCC2cujzZu08pCmQBBOFeYaBnAB0/egfcCyMyLodQ7nwnf4l4TptXic Fy9j8xFIFIfTIAUpqdRWVH2V/90B1W0B7WF5Td2FRVLdrTomb2pdsXYnM+Vba+iAX5dHpWrMr/n 5RViOnHD46uYf48jJ88/7hb9L4AQbt56yX2pKtgZ4wzX4E++q6q/G+Q+BYaP2GmOvy7DS4wJFPI IUwWHjW+MhD31cWT5ze67Kkl642vtoP7epldyadAlnYCfWWpYrkLvwY9Wz8ymd0Oc39EHKYNBkK GhvBoHsWY2nlaTMVqJDWOtaq5Y6SKJXhjGbNkD5z8cTs/WJFdJqu+7BZCjUaq8OnExEvYsMyBhv /9XhZghnZXHFbbyUc2eTy7pMg7Rv/l9VO3M0HkInMS94Y7X6AywheHTpJBWY6t8mNT/vzI0HZNx e952VO0xJtbv52w== 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:39 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10877 This variable sets this list of versions the other layers in the build should be compatible with. Add a definition for it. Signed-off-by: Antonin Godard --- doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst | 7 +++++++ 1 file changed, 7 insertions(+) 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 69bbf72d7..8dcda6431 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst @@ -1317,6 +1317,13 @@ overview of their function and contents. ":ref:`bitbake-user-manual/bitbake-user-manual-metadata:\`\`inherit\`\` configuration directive`" section. + :term:`LAYERSERIES_CORENAMES` + The :term:`LAYERSERIES_CORENAMES` variable sets a list of versions the + other layers enabled in the build should be compatible with. Only one + layer should set this variable. + + In OpenEmbedded, the ``openembedded-core`` layer sets this variable. + :term:`LAYERDEPENDS` Lists the layers, separated by spaces, upon which this recipe depends. Optionally, you can specify a specific layer version for a From patchwork Wed Dec 2 14:25:05 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106996 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36787.1796221529846951858 for ; Wed, 02 Dec 2026 06:25:30 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=MZa8zYtJ; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id CC9B24E41846 for ; Wed, 2 Dec 2026 14:25:27 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 9C9426075F; Wed, 2 Dec 2026 14:25:27 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id C210F11EA1B48; Wed, 02 Dec 2026 15:25:26 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796221527; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=KNrPFZ4dPljdhVh0m+gSCfGoaZI2dBBOhpuLucuAIDM=; b=MZa8zYtJY9VfemF7HeMhpToin5iTzKCY90Rf10XRjbGK3gSB7ft7dBuJq/Ft44PUTPInpD oiFkpsS6k8lgVvBR1TgNTRi5zDOEsK8EDcVRl8PHjxEniLdwzi3ZX7NWqM/epwm09PAEQ3 hN4ikpeX9iZ7ff1/lD6kxNINXdZNCz/AxPErokXe/3Kzu8KJS6389PvVJOFDEAXCgHkTKv +oG4onUQHVdgu4yImRx88bJXTkkK9iBQzOY/Y6SgUzotHB1jeW4lXHLkjiX0UnxsYVPG79 NVdtTS4ccyt45zbBuF1q2/QoBZivfrJ7gt01T0qXXKStZdcPFkf9Te6Lz8GWcw== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:05 +0100 Subject: [PATCH 2/9] doc/bitbake-user-manual-ref-variables: rework the DEFAULT_PREFERENCE definition MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-2-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=2481; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=C7+41DssSsJr2ZYyxl9Tpjk90SpkxQex8YRUf2UmLtQ=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpJA+f4KoHprM4FD6Q6L2OiONnCIRKrTw3sm zllMNgrJxeJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSQAKCRDRgEFAKaOo Nh3ND/9Zy5Eb78SNwz0qnq3/iD3gqmTS/Plkt4Uxz/vadC0pHHjZPAsL0KOD8SyggzrFScxWS1k rz4VH2cIIXSly7iKBZRirjdOPfH7qkBVSH76sjnVwkwBQ3cfWRckucxtBHnEFgifFKUQhoyx3m9 0ilVAwPJeFToohBYjvsPsKgveg6oZMFgnbWFyVg6DaMdiDrfjN4Y20Xk7rqcYD+gHolLvf8ncig b7jbCS7I6u2trkTFP2jKI8JEmmw27AoKQ+Mo0eGecv9113/7s+59TSmyvTJKNLN0GxIybC5uA2T MlSpYRWBGoPsTtm/FiFoBpfLFwGn4H1YWeoQwvYKV9Dz02k7OVf8Tr9hYKARFlgnFMkyHudaZgS 07kOaYuNSc8dR9/75n0YbgvdaCgkfHrj4YWB0Lt1Gwr4ZEhMQGArsFyT+BQ7d6j6+AGfkZA8qGp BlKvJEpYE83rMw3MZnN3MZrqPOKeVslLW+QWPvLhAylfnUU7qOFIDupo37vcb6fiRjdyAxrtfEG mOVUlZnT1nsQbRguaMoqDjJYeMk4ZOBb/stsMx8XOS7k+qwO+nkdGGqAbA85C89VRXVW1mcM9Fx 3s+wAfBt19JvLQ2g9Iey7TSWy8MQmyvraBIarY4/z7im6Xix1wYEqZOjtBIQyqovjOJ/tWb+bgp T1/4CY1HSG9rGoA== 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:42 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10879 The bitbake-user-manual-execution.rst contained a better explanation for how this variable works, so move this explanation here. Also remove the BBFILE_PRIORITY mention as this is not supported anymore, after the layer configuration format changes. Signed-off-by: Antonin Godard --- .../bitbake-user-manual-ref-variables.rst | 26 +++++++++++----------- 1 file changed, 13 insertions(+), 13 deletions(-) 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 8dcda6431..fa5dc9b35 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst @@ -1177,19 +1177,19 @@ overview of their function and contents. so it does not need to be parsed every time BitBake is started. :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 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. + Specifies a weak bias for recipe selection priority, when the same recipe + is provided by different layers. + + By default, recipes have a preference of "0". Setting + :term:`DEFAULT_PREFERENCE` to "-1" makes the recipe unlikely to be used + unless it is explicitly selected. Setting :term:`DEFAULT_PREFERENCE` to + "1" makes it likely the recipe is used. :term:`PREFERRED_VERSION` + overrides any :term:`DEFAULT_PREFERENCE` setting, if the same recipe is + provided with different versions among the different layers. + + :term:`DEFAULT_PREFERENCE` is often used to mark newer and more + experimental recipe versions until they have undergone sufficient testing + to be considered stable. :term:`DEPENDS` Lists a recipe's build-time dependencies (i.e. other recipe files). From patchwork Wed Dec 2 14:25:06 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106990 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37217.1796221529956802894 for ; Wed, 02 Dec 2026 06:25:30 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=z1U6DEoQ; spf=pass (domain: bootlin.com, ip: 185.171.202.116, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 3B7BFC01339; Wed, 2 Dec 2026 14:25:39 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 3EE5B6075F; Wed, 2 Dec 2026 14:25:28 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 75A4811EA1B3D; Wed, 02 Dec 2026 15:25:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796221527; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=dqxEHJJCdNkd2lJF9K/scPhkfuwDTwzjvQG5KlcFcwM=; b=z1U6DEoQJc/tK72cryvXs/Ybc15W93NU7tfIQ7IOipFq8OW9Ntd0yQnx+bj6hgvo3+yr7o MV3xfxhy2RBj1YfQMkZA940fG0Bs9FTcBGf3rV07g3O43GPlizCXuJ+nYKD/FEulwr9JXA cGlMtPF1AkoTid8lOdEO395ws1dXGolsCsQlisU/evh7ozuFRPUs4O9MCJfYOWRdgg9sf5 YD1NCJ4ZHgTAgFg1mE1YrnrW780z3p6iJMeV3ayB5baT2AaPxbB8tpWGJbWVzWw+7RgR41 YjYSMOG1B21+7utDN70ksu0TI//CTJkEF84+PV81yS/YfqIbT0vd4/biUKCeXQ== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:06 +0100 Subject: [PATCH 3/9] doc/bitbake-user-manual-ref-variables: refresh LAYER* variables MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-3-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=5315; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=0L43pvS0QJ25NdAyUf1tTnsbsrIeqZZD/qx5ZXqtfBM=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpKX+Job1SyFqazD5IFpuw7c1bMCoy3iHZq0 NvmCjBlMB2JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSgAKCRDRgEFAKaOo NjnrD/9+HJ5WWBnfpXMFw91wbRw+uzkVfg4p8+JXS4ezHd3fPWyHRPMAezn+DGyS6UCGBpLiKOo Lz0D7nx2vXrFio+LY8qZ9w+C48T+f6s7zoJKt9/5OzUA5tM2q97xglU6wA3b1K6ubvsiIR2zq52 knzggmKsAyJbekp+axaEyK01+otHptnfEGcLc5CJ9oc4vHO7XWfM8YIbaKa/raHu3jO8frfFrIS ZtWbAWkBIeV8XLBD+NGDyzyYBLqdm+okPfRpwsqX6u1R82Qv3f6pQU4T7FKPLVDTnfbDdlBs41u AYSj5da8q47HcllAi3CuLGnbKDhm9gg8U78ESt0BDsEywUbTIVfhS+kJAiz8rd0pPIAfIFSJMqp 6kjyqAgRkuplL4Z5hJd49bzEolJvtakw4axeE8dr1UZk9jtuxhL8IZ6tUDMSmj3IIAJjmPDSR6f 4k7deBznp9xGoXRHh3kGuGg2mYhiGfN4ZnPLHc1Unb9WE5cGJfh8AE41ocZGawNOPgkneyDjjNd +//4UEx/NnEulB0WNeTP78pxSoNI3S+4/p2kyRyqIqGydcrWWM5rwz4gu/kavDVnf10l5say/El mvGdNU2eZdM5lXS+pvy+so0vH+2If3/9s5QDhlVIy7J1XOOMb/qX7mkC8ixK9ogpPqrB/UuudBs P5lsxAGJZohkF6Q== 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:40 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10880 Refresh the documentation for LAYER* variables after the recent layer configuration format changes. Signed-off-by: Antonin Godard --- .../bitbake-user-manual-ref-variables.rst | 65 ++++++++++++++-------- 1 file changed, 43 insertions(+), 22 deletions(-) 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 fa5dc9b35..4baea1550 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst @@ -1324,22 +1324,32 @@ overview of their function and contents. In OpenEmbedded, the ``openembedded-core`` layer sets this variable. + :term:`LAYER_PASSTHROUGH_VARS_PREFIXES` + The :term:`LAYER_PASSTHROUGH_VARS_PREFIXES` variable should be set by one + layer only (the first one in the :term:`BBLAYERS` list wins) and contains + a list of variable prefixes: the matching variables are the **only** ones + that can be set from the ``conf/layer.conf`` file and that set a global + value for the variable. + :term:`LAYERDEPENDS` - Lists the layers, separated by spaces, upon which this recipe - depends. Optionally, you can specify a specific layer version for a - dependency by adding it to the end of the layer name with a colon, - (e.g. "anotherlayer:3" to be compared against - :term:`LAYERVERSION`\ ``_anotherlayer`` in - this case). BitBake produces an error if any dependency is missing or - the version numbers do not match exactly (if specified). - - You use this variable in the ``conf/layer.conf`` file. You must also - use the specific layer name as a suffix to the variable (e.g. - ``LAYERDEPENDS_mylayer``). + 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 = "anotherlayer (=3)" + + In this previous example, version 3 of ``anotherlayer`` is compared + against the :term:`LAYERVERSION` definition of ``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. :term:`LAYERDIR` - This variable is automatically defined by :term:`BitBake` when parsing the - layers: when :term:`BitBake` reads the :term:`BBLAYERS` variable, it sets + This variable is automatically defined by BitBake when parsing the + layers: when BitBake reads the :term:`BBLAYERS` variable, it sets a new ``LAYERDIR_`` variable containing the absolute layer path for each layer in the list. The ```` value is determined from the layer's :term:`LAYERNAME`. @@ -1348,8 +1358,23 @@ overview of their function and contents. When used inside the ``layer.conf`` configuration file, this variable provides the name assigned to the current layer. + :term:`LAYERRECOMMENDS` + Lists the layers, separated by spaces, recommended for use with this + layer. + + 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 = "anotherlayer (=3)" + + In this previous example, version 3 of ``anotherlayer`` is compared + against the :term:`LAYERVERSION` definition of ``anotherlayer``. + + This variable is used in the ``conf/layer.conf`` file. + :term:`LAYERSERIES_COMPAT` - Lists the versions of the OpenEmbedded-Core (OE-Core) for which + Lists the versions of the OpenEmbedded-Core (OE-Core) series for which a layer is compatible. Using the :term:`LAYERSERIES_COMPAT` variable allows the layer maintainer to indicate which combinations of the layer and OE-Core can be expected to work. The variable gives the @@ -1362,7 +1387,7 @@ overview of their function and contents. "mickledore"). To specify multiple OE-Core versions for the layer, use a space-separated list:: - LAYERSERIES_COMPAT_layer_root_name = "kirkstone mickledore" + LAYERSERIES_COMPAT = "kirkstone mickledore" .. note:: @@ -1373,13 +1398,9 @@ overview of their function and contents. :term:`LAYERVERSION` Optionally specifies the version of a layer as a single number. You - can use this variable within - :term:`LAYERDEPENDS` for another layer in - order to depend on a specific version of the layer. - - You use this variable in the ``conf/layer.conf`` file. You must also - use the specific layer name as a suffix to the variable (e.g. - ``LAYERDEPENDS_mylayer``). + 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. :term:`LICENSE` The list of source licenses for the recipe. From patchwork Wed Dec 2 14:25:07 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106992 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36790.1796221530802021055 for ; Wed, 02 Dec 2026 06:25:31 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=1syawoXk; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 6915C4E41847 for ; Wed, 2 Dec 2026 14:25:29 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 3FEBA6075F; Wed, 2 Dec 2026 14:25:29 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 1281711EA1B50; Wed, 02 Dec 2026 15:25:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796221528; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=inKFelckFyJ0rKuUe6JKJvcxFgUAuO9NuVuoslQx0sM=; b=1syawoXk5H10dTCenis/UZf+7FCXU022xNDea8MmF0Shv/tYP3SwJPCYs5JGDYQjmADpTM EaslJJcv/hvCMaG3qWWvWKvk/aYVG7QOtRFROYKQOlA7W9xo5oHK24sE+2FBAKBNW0l+GM OnAfoA1YYZS/cvwtxd1UGA5OwrE38iGwbVciFU6kxj/pUVaAMXmpCoaGS98IJ6NZIpfUVi TXppLXy/ecM2N0fsd584AVkeRcdbG4u4J9yDJbiikoQjDhkTXGkrWUJmWRrE/g+8VuS9hO vPFL+sjCV7d1tpU7ucJeyAFvTo0yZK3A1vL4G4KkMoeuxqadOScxbnvK8tSwzA== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:07 +0100 Subject: [PATCH 4/9] doc/bitbake-user-manual-ref-variables: BBMASK: refresh definition MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-4-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=3729; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=KBSlyniwGrDhlUPnlQriOx0mZFC7jwa6zvQm09Xejgo=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpKFudfB9F8calFSe1YdHgiy/BsY6QdSGKTK LpZJ6DnDX6JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSgAKCRDRgEFAKaOo NoOoD/9EeGeeXJzdbqE5dFDFEdBXblRsjxso1q+c90sXuKjOUJxIC6XhqLF+fWCeSf78RE6xWn4 drdNySwiK4VZM2wPVGs3JxtJx2Fus+T1CXhq8y2pOv01nDKzYtSaLDUcmFy5CNLwgtq1VeIzgol a7y0nyXQYwB6/AkBHSiVAvizdiQKxSCBjEDanxrtYia8l1p8R+dE3L634y0rWKc7XrTqpJRxEjz CPS4Vyn52C10YGA/mBe/tAcK8SKgAxJcQ5AhgDrvNZx4+Or8150ZVG4mglp2/XjkPJzFWKieKY0 PiHqtHuqPlJ4XcJHkSNAN3dn7cH6rrjngVOPCv/KcIKzJHjH0bq3QhMqrZ4dofxGxMGflmx3FxF bUVSk4hrdwAN57mLcX7rS52jtpsISo29zwzv4NNAYs3lP3g46E6hDWqlIRNPsreG5jK9qEcowNX 29LUMf59YCr/RXo4WBUQF/cOWQ+kwB9ziABeVT7r8z83uppjJYwxlZEEBvu2tnD09KmskEdSlMd FFDobYpClB7RgN2KFCPfNV9Dq4XPayMOstwmloMBJt2+SlVYTAGvRjX+NePJOS/8un84II3qFMj dbsHjw1nxL+KxlHyw7T8eBYWcjUrd4XU4KvyYiEIszuKPfzbwW+5tSLHDGgHvzztBp1nFQiD5R1 pD4x/nHv2JCUYVQ== 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:40 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10881 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 --- .../bitbake-user-manual-ref-variables.rst | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) 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` From patchwork Wed Dec 2 14:25:08 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106993 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37222.1796221531649860236 for ; Wed, 02 Dec 2026 06:25:31 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=wW9OKog1; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id EDE634E41845 for ; Wed, 2 Dec 2026 14:25:29 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id C2A506075F; Wed, 2 Dec 2026 14:25:29 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 19DFD11EA18CB; Wed, 02 Dec 2026 15:25:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796221529; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=YPPsFKwTiJm3jveJ/FmtivOFrD9XlOI8euAGJyH4Y+I=; b=wW9OKog1+lWpfRRBse4uJHQGfpFztZImLhL4JWvuWwV+ru2ezMKb7zAsPU9/DtEygoRgHn cBghwuvBAujEFNruE4kfkIuLIjEhSVHv1QWHniAbihmd1hIUVCC14+LGUy6RNa3DOUF73Y K7AgUF2TplSyQr7LX+zDWnzHLxtxaof9LFn+4gx/amdr2Tz0H84c/wcfGQHMlxq3RWNVyw C7hRcUVvL7dHiGDD/FuMk2++3uPVDFlantZvjtUD/1isRI/7vTmQuGYpvTeLab5PCK+/9i oZyks1nAd3YI9hBPhneo6TrhuXif/cUx8JU32P2elsBkK8ftnnlb/mZVBc4sYg== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:08 +0100 Subject: [PATCH 5/9] doc/bitbake-user-manual-ref-variables: drop documentation for BBFILES_DYNAMIC MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-5-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=2781; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=dDBS2m27BN+MeETwf0EUdtW3n0fNji1wXmXab43Es98=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpKXGCXGYdhKcQomT5wDkbarrPk76trOFTe/ +hjnuivYSKJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSgAKCRDRgEFAKaOo NkFuEACkdI6tx1b6JfYVA2qvMFM4FCMk4JoUO0wBFLQ18NTaG9UIG+E7z7Dcsn4D35Lsu7IygMo KdeFDnXLLGOJTXlTELubciP03sRDeawE8CmJ8flYnF8Y15OGjU9u0ocxyDPHZxL6r1O7xQywMQ8 9Wxpt90Hk5Bn/shHkKrhyVSEi2HBR5/6ukcW5a3KkVpX2zdTx47ZxlUkv9ESW+f1kuKFy3aetbh eZi2SRIvZE5Z9RyFaL+E38iN4NXQfkSy950SZVDiGJDa66YSpy8GNbBnciyB05qqZx3WdTsXZLJ cjhTomszfnnq7KavPBz0luOCiue1LGPQ+zgeMwe4WMuaFa8DlaRfWXK22yI+51t9+0q7uUlXG0p Lp0qgK22XA+oOWJOByozXuBAZUETqmdEcsJbt7Hk6IxTk4ONOSTt+98akR2H3e+lEcPV3XPrgPN xS3HIEADgP9m+Vez1mcOG7ipz0+1TjIjoznrrYCO8Zz3pPOGc7sdXTVWKX9bvbPH4bp31oc4ojm g/fGZ7xQEWakzRl15Igr+yUXuks90/XnyL9lxBVmaQk0nedaEkbqu9wT8mxNYDXYZDseT+d60p3 254ine6DwwnlKzlzrTa8F2fzl/4XnEeaDFWj+KK1Ou8/yI7XTk62bSc0tV+Hpg9V2i1Xb8XSAge ueYcdykkA+7D3Lg== 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:40 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10882 This variable no longer needs to be set, in fact BitBake now expects dynamic metadata to be stored in "dynamic-recipes" at the root of the layer, and doesn't need to set BBFILES_DYNAMIC for that to work. Drop the docs for it. Signed-off-by: Antonin Godard --- .../bitbake-user-manual-ref-variables.rst | 39 ---------------------- 1 file changed, 39 deletions(-) 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 5b163b74e..d05c901f4 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-ref-variables.rst @@ -931,45 +931,6 @@ overview of their function and contents. For details on the syntax, see the documentation by following the previous link. - :term:`BBFILES_DYNAMIC` - Activates content depending on presence of identified 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. - - Additionally you can prefix the rule with "!" to add ``.bbappend`` and - ``.bb`` files in case a layer is not present. Use this avoid 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}/bbappends/meta-clang/*/*/*.bbappend \ - core:${LAYERDIR}/bbappends/openembedded-core/meta/*/*/*.bbappend \ - " - - When the collection name is prefixed with "!" it will add the file pattern in case - the layer is absent:: - - BBFILES_DYNAMIC += "\ - !clang-layer:${LAYERDIR}/backfill/meta-clang/*/*/*.bb \ - " - - This next example shows an error message that occurs because invalid - entries are found, which cause parsing to fail:: - - ERROR: BBFILES_DYNAMIC entries must be of the form {!}:, not: - /work/my-layer/bbappends/meta-security-isafw/*/*/*.bbappend - /work/my-layer/bbappends/openembedded-core/meta/*/*/*.bbappend - :term:`BBINCLUDED` Contains a space-separated list of all of all files that BitBake's parser included during parsing of the current file. From patchwork Wed Dec 2 14:25:09 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106994 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36791.1796221532242163950 for ; Wed, 02 Dec 2026 06:25:32 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=RDO8Lcf4; 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 957901A18E5 for ; Wed, 2 Dec 2026 14:25:30 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 6CC626075F; Wed, 2 Dec 2026 14:25:30 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9E19711EA1B48; Wed, 02 Dec 2026 15:25:29 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796221529; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=RiV+HrKFHxNZ9Wvr7HkpAOC/7HTwTJSIsnbdd116RPg=; b=RDO8Lcf4ORwXuL8VlAc8CWgparhNWkihRosP10YpaOHocrkW2+MRG+A/3tkvR91RnkZK6O b3KD5tomYM/JLybFLFL0oZL69nTvZqhcZG5bH1CztloUHD1MDWGH3YczArOuzEMl3AWaPM GS1nb3vvF9X9PmAULzkpTi3tG8nN0nPT7emagZWYvxJEgmobP9LBSfmCg7tcRCTeOze0fM 1kC+e35Zw/IXgJgTpZs9+AyOwHPStC0JXr4/zwj2Clk6h9DyI55gREsn3n5qryzD0yksb+ 1a1UZDkOL0xF8PCD90G1+Qumcl6nKb8lObxZQ8iezlEybOXlwkG5t2tIbEJELw== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:09 +0100 Subject: [PATCH 6/9] doc/bitbake-user-manual-hello: refresh the layer creation walkthrough MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-6-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=2668; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=VPctjN29Xz4yq+7jrdzcK+UMRqGVKE1rHSIKHIQu/mg=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpKPLYTO7ETgwdmzEHNvNmFb8ulHPR37t7Dy GWHtG1vh3+JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSgAKCRDRgEFAKaOo Nm6WD/0UT869Y85EBQkDumey4vfyUZ5mwlkxtd1d47blAIZ1F8y0N/Lw6NqLv7KTRreHF32jDAK lyhSshFH4cYuu5ZkOLpxtLNA9efywjm5fGbXNKel400hLpv1UO/XfzqJYdApaPQtujrQKPOSoEH smDzdnj83TE/GDXjKyN/IQg/bQ+ak4asr8v+q6dZ/rEyKGVqWb5Lf313iEFQVC7GwjV0jHnfliO SxWhtQEzmJkxpKriORhzeTQUROZhwncLIqTccmUUHYnsx40CIYviysOBuRicWmbFJRpXz+s9XeV ReR58GSV/Ln0gtAUbKEKRmJaammSW2tq1F6TdmHdGL3A26hCz74e0rEZw2UlqOXHiEsG80aDj1g FyX3oHKhTKcIC/G7dSgChIRgWBw452GvjlMSuknhX5KjFw9OSp+5nDsDG6gNoNLsvnNyS+rnGh4 NnfhzjSNqRufaAhHdJvPgA3HvFga4hvlhOT90PNvHbYkzImMiLRbkLxx1i1zA2hZ+fdSwc+UO86 1VD2NSdw14UmCFCe+w3a3/00uYQ1nVFbZkyhhUIYaosULJoNww3NoY6PdMdDHgnarAmaAKxUK18 GO3rGiab5sym99bCW8qbb+xXzSPNkAA4PfK8dEhBcL8wm4lliaX3QrW+sOOSGDhtk5HsYXV+6JM LbACGm/GiieXQ4Q== 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/10883 The new layer.conf format takes a minimal number of variable assignments - reflect it in the intro example. Signed-off-by: Antonin Godard --- .../bitbake-user-manual-hello.rst | 26 +++++++++++++--------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/doc/bitbake-user-manual/bitbake-user-manual-hello.rst b/doc/bitbake-user-manual/bitbake-user-manual-hello.rst index 654196ca2..a9666a507 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-hello.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-hello.rst @@ -306,16 +306,14 @@ Following is the complete "Hello World" example. Move to the ``conf`` directory and create a ``layer.conf`` file that has the following:: - BBPATH .= ":${LAYERDIR}" - BBFILES += "${LAYERDIR}/*.bb" - BBFILE_COLLECTIONS += "mylayer" - BBFILE_PATTERN_mylayer := "^${LAYERDIR_RE}/" + LAYERNAME = "mylayer" + LAYERVERSION = "1" LAYERSERIES_CORENAMES = "hello_world_example" - LAYERSERIES_COMPAT_mylayer = "hello_world_example" + LAYERSERIES_COMPAT = "hello_world_example" - For information on these variables, click on :term:`BBFILES`, - :term:`LAYERDIR`, :term:`BBFILE_COLLECTIONS`, :term:`BBFILE_PATTERN_mylayer ` - or :term:`LAYERSERIES_COMPAT` to go to the definitions in the glossary. + For information on these variables, click on :term:`LAYERNAME`, + :term:`LAYERVERSION`, :term:`LAYERSERIES_CORENAMES` or + :term:`LAYERSERIES_COMPAT` to go to the definitions in the glossary. .. note:: @@ -325,8 +323,14 @@ Following is the complete "Hello World" example. is compatible, and add the meta-openembedded layer to your project. You need to create the recipe file next. Inside your layer at the - top-level, use an editor and create a recipe file named - ``printhello.bb`` that has the following:: + top-level, create the ``recipes-hello/hello`` directories: + + .. code-block:: + + mkdir -p recipes-hello/hello + + Then, in the ``hello`` directory created above, use an editor and create a + recipe file named ``printhello.bb`` that has the following:: DESCRIPTION = "Prints Hello World" PN = 'printhello' @@ -351,7 +355,7 @@ Following is the complete "Hello World" example. $ cd $HOME/hello $ bitbake printhello - ERROR: no recipe files to build, check your BBPATH and BBFILES? + ERROR: Nothing PROVIDES 'printhello' Summary: There was 1 ERROR message shown, returning a non-zero exit code. 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 From patchwork Wed Dec 2 14:25:11 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106991 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36793.1796221533141000828 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=Igtz5lgc; 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 C6E941A18E3 for ; 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 9BAB16075F; 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 E866E11EA1B4F; 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=1796221531; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=0gsZQYeZzH1vb7ZehhOrODvVFMlHUH2BrChcWS2k7S0=; b=Igtz5lgcZnrVyX97sdvKc8+JTp9DNkU1pC37kNUP7qXyORkImtAn52ec02oNOvIameqtGx CGazoRF8aDAMcmloYvgAZy0bf2absikgAe8xHZKJy2XyaxQ2+tQ4ewZbcujRA32VoYnxoL f3Rdgbd8yhy6IJ8CuCEnLtu6GabVg/A8nV7V28IN4rsIiATQfadWmTeIMPfdOKbf+OZL4E TZKeG7Ms24+QU0cCxgI0AM5WQBiaDclVwwD01zGuVjyt4BmfDDHO3pLe1D8pijwvwtQ4L4 I+0tpnXaEc9U7r76t328Q0okXzen8J3gRROpGkSBlCJIPP6X9yoW16nn0xYLCw== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:11 +0100 Subject: [PATCH 8/9] doc/bitbake-user-manual-execution: add a Dynamic Recipes section MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-8-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=2298; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=wBUtMmfF8sz1L/Gpoqs2OcoMRUyEYHuz6wiDjUTuc80=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpL4fUDtXMq04mAIJKg/yS5V7jXrz7QznkqW 8irP7cU6K6JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSwAKCRDRgEFAKaOo NoerEACiRh5adR3W22uTqh1BJMldiq8TbeAqP/2XwQ6dE0F/zvio93O6/6H4N93cgthb7ycXd42 53cSqIV/NOHJC2Kt8qVn2oNoXlR6jzOhppHSI9JUNBE1yJCFkmJH18PMQUQ0TPd/Z4uylYtWZxt BugXeFU1rQYXMo1TgUGerWvATfMZ3nCBfJMF5J6aokxQqj+bpIn9dOrtIMzHQ4IEeLoEIaJj2wl DNWS++yy/qRf2PItQCio3J9/cjl7fXZNWgYmqF9XTg6W3VQPef/MiDT/fbXuTkN17lHFIbgdQay 5J+FbIU/73+qJNSwWYTN7FRav3aphlkHt8slMRnlTvZv0c9oq+hwzooXwKhC3Pbzjk+WeaToKOQ B9Vp3LlyBoKjyZ0nvv+ENk88r30JWdtJiljfw9iXTuVaqLDN1iFsfxFQ5pXtK9LdV6lv/g770yh NtzSX7/OECRqJH7vAhKDL4huvC5DpWnJXS+azmBo3vt+/8mwhQjUxfAqmgj0nroylv12cAco261 63TnQ/sFFcdidFIxnLpJA3HF/HkWX6tIpy/vOnS486FV7MgMXoUszoxLAD7+fDVLrx9F3C1I866 dOf/Cgw3kYLN0vOV9gV3uuFPY8TdgPJOk4MBzaMzrB8EP08bT9+l6hiUjvz4UxwdojS8/F764PY fHugq4o130OBwRg== 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:40 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10885 Add a section explaining the "dynamic recipes" concept (named after the dynamic-recipes directory name), how it works and how to organize files in this directory. Signed-off-by: Antonin Godard --- .../bitbake-user-manual-execution.rst | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/doc/bitbake-user-manual/bitbake-user-manual-execution.rst b/doc/bitbake-user-manual/bitbake-user-manual-execution.rst index 1221d8509..7fdf61c23 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-execution.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-execution.rst @@ -244,6 +244,43 @@ 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. +Dynamic Recipes and Append Files +================================ + +"Dynamic" recipes and bbappends are *always* located in the ``dynamic-recipes/`` +directory of a layer, located at the root of the layer. This directory can be +used to add additional recipes and bbappends that should be parsed *if and only +if* another layer is part of the currently enabled layers (part of :term:`BBLAYERS`). + +.. note:: + + Before BitBake version 2.22, this feature used to be called "dynamic + layers". + +The expected content of ``dynamic-recipes`` is to have one directory named after +the layer name (:term:`LAYERNAME`) for which you need to include dynamic +metadata. + +For example, the following ``example_0.1.bbappend`` file below only applies when +the ``meta-bar`` layer is part of the enabled layers (in :term:`BBLAYERS`): + +.. code-block:: text + + meta-foo/ + ├── conf/ + │   └── layer.conf + └── dynamic-recipes/ +    └── meta-bar/ +        └── example_0.1.bbappend + +The file organization of ``meta-bar/`` is up to the user. BitBake will +recursively try to find recipes or append files in this directory. + +.. note:: + + The ``dynamic-recipes/`` directory cannot contain classes or configuration + files. Its content is limited to recipes or bbappends. + .. _bb-bitbake-providers: Providers From patchwork Wed Dec 2 14:25:12 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106989 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36795.1796221534832092554 for ; Wed, 02 Dec 2026 06:25:35 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@bootlin.com header.s=dkim header.b=vNHFveB5; spf=pass (domain: bootlin.com, ip: 185.246.85.4, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-03.galae.net (Postfix) with ESMTPS id 6B2264E41845; Wed, 2 Dec 2026 14:25:33 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 40C4C6075F; Wed, 2 Dec 2026 14:25:33 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7089611EA1B50; Wed, 02 Dec 2026 15:25:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796221532; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=H9NYqlEwkvsZzztIFoNAegWB0rKr9VSc7sLb8fsQBv4=; b=vNHFveB5avUao9Ydpe/9nYHOG6Nu3ie0yhgdwywyuoNSs1rLYNg+c1CiwwkYQa5Zbta337 YwI4ovkVrAU5f7XUml1YwZguWG0AEs3sVMkSX4b1eqnQTh03pAoIdHuyLkYkCSsgT62d7J jyIDxLdNho/VHNBR0g8ET/+jbXI3Z8vUl+KO0eUix/4T5skpOiMc5lut/VeqHpUlw+F60O jjSz8ciQ2LgwN0qdSHGLYGpohBh/ghVWlWD3CB5MjDiaAqcpYj8aGXqRJVtIkHaZEA3mZV Oalxt45nH9/UgfoAREl0+lZI1HJ0XOWMgD0Ts2nYzZ6ClWX8t53RWqSP0ohxSA== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:12 +0100 Subject: [PATCH 9/9] doc/bitbake-user-manual-execution: add a Parsing Order and Priorities section MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-9-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=35190; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=ebiONvwGlqkniPsPg3ixTrpOeyxtqX2LGpxOLAolFmE=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpLFfPn9ME72zFVc6GcmUIhSbzsqSNKVq5al bOM6rHO/Y+JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSwAKCRDRgEFAKaOo NvugEACcfaqY0dO/qc+BBraCOfBzWfo/LuAHqReY1IAttDKpEjwUhEC/eZfRh/aXLwIM51eNnDE wrG2gGIcTMQ3aZ+cyVDjd1TuP1OHU+nRoeOKMpGIfiwMGCi7HazpC50KBn8RcYgOs5oEEvgjjnN TvhhxoIvuySX7lOoOjVgbDrnQeI8/iltY0CXV43r8qH/Slb1F+4rKw029gzG/RprF1Z1wRUEx23 5e2sC2Ef+vEZks9yoK5JxXGbs3uix4gmrH9Xz4KA3+K7cAFOL/4018iqI46feDpdXqs27lQc9+/ jHNpl5r7IHIvyx0Ouqq7F24dzSlO74BpcKVTVuuk/BnuCI9luW54F610fdz6YnX8IXzt22OGGVI C/FBP3+AL6Qr0HTjKLqFqLzLB+7w7W85mY5i/qZZfQiUIPGmRH/K7ses73l3yunA+LrrpakzmYR mOSO1K6up9pEYAHoT+Hl7y/A/vKnAIvS1Cj3EZihultRhdSrfDw6R7nqOcDE+MOeTDODhpFc2VT Kj5sohzMzX6v/Fxa4oxyYL7Q0qiykcfuscpuVld3n1a0wbLb/sCVe+DAKR19A6QukL6P7vJodOK RbUtmtKn9ZZhTZROHOzEryDjNyamYVqj/sMJcx2rs2Ibo/nbeivGFyfKo4AHQylRh2d901nGyGW VS833nAco75ONjA== 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:39 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10886 Add a section explaining how metadata is prioritized after the layer configuration format changes. There is no concept of BBFILE_PRIORITY anymore, instead the priority is automatically determined based on dependencies. Signed-off-by: Antonin Godard --- .../bitbake-user-manual-execution.rst | 63 ++++++++++++++++++++++ .../svg/layer-dependencies-1.mmd | 14 +++++ .../svg/layer-dependencies-1.svg | 1 + .../svg/layer-dependencies-2.mmd | 15 ++++++ .../svg/layer-dependencies-2.svg | 1 + 5 files changed, 94 insertions(+) hick{stroke-width:3.5px;}#my-svg .edge-pattern-solid{stroke-dasharray:0;}#my-svg .edge-thickness-invisible{stroke-width:0;fill:none;}#my-svg .edge-pattern-dashed{stroke-dasharray:3;}#my-svg .edge-pattern-dotted{stroke-dasharray:2;}#my-svg .marker{fill:#0b0b0b;stroke:#0b0b0b;}#my-svg .marker.cross{stroke:#0b0b0b;}#my-svg svg{font-family:"Nimbus Sans",Helvetica,Arial,sans-serif;font-size:16px;}#my-svg p{margin:0;}#my-svg .label{font-family:"Nimbus Sans",Helvetica,Arial,sans-serif;color:#333;}#my-svg .cluster-label text{fill:rgb(8.5000000002, 5.7500000001, 0);}#my-svg .cluster-label span{color:rgb(8.5000000002, 5.7500000001, 0);}#my-svg .cluster-label span p{background-color:transparent;}#my-svg .label text,#my-svg span{fill:#333;color:#333;}#my-svg .node rect,#my-svg .node circle,#my-svg .node ellipse,#my-svg .node polygon,#my-svg .node path{fill:#fff4dd;stroke:hsl(40.5882352941, 60%, 83.3333333333%);stroke-width:1px;}#my-svg .rough-node .label text,#my-svg .node .label text,#my-svg . image-shape .label,#my-svg .icon-shape .label{text-anchor:middle;}#my-svg .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#my-svg .rough-node .label,#my-svg .node .label,#my-svg .image-shape .label,#my-svg .icon-shape .label{text-align:center;}#my-svg .node.clickable{cursor:pointer;}#my-svg .root .anchor path{fill:#0b0b0b!important;stroke-width:0;stroke:#0b0b0b;}#my-svg .arrowheadPath{fill:#0b0b0b;}#my-svg .edgePaths .path{stroke:#0b0b0b;stroke-width:1px;}#my-svg .flowchart-link{stroke:#0b0b0b;fill:none;}#my-svg .edgeLabel{background-color:hsl(-79.4117647059, 100%, 93.3333333333%);text-align:center;}#my-svg .edgeLabel p{background-color:hsl(-79.4117647059, 100%, 93.3333333333%);}#my-svg .edgeLabel rect{opacity:0.5;background-color:hsl(-79.4117647059, 100%, 93.3333333333%);fill:hsl(-79.4117647059, 100%, 93.3333333333%);}#my-svg .labelBkg{background-color:rgba(243.9999999999, 220.9999999998, 255, 0.5);}#my-svg .cluster rect{fill:hsl(220.5882352941, 100%, 98.3333333333%);stro ke:hsl(220.5882352941, 60%, 88.3333333333%);stroke-width:1px;}#my-svg .cluster text{fill:rgb(8.5000000002, 5.7500000001, 0);}#my-svg .cluster span{color:rgb(8.5000000002, 5.7500000001, 0);}#my-svg .node .collapsed-indicator{fill:hsl(220.5882352941, 60%, 88.3333333333%);stroke:none;opacity:0.6;}#my-svg .node .collapsed-separator{stroke:hsl(220.5882352941, 60%, 88.3333333333%);stroke-width:0.75px;}#my-svg div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:"Nimbus Sans",Helvetica,Arial,sans-serif;font-size:12px;background:hsl(220.5882352941, 100%, 98.3333333333%);border:1px solid hsl(220.5882352941, 60%, 88.3333333333%);border-radius:2px;pointer-events:none;z-index:100;}#my-svg .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#my-svg rect.text{fill:none;stroke-width:0;}#my-svg .icon-shape,#my-svg .image-shape{background-color:hsl(-79.4117647059, 100%, 93.3333333333%);text-align:center;}#my-svg .icon-shape p,#my-svg .image-shap e p{background-color:hsl(-79.4117647059, 100%, 93.3333333333%);padding:2px;}#my-svg .icon-shape .label rect,#my-svg .image-shape .label rect{opacity:0.5;background-color:hsl(-79.4117647059, 100%, 93.3333333333%);fill:hsl(-79.4117647059, 100%, 93.3333333333%);}#my-svg .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#my-svg .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#my-svg .node .neo-node{stroke:hsl(40.5882352941, 60%, 83.3333333333%);}#my-svg [data-look="neo"].node rect,#my-svg [data-look="neo"].cluster rect,#my-svg [data-look="neo"].node polygon{stroke:url(#my-svg-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#my-svg [data-look="neo"].swimlane.cluster rect{filter:none;}#my-svg [data-look="neo"].node path{stroke:url(#my-svg-gradient);stroke-width:1px;}#my-svg [data-look="neo"].node .outer-path{filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#my-svg [data-look="neo"].node .neo-line path{str oke:hsl(40.5882352941, 60%, 83.3333333333%);filter:none;}#my-svg [data-look="neo"].node circle{stroke:url(#my-svg-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#my-svg [data-look="neo"].node circle .state-start{fill:#000000;}#my-svg [data-look="neo"].icon-shape .icon{fill:url(#my-svg-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#my-svg [data-look="neo"].icon-shape .icon-neo path{stroke:url(#my-svg-gradient);filter:drop-shadow( 1px 2px 2px rgba(185,185,185,1));}#my-svg :root{--mermaid-font-family:"Nimbus Sans",Helvetica,Arial,sans-serif;}

depends on

depends on

d epends on

openembedded-core

meta-custom-1

meta-custom-2

\ No newline at end of file diff --git a/doc/bitbake-user-manual/bitbake-user-manual-execution.rst b/doc/bitbake-user-manual/bitbake-user-manual-execution.rst index 7fdf61c23..38cbc56ab 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-execution.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-execution.rst @@ -281,6 +281,69 @@ recursively try to find recipes or append files in this directory. The ``dynamic-recipes/`` directory cannot contain classes or configuration files. Its content is limited to recipes or bbappends. +Parsing Order And Priorities +============================ + +Layers are parsed by BitBake using the :term:`BBLAYERS` variable. The +:term:`BBLAYERS` variable contains a list of paths pointing to the currently +enabled layers. BitBake uses the value of this variable to construct the +:term:`BBPATH` variable: a colon-separated list of paths that is crucial to +understand how assignments and file inclusion priorities work with BitBake. + +The principle is that a layer is prioritized compared to all the layers it +depends on. If two or more layers have exactly the same list of dependencies, +then they are alphabetically ordered, and the last one is prioritized. + +For example, in the following graph: + +.. figure:: svg/layer-dependencies-1.* + :align: center + :width: 70% + +The ``meta-custom-1`` and ``meta-custom-2`` layers both depend on +``openembedded-core``, they have the same dependencies, so the resulting +:term:`BBPATH` will contain the layer paths in this order: + +.. code-block:: text + + /path/to/meta-custom-2:/path/to/meta-custom-1:/path/to/openembedded-core + +.. note:: + + :term:`BBPATH` is iterated from left to right. + +In this context, the ``meta-custom-2`` layer always wins in the following situations: + +- Both layers provide the same machine or distro configuration file. + +- Both layers provide the same recipe with the same version (unless one of them + sets a higher :term:`DEFAULT_PREFERENCE` than the other, or + :term:`PREFERRED_VERSION` selects a specific version for the recipe). + +- Both layers provide the same class. + +If, however, we now change the dependency graph to: + +.. figure:: svg/layer-dependencies-2.* + :align: center + :width: 100% + +Here, we added the information that ``meta-custom-1`` depends on +``meta-custom-2`` (both still depend on ``openembedded-core``). Therefore +``meta-custom-1`` is now prioritized over ``meta-custom-2`` and +``openembedded-core``, because it depends on both. :term:`BBPATH` will now +contain the layer paths in this order: + +.. code-block:: text + + /path/to/meta-custom-1:/path/to/meta-custom-2:/path/to/openembedded-core + +This sort method is called :wikipedia:`topological sorting +`, and is explained in the Python official documentation +for the `graphlib.TopologicalSorter +`__ +class, which BitBake uses internally. + .. _bb-bitbake-providers: Providers diff --git a/doc/bitbake-user-manual/svg/layer-dependencies-1.mmd b/doc/bitbake-user-manual/svg/layer-dependencies-1.mmd new file mode 100644 index 000000000..d8a66267d --- /dev/null +++ b/doc/bitbake-user-manual/svg/layer-dependencies-1.mmd @@ -0,0 +1,14 @@ +--- +config: + theme: base + look: classic + fontFamily: '"Nimbus Sans", Helvetica, Arial, sans-serif' + flowchart: + wrappingWidth: 200 +--- +flowchart LR + openembedded-core["`openembedded-core`"] + meta-custom-1["`meta-custom-1`"] + meta-custom-2["`meta-custom-2`"] + meta-custom-1 -- depends on --> openembedded-core + meta-custom-2 -- depends on --> openembedded-core diff --git a/doc/bitbake-user-manual/svg/layer-dependencies-1.svg b/doc/bitbake-user-manual/svg/layer-dependencies-1.svg new file mode 100644 index 000000000..b9c7405a5 --- /dev/null +++ b/doc/bitbake-user-manual/svg/layer-dependencies-1.svg @@ -0,0 +1 @@ +

depends on

depends on

openembedded-core

meta-custom-1

meta-custom-2

\ No newline at end of file diff --git a/doc/bitbake-user-manual/svg/layer-dependencies-2.mmd b/doc/bitbake-user-manual/svg/layer-dependencies-2.mmd new file mode 100644 index 000000000..756a86032 --- /dev/null +++ b/doc/bitbake-user-manual/svg/layer-dependencies-2.mmd @@ -0,0 +1,15 @@ +--- +config: + theme: base + look: classic + fontFamily: '"Nimbus Sans", Helvetica, Arial, sans-serif' + flowchart: + wrappingWidth: 200 +--- +flowchart LR + openembedded-core["`openembedded-core`"] + meta-custom-1["`meta-custom-1`"] + meta-custom-2["`meta-custom-2`"] + meta-custom-1 -- depends on --> openembedded-core + meta-custom-1 -- depends on --> meta-custom-2 + meta-custom-2 -- depends on --> openembedded-core diff --git a/doc/bitbake-user-manual/svg/layer-dependencies-2.svg b/doc/bitbake-user-manual/svg/layer-dependencies-2.svg new file mode 100644 index 000000000..fb619b586 --- /dev/null +++ b/doc/bitbake-user-manual/svg/layer-dependencies-2.svg @@ -0,0 +1 @@ +