From patchwork Wed Dec 2 14:55:36 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107009 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37898.1796223349997582050 for ; Wed, 02 Dec 2026 06:55:50 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@bootlin.com header.s=dkim header.b=UVdXzLDe; 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 668691A18E1 for ; Wed, 2 Dec 2026 14:55:48 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 342936075F for ; Wed, 2 Dec 2026 14:55:48 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 8E89B11EA1BCF; Wed, 02 Dec 2026 15:55:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223347; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=DymtbjGTPcB7Jr3uLVc/v0hRyXjvEVLaeGj2VZR+hIg=; b=UVdXzLDeJoZqoTOArhGRIokHsnKRtZu4+MnmwQcHcBEXCR6JUWfTVu0sPeLL2xJt253yd7 M4hvqbiQdvBCH+1LEUripRsFSsPZnWvQ0idpAgfJuWl2raAdzgaDfH22dvfmv6ulkI37xU Yvm/2BLrhbg6ZV343AeDeDCp9c9Fl+Dv2HmAsPw6MhA3sngT+FdOk0nt5cUDtfbEbv7/GQ UMRQJ3lfzK8TTcm/SGxn6JAkzFliko7Woq3TmBYG6A3jVn+84Ffwpbsx2TGjIvtHNyJbfX xWA81bgtA0RmEZOsAYK6STlmblsPEHuBCFklOrZJORKL4nTORaNJbfHU88BkOA== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:36 +0100 Subject: [PATCH 01/18] ref-manual/layers.rst: add document MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-1-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=6819; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=3i3rz4aOCzLFWZgPL8bKXOdlWsiOiMIuieNCqHXsDwY=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFsjT9Z+T4xlCe0ziRSS4v7cN/xZYEt4dUzO 0TY1ZlJfUKJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbAAKCRDRgEFAKaOo NvtWD/4rkM8egG3s2fDRvXERzDejIBkRDFxy19sAWfHkfX+iuvnp1WR+EDm6BlrxVdmrpVOgjiC lSjI+j0VrkD8p9t2u5vcX3pdE6xqJwXQM+z4C++kY7Zsjj3vy2SmUPj17SyGN2xzG1O4R3cI6IQ hZO2VVeT6+3UrVN6DkntI0z7NjfoKHvlIzoxQ+S4Z8Q/BeDSFPHb58vzJUaCUk+meCq8zmCnmYI 428Lx342lRxavML+gZdyaUE3AMWl1jMcGDDCxMnrFBh+gu1NfU09TpnfvQfi8pB4qX1CyrqMqmq pe+CzXa6lKsjkOSaBqsRWeoHKTnImdBTiGksd+nRrMpgXeijaSut523Iqtg2NXtaMKOhV9eoE2r Mff/nvM2ClvTaE/swpyzDS8tzN4mCfq+3IIzSGUDVKPlyHW1JVhmlrwdDW601es+W5xzm5v2uev xm5d60z9qzEw/ZSdexgT7X6BJAubthSQiUaDxI3dx5OLBkvA4X35m8pm9HjkPV6LxscJcLGiXiT J71Gv05G73Ou9CSUGN4u/fs2M2N0fbuwCOo39edUTOz89GKE5v53Ar4tp4aOCf7470wmDsR2WdU 8SW1PztdiKb5I75UgCBDzJzS8AR7KQdx9xCZ6np6n9UzjaQgC7hE3piqNrmX8jO1iPsXoj9521C GhjKHbSSmc+lbjw== 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:55:52 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10888 This document aims to hold basic, but concept information about what a layer is and how it is supposed to be organized. Signed-off-by: Antonin Godard --- documentation/ref-manual/index.rst | 1 + documentation/ref-manual/layers.rst | 148 ++++++++++++++++++++++++++++++++++++ 2 files changed, 149 insertions(+) diff --git a/documentation/ref-manual/index.rst b/documentation/ref-manual/index.rst index 6f02b0fc9..c0dbbe457 100644 --- a/documentation/ref-manual/index.rst +++ b/documentation/ref-manual/index.rst @@ -15,6 +15,7 @@ Yocto Project Reference Manual terms release-process structure + layers classes tasks library-functions diff --git a/documentation/ref-manual/layers.rst b/documentation/ref-manual/layers.rst new file mode 100644 index 000000000..100f96598 --- /dev/null +++ b/documentation/ref-manual/layers.rst @@ -0,0 +1,148 @@ +.. SPDX-License-Identifier: CC-BY-SA-2.0-UK + +****** +Layers +****** + +This section of the Yocto Project Reference Manual contains reference +documentation about :term:`Layers `, a core component of the +:term:`OpenEmbedded Build System`. + +Layer Configuration Files +========================= + +A :term:`layer` is a collection of :term:`metadata`, which can be +:term:`configuration files `, :doc:`classes +`, recipes, bbappends, or :term:`configuration fragments +`. + +This collection is represented as a directory, and its structure should at a +minimum contain a ``conf/`` directory and a ``layer.conf`` configuration +file: + +.. code-block:: text + + meta-foo/ + └── conf/ + └── layer.conf + +A :term:`layer` directory name is prefixed with ``meta-`` by convention, such as +``meta-example`` in the snippet above. + +.. _structure-conf-layer.conf: + +``conf/layer.conf`` +------------------- + +The :ref:`structure-conf-layer.conf` file is what :term:`BitBake` looks for when +a :term:`layer` is included in the :ref:`structure-build-conf-bblayers.conf` +file (located in the :term:`Build Directory`). It declares basic information +about the layer and its dependencies. + +At a minimum, this file should contain the following variable assignments:: + + LAYERNAME = "meta-example" + LAYERVERSION = "1" + LAYERDEPENDS = "oe-core ..." + LAYERSERIES_COMPAT = "garburn" + +See each variable's definition in the :doc:`variable glossary +` for more information. + +In addition to these variables: + +- Only the variable prefixes listed in :term:`LAYER_PASSTHROUGH_VARS_PREFIXES` + are allowed to be set from the :ref:`structure-conf-layer.conf` file. The + :term:`OpenEmbedded-Core (OE-Core)` layer sets this variable. + + .. note:: + + While not recommended, a layer can override the + :term:`LAYER_PASSTHROUGH_VARS_PREFIXES` variable to allow other variables + to be set from the :ref:`structure-conf-layer.conf` file. + + This layer must set *the entire list* of prefixes with a regular ``=`` + assignment. It also must be the first one setting the + :term:`LAYER_PASSTHROUGH_VARS_PREFIXES` variable in the :term:`BBLAYERS` + list. As a consequence, any other statement made by another layer setting + or appending the :term:`LAYER_PASSTHROUGH_VARS_PREFIXES` variable is + ignored. + + If setting a global variable is required, it is recommended to do so from + a distro :term:`configuration file` or from a :term:`configuration + fragment`. + + .. warning:: + + Any other variables set in this file will have no effect! To set a + variable from a layer configuration file, which only affects the scope of + the :term:`metadata` part of the layer, see the + :ref:`structure-conf-layervars.conf` file definition. + +- The :ref:`addpylib ` directive can be used to make an internal Python + library available to the :term:`metadata`. + +.. _structure-conf-layervars.conf: + +``conf/layervars.conf`` +----------------------- + +The :ref:`structure-conf-layervars.conf` is, like +:ref:`structure-conf-layer.conf`, part of the layer's ``conf/`` directory, and +can contain variable assignments. Those assignments only affect the +:term:`metadata` part of the layer itself *without affecting the global scope*. + +For example, if a layer provides a global :doc:`class `, +but this class only makes sense for the recipes part of the layer, then one +could write the following in :ref:`structure-conf-layervars.conf`:: + + INHERIT += "myclass" + +This class would be inherited only by the recipes part of the layer containing +the file, but other recipes *not* part of the layer would not inherit that +class. + +Layer Metadata +============== + +A layer can contain various forms of :term:`metadata`. The aim of this section +is not to explain what each of these types of :term:`metadata` do, but rather +enumerate and link to each part of the documentation associated with them: + +- Recipes: see the :ref:`bitbake-user-manual/bitbake-user-manual-intro:Recipes` + section for more information. + +- Append files (bbappends): see the :ref:`bitbake:append-bbappend-files` + section for information. + +- Configuration files: + + - Machine configuration files, see the :ref:`bsp-manual/bsp:Hardware + Configuration Options` section for more information. + + - Distro configuration files, see the :doc:`/dev-manual/custom-distribution` + section for more information. + + - Configuration Fragments: see the :doc:`/dev-manual/creating-fragments` + section for more information. + +- :doc:`classes `: expected to be found by + :term:`BitBake` in any of the ``classes/``, ``classes-global/``, and + ``classes-recipe/`` directories at the root of the layer. + + See the :doc:`/ref-manual/classes` section for more information on classes. + +- Internal Python libraries: see the + :ref:`bitbake-user-manual/bitbake-user-manual-metadata:Extending + Python Library Code` section for more information. + +Additional Information on Layers +================================ + +The BitBake User Manual contains additional information on layers which can be +found here: + +- :ref:`bitbake-user-manual/bitbake-user-manual-execution:Locating and Parsing Recipes`. +- :ref:`bitbake-user-manual/bitbake-user-manual-execution:Dynamic Recipes and Append Files`. +- :ref:`bitbake-user-manual/bitbake-user-manual-execution:Parsing Order And Priorities`. From patchwork Wed Dec 2 14:55:37 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107008 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37899.1796223350646551977 for ; Wed, 02 Dec 2026 06:55:50 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=ZdPTx4Jz; 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 0061B1A18E3 for ; Wed, 2 Dec 2026 14:55:49 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id C49A56075F for ; Wed, 2 Dec 2026 14:55:48 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 0E9BC11EA1BD0; Wed, 02 Dec 2026 15:55:47 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223348; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=H3OTimbC3EM9qBpNTE72p1+ItNnU9JRPDk7ftggJ1gA=; b=ZdPTx4JzOGxJc3uvUGKLNGkpN9Bw+U2AHfcGtIp6kIXfv/svYkCbn1SyMk2t/9Gm7JAAip dhPpXUX/ZUanFiI8zUOhxs0FyCbEedmpv75AK/3/w43EgkWEHwlMcYUPvtnx6aL+4fAEZa xt1EsjmJ8vedPWqYuxz9tf1o4e56Sp6FllIqW7j9F2/TOWBPM7q+BR93uoJmeAaK/4//eG 9OAb+RBZ80rg0P+vdn1CTiirdU2zvIB8O6T3/5VftWamWsw1bhqw5YGUxONYbZpGmwkP/z RhXo7VaP1RS+aGBeh8xIDIWX6xkjf96zJ3Zm/qBH0Isu3Zx3FbrSawi2Fo3Bmw== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:37 +0100 Subject: [PATCH 02/18] ref-manual/variables.rst: BBFILES: refresh the definition MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-2-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1277; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=VKvepj7TAngweB8zVWouoZzzvqgBuHKhpXpXf+anj7o=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFscVfmZfr0XP+rA5cq+UGzjJaLRBOi5hL+a qhaHOOX5S2JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbAAKCRDRgEFAKaOo Nq2gEADLRXCNzIdLJ6BkDsw9PFWB+2mMgFTaE2+Q/Gc3u9BtvLSLeJCar+3aA/ieZD8CRqZYsV+ /pVSySENL6u0giVWL+4OHqjk4zsrRjzrKep5Sr/CfigzvsLHHfdAr+f7IA0ZIy4JdlVT36L1Dzq 8ywYr1Q8oMM7N572uZfh8oVeFHuO+TM5Lcuu0yG8VH1R9Mv9F8IbrmAw3twtTUUkiHTI7FJnkwm 7YpZmVOM6tHmbPtpBbj5q1TeyZfgtekIvOOz2K1CwYeVm7124as0LE9y/PgrN8rcRRlLvOZ2vSs NA7qmkVy4qZByCurnvbNw0D0cn5sdzUwjb9PwbCmO85icUyysV3tdxfcKDKgFn8GSv60q5jD/mZ 8GnEFFxUDP8iWzS/zeORjDRfRoU1fhR0JRSGnbAKrdK3rdMfcmFLJuY5HjfO+jxxcq4rLjIQ+eD 3yLF/TX91NcJhBdOuIc1PZ4bgdRRzDcN668R5jvo730rJQUQM+FEX1Lzv5Gfsy21KwEztFyl11J o9YEvS2MlDefWRjIMwGUP46h/8aKBHOFV0d0BTWmqtKa3Vq+po4ia+wW9RIToYnkQKviuQGV3zE kOZXMiE1FFjEw1uhtT/cXl8R5wDDIu65YGoproXavnFd3NWPu+7S+aOr7wCu82Iqa+EpSJMoMsY aGBlJCTR40M7efg== 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:55:52 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10889 This is no longer set by the layer, but automatically computed. BitBake will find any *.bb or *.bbappend from this list. Signed-off-by: Antonin Godard --- documentation/ref-manual/variables.rst | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 88438fd52..f4444dd87 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -845,13 +845,8 @@ system and gives an overview of their function and contents. to list all configured layers along with their priorities. :term:`BBFILES` - A space-separated list of recipe files BitBake uses to build - software. - - When specifying recipe files, you can pattern match using Python's - `glob `__ syntax. - For details on the syntax, see the documentation by following the - previous link. + A space-separated list of patterns BitBake uses to locate :term:`recipes + ` and :term:`append files`. :term:`BBFILES_DYNAMIC` Activates content when identified layers are present. This mechanism From patchwork Wed Dec 2 14:55:38 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107010 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37900.1796223351402160388 for ; Wed, 02 Dec 2026 06:55:51 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=fLZCOuoq; 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 AAC0D1A18E4 for ; Wed, 2 Dec 2026 14:55:49 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 7B5776075F for ; Wed, 2 Dec 2026 14:55:49 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 9F2B011EA1BDC; Wed, 02 Dec 2026 15:55:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223349; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=bn/WTdspKW0XEU+SvCxeFMey4FEukC/Gxp5wXGwHFpQ=; b=fLZCOuoq5iD2fp6bHzhOXHuZnfnfGg4KIzuLxMVZeUwTNqgWZjdfEJ5pnceIkNOcRzADno yucwHHf2aDECHJRcokyzu7TQJCHmjIxuf4Iri2CIERiqUL4p7abkMSjECPMu7KDFInFVvy SsToV7a1XfhGHNcoYbifI6xPx8BoH/7lO1EBVOb8aFuvBtqmVnB2/ABx1eRkC0aDCQnnEu uWyj4ogN2YHoblHWUGEoPUV9NqTN3CKzJ4ggRh0yOaTPNAhZCaI0mzLWGv3Un074Kc5zof wRU5akYpoJiVDbLdN2ncA67BJ8qdjqASNH+t26jyJkEvatU7FxOw/MHnDRHbig== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:38 +0100 Subject: [PATCH 03/18] ref-manual/variables.rst: drop obsolete BBFILE* variables MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-3-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=6152; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=gat55Om9v7dzp4X9i4dgi2er6XOd/DZ5SBdoA+U5acI=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFs5AtPgRGXmeVMLkjHhLl33xPYq1iPPW4Bo G4FlwOO/OeJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbAAKCRDRgEFAKaOo NmbPEACYb5MRIr0GJ/KhWmw57vc2ZWAj7JrH6ifhfchGw4/9K6yZsOWk3ZYhiLB4M+rsuFWtnFC VWlL+UZo/n4G2FSF5pehw67xlIVfvfkwN4k+xHlXkaEDHS1KVaU8a0Pf8GU/zGDIaTHJhr+fyhc TtUZQ3r1O7m0AGrsGKGo6QjCju5bqPpBLo24fwRYv14PYAZVzXUJrM5Xl4LWim0A5W/aheQiVpf qgOnCOgmBt1r4C8pQEe0+4i+75ucjdwZHTkJ0M3kQFUg7uDi2F+1DD5ralsPSRkPZZDvpdJ8Im6 gcXpxHowOC11wC375MVS2dXzsRtdtwqOx7j6GQWJEG+UvgnDUsnkowiZ1fFQMswnn10PMotuQ00 YPkbrwDMRT4ZJJy2AGPajpgha7YZi2cx7zO7uGj5CzPfiE5zJ8+wDPRQKP0kjMuSCGGwS44938i ioDl+9HdLNkihZ/BAgMR3NMyXz0zAQtqxP0leYDUoGOC1a+w10YR84LuujRfeGX7etVtBaoJkEa WUyOzNrlflpO9ejUkYd5mJDHthclHjTrbTLfAY/+xQ5pWaX9ejoQq+dM6o/yw43/AJT4vkTlK2v WXUz84pgdUbkOEKXqUmugkqqlRwWLp7+StWtkH6W2O1vu9QWOhzqBUfUx+S/AZ3CDq+Sl31HTa9 hDSSPjtYa7TUwYw== 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:55:52 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10890 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 --- 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 ` 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 :, 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. From patchwork Wed Dec 2 14:55:39 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107011 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37902.1796223352374233287 for ; Wed, 02 Dec 2026 06:55:52 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=DYsfdEFr; 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 AC3AA1A18D2 for ; Wed, 2 Dec 2026 14:55:50 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 7B68B6075F for ; Wed, 2 Dec 2026 14:55:50 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 5A70C11EA1BDB; Wed, 02 Dec 2026 15:55:49 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223349; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=lNZkNVZDTYPKR0QZgXwfWt49DNQEaQiFlIIyPlJPkpY=; b=DYsfdEFrbIFz32cRhEzKOLhBoeryoKQ0lA+8mT8ls2XHol431XrQ/5x1xn1a8xT0+1Kqrg Ma9keLj1b5Adury9jZvHjtR4W/Im8Td66GhVAElbcDBIf4k7e0vfOoKRqGhjYI0Ixj4axA uWGkAtuamoNO9wJEse4+ZBSr0f+d3vrSR0+tb6f3hF3+MfnDfhIwmjcnVZ7gh+fVp9XIM0 EZdk38h1qTAf0T6U3dMQY+ZhJw5JnBNker1aCiltyvRbw6wkCPHIR2+kd2yeVVT5TdkD+U 4Eb52o8aR4/rnaUfNg2fH9OGijL5EfUQmX45uwX77AyK4GbUx+BW4XveRSjPgA== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:39 +0100 Subject: [PATCH 04/18] ref-manual/variables.rst: drop LAYERDIR_RE MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-4-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=893; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=PYjSrQnzM9o+jYELgJtenoveE/cm6yAkELUmN53hHwM=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFtjGh+HA6QB3liveLdnOhruqVfTibMwGEMy 015w0O3HqCJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbQAKCRDRgEFAKaOo Ng0/D/9OMOuirph+Io0wJIXWwv2o5ISTwaqEQo8U1F8vzqi/fflbczWUwTzcX+EmSS2PLfOsLVH ijDgWVZyCgbH3JKe1Jdnh49uxwhm0ws0OdgPsALnAomh/lUM1KWOfPYxetGS7B/ouHC8icVQqLO +k7G7afN74Jqb4Wq+bqCKXZozwuAvzX0wY4JNxMh/IJOxLADXcjrpt3hLXw0qXqmjovrcAl4VGD WlkXgBWlsuKY4QTq5wii4Yt2Ba4ngyLu9os6Vyf3V7jKPENnzUBu5t0v5mZ7yFJdG3rLjMXcuyF Hl7q1wsK7TlnflFOwiNzGyMWQFbC77UzzobDqMsiaQflL9KU9O5t3g7AMexnH3iD4cSzOm4dP6K HWGE9NdK0ceLINQ6++2+B3smaKC7sxIdWMCEAbZAT5oCNkwtPKFwCs26nk5AfHq4FsDXv3EP0Xj TGQqKjmLTZZ3DwUv3ovDYGwmg7+rKf1it45PhaKxEQpTh+fkdsflzFOr8BU13EKZz0SWIJ4olPA 4PV//zDHVgrVKP1ibxOiI5ulYSFj6WhbwfYHzmMAKkZ4/aTp+CgyN1FAF/TtqZDtzBX5mCaz/8W sE7+EwxxnvZvHT3WSImvv3jngxWKPASGRjevhtBbiDU+qBz3zXiyzs71EoBHg1eQpJIIoJQ3cKv 1rpg5o+zirX+y4w== 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:56:02 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10891 This variable has been dropped after the layer configuration format changes. Signed-off-by: Antonin Godard --- documentation/ref-manual/variables.rst | 3 --- 1 file changed, 3 deletions(-) diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 4beb77bb1..2f491b3ef 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -5854,9 +5854,6 @@ system and gives an overview of their function and contents. available outside of ``layer.conf`` and references are expanded immediately when parsing of the file completes. - :term:`LAYERDIR_RE` - See :term:`bitbake:LAYERDIR_RE` in the BitBake manual. - :term:`LAYERRECOMMENDS` Lists the layers, separated by spaces, recommended for use with this layer. From patchwork Wed Dec 2 14:55:40 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107012 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.37489.1796223356886630002 for ; Wed, 02 Dec 2026 06:55:57 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=KwN2ZUjW; 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 59ACF4E4184A for ; Wed, 2 Dec 2026 14:55:55 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 276D36075F for ; Wed, 2 Dec 2026 14:55:55 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 2682B11EA1BDE; Wed, 02 Dec 2026 15:55:50 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223350; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=zFlZHMZYJXfo1iVcN1nKygg8NNbZyv3RPKD4wxAgBAk=; b=KwN2ZUjWkpmJohdLVKTX/RGZmCltCMEd2FuFKxkYGjo7xBS7TsfF8MGy27daOc31l/qmdT 7VXFKQPcDGk2+Pdqn2M6INH+DZrrSdF485cMCY4T+1HdzQujbYwztnRK+ASfHNhT4wfJPy YdL/u3jbiedXmuwt/uRpwHEoGDWulKJEe8w27Q1TRkrKqHWGrUbj2DHvtSZgdw18lJv8Ra hKDD1QM21YeiP3HDqypyL0WctfAdqBkdayPxk4tr0JQqKN9nA6UWuRQveyF2zNYZfN6W4Q +1Ad98Uc9gBpE18d3WH6kbEjpcGIvW0kwDhuADcthBm9qgFoVPjk2cPnZ51U3w== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:40 +0100 Subject: [PATCH 05/18] ref-manual/variables.rst: link bitbake-specific to the bitbake manual MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-5-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=6895; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=hMmoBIu/fAW7Qgwey17mHh9QGYES1d2/EacmqbCM82s=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFt9zjLBaccfKNM7XOt8nFsOvx3BhVYEbKDz L3YQKQ+oM6JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbQAKCRDRgEFAKaOo NgmuD/9sgs8YlLdthyh5m/VCsJ0LF/mlWMBgwZ9N4uNbGwyp/NcpAEYK42kiL88xIhP0lngAZVB fQovmBRY+GA94Vu2Xr23CZkpR8uV30zWPRrPNV5kvvrEPf8ekUw8fEmDjdGipvkgVCGsJRX/l1a 0vp99Ir7tvmymnlsiQQCUgzG4+yHt8LnnWmDn6VhFh2q5YMYsLSpv9TDN7MiXLAifaX3wpuHHds QF73Ci0wJWM0I4zE6u8yM9I7jUDpLkEaRwMqNoFZTH583TOWoPNrOb18REVwGEhb3euTP02Hxiq 1mRsOlh2ExPpfU3C9Oxu8AMZF158BzGfQ9ERDykaz649Aln183hFmrKUdJltGwNfMkpZx3+pUPx 0lABlU8tD+j0LZSWrBL4yA9V4KHcS/VT+JLA0FlNpO+p4N0DAs+8xZjWPvVYW3X4rEJ/HIAos/S oxfHWSMhRi7AfPFWjcDX8xEqtPhhGmpVQ8vmacOwK3GO/PTen8iJkBPN5SgSldTZ2EPzFT6AvP8 38FlFmenU//MrsG/Q3+KrUxmrAWSGRRdDc8UsWsOEm4xdILhcnndAP4S0R/415Ec/a5chBuWBji hSvW/AA6RuApjG8m1v91UXLBcsmkD7orqTzWHeX6pbwjE3etxBgVl5HB6JCaYrGWxCpKjlxUO76 lO2pecOzPA/zlJA== 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:56:02 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10892 Let's keep a single definition for bitbake-specific variables and (that are not specific to OE) in the BitBake User Manual, to avoid duplication. Signed-off-by: Antonin Godard ref-manual/variables.rst: link BBMASK variable to BitBake User Manual Keep a single definition for BBMASK, in the BitBake User Manual, to avoid duplication (and the explanation is much better there). Signed-off-by: Antonin Godard --- documentation/ref-manual/variables.rst | 98 +++++----------------------------- 1 file changed, 12 insertions(+), 86 deletions(-) diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 2f491b3ef..e8a40cae5 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -842,40 +842,7 @@ system and gives an overview of their function and contents. See :term:`bitbake:BBLAYERS_FETCH_DIR` in the BitBake manual. :term:`BBMASK` - Prevents BitBake from processing recipes and recipe append files. - - You can use the :term:`BBMASK` variable to "hide" these ``.bb`` and - ``.bbappend`` files. BitBake ignores any recipe or recipe append - files that match any of the expressions. It is as if BitBake does not - see them at all. Consequently, matching files are not parsed or - otherwise used by BitBake. - - The values you provide are passed to Python's regular expression - compiler. Consequently, the syntax follows Python's Regular - Expression (re) syntax. The expressions are compared against the full - paths to the files. For complete syntax information, see Python's - documentation at https://docs.python.org/3/library/re.html#regular-expression-syntax. - - The following example uses a complete regular expression to tell - BitBake to ignore all recipe and recipe append files in the - ``meta-ti/recipes-misc/`` directory:: - - BBMASK = "meta-ti/recipes-misc/" - - 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 += "/meta-ti/recipes-misc/ meta-ti/recipes-ti/packagegroup/" - BBMASK += "/meta-oe/recipes-support/" - BBMASK += "/meta-foo/.*/openldap" - BBMASK += "opencv.*\.bbappend" - BBMASK += "lzma" - - .. note:: - - When specifying a directory name, use the trailing slash character - to ensure you match just that directory name. + See :term:`bitbake:BBMASK` in the BitBake User Manual. :term:`BBMULTICONFIG` Specifies each additional separate configuration when you are @@ -2143,19 +2110,7 @@ system and gives an overview of their function and contents. not intended to be user-configurable. :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 :term:`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. + See :term:`bitbake:DEFAULT_PREFERENCE` in the BitBake User Manual. :term:`DEFAULT_TIMEZONE` Specifies the time zone set in the image. @@ -5832,55 +5787,26 @@ system and gives an overview of their function and contents. See the :ref:`ref-classes-grub-efi` class for more information on how this variable is used. - :term:`LAYERDEPENDS` - 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_mylayer = "anotherlayer (=3)" + :term:`LAYER_PASSTHROUGH_VARS_PREFIXES` + See :term:`bitbake:LAYER_PASSTHROUGH_VARS_PREFIXES` in the BitBake User Manual. - In this previous example, - version 3 of "anotherlayer" is compared against - :term:`LAYERVERSION`\ ``_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 and must be suffixed with the name of - the specific layer (e.g. ``LAYERDEPENDS_mylayer``). + :term:`LAYERDEPENDS` + See :term:`bitbake:LAYERDEPENDS` in the BitBake User Manual. :term:`LAYERDIR` - When used inside the ``layer.conf`` configuration file, this variable - provides the path of the current layer. This variable is not - available outside of ``layer.conf`` and references are expanded - immediately when parsing of the file completes. + See :term:`bitbake:LAYERDIR` in the BitBake User Manual. - :term:`LAYERRECOMMENDS` - Lists the layers, separated by spaces, recommended for use with this - layer. + :term:`LAYERNAME` + See :term:`bitbake:LAYERNAME` in the BitBake User Manual. - 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_mylayer = "anotherlayer (=3)" - - In this previous example, version 3 of "anotherlayer" is compared - against ``LAYERVERSION_anotherlayer``. - - This variable is used in the ``conf/layer.conf`` file and must be - suffixed with the name of the specific layer (e.g. - ``LAYERRECOMMENDS_mylayer``). + :term:`LAYERRECOMMENDS` + See :term:`bitbake:LAYERRECOMMENDS` in the BitBake User Manual. :term:`LAYERSERIES_COMPAT` See :term:`bitbake:LAYERSERIES_COMPAT` in the BitBake manual. :term:`LAYERVERSION` - Optionally specifies the version of a layer as a single number. You - 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 and must be - suffixed with the name of the specific layer (e.g. - ``LAYERVERSION_mylayer``). + See :term:`bitbake:LAYERVERSION` in the BitBake User Manual. :term:`LD` The minimal command and arguments used to run the :manpage:`linker From patchwork Wed Dec 2 14:55:41 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107013 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37905.1796223361322048129 for ; Wed, 02 Dec 2026 06:56:01 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=ICaAzChN; 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 E5C5F4E4184A for ; Wed, 2 Dec 2026 14:55:59 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id B3EC66075F for ; Wed, 2 Dec 2026 14:55:59 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 04A8D11EA1BDC; Wed, 02 Dec 2026 15:55:54 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223355; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=PFgQdt0mIvGbFuCjOVMIJbgXd5osc6rh4SqzJC0Ir00=; b=ICaAzChNzXevhrpZ1+zUMayqzHoRkHLlWpCIwXD4Mw+BnKGU1gJkOdKVR2LVtRRD9ukhKr kPTKsaEY7R42e8kbRgIUXbGQNNNHi19+qOKEaTsafBhelhRNnkFjVbj7bvXTUN0G1RbVfN XcrqqZMt7I9He6kRp2RRDo3z3pN06G2BftUuuKREq4pEJqFspNT4bbrclTasgM3Sl3sU83 r6kx82fVuhPvFZ27VVEkdrXlp0G/2s2bBRx7JWNsqsUI8woEqkvOhR4FT3BXvDEGIbIxN4 Ohv14EBJF4b0nAcSCCeKQViNgVndWUqHW57ez8TVrsKPwhqMom79O+WlWhGMJQ== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:41 +0100 Subject: [PATCH 06/18] ref-manual/variables.rst: document LAYER_FRAGMENTS_OPTED_OUT/LAYER_FRAGMENT_RECOMMENDS_ANY MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-6-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2418; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=uzQMZdms+lol15G7UgfN2F7oX3FwNwjMVxxDnUcfEHo=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFtEBh25HIJb7ErbruEQT8iT18QfL31BoB++ yiEu4iSBo6JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbQAKCRDRgEFAKaOo NhZED/9eBnI34xEaLMl4KEIcWI1nSLCDNVHLbHsNtmUnIcPVKqBFlfk+s8PU821Jnv98eIGe/Uz 4HZ45jGSbrrmhsDWCeRP2ZKjRzUAOgyYb0ExvFz6D8tn7zK3vCu+OQEMLSEH3tdt69DhVFylfsj mB8DfO7vm2dysQplDv6i1DSjplzCb8jD7PkA4PNvG9AJzKG+hSVB+vLminXbLDTNjeGp+wLGtoi FqnPXE40U4mTbi34i7H2OtMeNAILHwz0ZiLETl9tpw8nJ2pBeJPgXWvr0DkG+Q5gpHK1HWz707Z MrziR9csShitWciTWATchziGRuWTc0xiBwTMBLoONbp1FDbF9VEgCLN7WXckJQ2j9lYXAee4HES I6d3D5iM/cIWnEjXFENGOCC8P3keBT9Y+wNsTAcPpPsLbkrLhTpIYCRsXWRS30PTW2MtXyCb1ZT n8OsHoBtXn6gWvyKblazKr5poTKqoy07Z4weLcor22L0xSaPF2/MfNtbDKvZDFAvamq1YeeBh9G itNWYyZ9v6xFrwKz0Hj2F6Zdrc6WoAGZPgZ1L24K5MWvx69Xlyt1ZGKThX1mdBT0MKpblwUnNAV TX4iq0u0h1ki0cWkE3BAZQRkHiBsH5qO/KRQe1rZppkrrwioAJ+2p+YBDDAaFZSfYHSEouixhxp CyM7jS52VSHE6CQ== 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:56:02 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10893 Document these two new variables that can be defined to recommend and opt out of configuration fragments. Signed-off-by: Antonin Godard --- documentation/ref-manual/variables.rst | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index e8a40cae5..3b15fe32a 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst @@ -5787,6 +5787,38 @@ system and gives an overview of their function and contents. See the :ref:`ref-classes-grub-efi` class for more information on how this variable is used. + :term:`LAYER_FRAGMENT_RECOMMENDS_ANY` + The :term:`LAYER_FRAGMENT_RECOMMENDS_ANY` variable can be set in the + :ref:`structure-conf-layer.conf` file to contain a list of recommended + :term:`configuration fragments ` to enable when + the layer defining it is enabled (i.e. added to :term:`BBLAYERS`). + + For example, the :yocto_git:`meta-virtualization ` + layer defines:: + + LAYER_FRAGMENT_RECOMMENDS_ANY = "meta-virtualization/container meta-virtualization/k8s meta-virtualization/virt meta-virtualization/xen" + + This means that these four fragments are recommended to be enabled + alongside the layer being enabled itself. + + The :term:`OpenEmbedded Build System` will emit a warning if any of those + fragments are not enabled, unless the :term:`LAYER_FRAGMENTS_OPTED_OUT` + variable is set to opt out of them. + + :term:`LAYER_FRAGMENTS_OPTED_OUT` + The :term:`LAYER_FRAGMENTS_OPTED_OUT` variable can be set from a + :term:`configuration file` to opt out of a :term:`configuration fragment` + recommendation done by a :term:`layer`. + + For example:: + + LAYER_FRAGMENTS_OPTED_OUT = "meta-virtualization/container meta-virtualization/k8s" + + This would ignore the recommendation done by the + :yocto_git:`meta-virtualization ` layer to enable + the ``meta-virtualization/container`` and ``meta-virtualization/k8s`` + fragments. + :term:`LAYER_PASSTHROUGH_VARS_PREFIXES` See :term:`bitbake:LAYER_PASSTHROUGH_VARS_PREFIXES` in the BitBake User Manual. From patchwork Wed Dec 2 14:55:42 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107014 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37908.1796223365894299985 for ; Wed, 02 Dec 2026 06:56:06 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=EepTHUCB; 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 73A9D4E41849 for ; Wed, 2 Dec 2026 14:56:04 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 4A99B6075F for ; Wed, 2 Dec 2026 14:56:04 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 8C6A711EA1BE4; Wed, 02 Dec 2026 15:55:59 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223359; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=P5e+6VR6Q7ENAMc/yT8ZSn9n3QDBobj1GNIw/qsMl/A=; b=EepTHUCBFii4HnsWHTbhAn6DpIMkIlDSXTMLRTsfHApjUicww2mDHkFzyNy4u/haFRnqxs od09H4Lg8HarvDm2f1w0N26MZIpu4UbpJj7FzodiwL7AtK+j1hX8IfEgawMfo/vlGqM4Gg rDxlDv8IdLeUAxziu6m2E7TyLyZ+W5+y9zzIRlsdACyH8l0+IKJfrdz7UYmpmxeFp/1f60 md2GjJy3sfnq1T3BjGhQhG0YoLDwGqlRQw6eQqIe4xvQMq0tdOKnysTz9ng/gwfKGPAs11 kHJXGqpebS2+jjoRQ3yisKSNA+/3n6TSSz4ijpA65s3oiifSdUCm/PDu/fjQLw== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:42 +0100 Subject: [PATCH 07/18] migration-guides/migration-6.2.rst: add section on now layer format MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-7-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=4604; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=lZbm291AYraU4vB8xBRy+MYoC6MKFeKMz7VBPS/ekzg=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFtDzq0NAVNfI8CNgjwKSeuCTy9X00dLT6sJ XxxW/r8O4OJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbQAKCRDRgEFAKaOo NsjqEADGbf+XwT5hwi8TPVnxWatBbQfiMkbmbY8tmZQ2jKC+oRhbe86dnC6B70PMNC5zrzmW5WG xkIus9R1A+DQhPtWWd77Y9Xm5lSvdpueY+4cx1cCgMaenVNPvo+PcaD9EQ0C7EooUJp0aqHArqQ jmo2arcI05yaWe9dqvzyPdYbxFVq71U/JSHANhp/v1WoAWQO2yi5P3xFQlpKTUxwjkEVdTUc9ek vIhP3MCzqjn3Ct0mqg9J1b7asjUl4en8xxis/gKZBel6YdxCNbfeSpRQkotD4v+62NCUytpkQZC dtxE3Dls1NJ3g9lsa0hshQX6lnO8gUxJZWgKVzoSD9CAxHF6aeTJq2qCdCqtcIJ10CwluyJJcMr Xf0jyT/dbmJSA7qqKBsEbOg/26qW1d/nmUn7HjsXukZkiBOmeq0lRzR5FuPdB5/S2ji78oqE3Vw hX1tZ8uLmE+aIZY8M75KDwbzbQfSeyZ7IXBt0fAS7u3Vn8hU+mOImVm99FB2HTI7eXD0mwIgVMQ eJThO4W/BaGMrYlnv2Xi0ClEM58aGucroshNIElEPNLwWON+8onw/gn6IBdlE52vVx13YvyeFGi o4OVVW2xvizaoccAvXtMhG64LpdVTcEmf+PJmA82byZ9LoKxUNSQSyDYhyfqk/VOr34T4NXDnSl 7/81QM3fOHlb63g== 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:56:12 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10894 Document a migration guide on the new layer configuration file format, what it implies and how to convert a previous layer.conf file. Signed-off-by: Antonin Godard --- documentation/migration-guides/migration-6.2.rst | 92 ++++++++++++++++++++++++ 1 file changed, 92 insertions(+) diff --git a/documentation/migration-guides/migration-6.2.rst b/documentation/migration-guides/migration-6.2.rst index 750be4b48..638f62c23 100644 --- a/documentation/migration-guides/migration-6.2.rst +++ b/documentation/migration-guides/migration-6.2.rst @@ -30,6 +30,98 @@ GNU/Linux distributions: See :ref:`all supported distributions `. +New layer configuration file format +----------------------------------- + +With |yocto-codename|, the :term:`layer` configuration file has a new format for +which all layers should adapt. This file is the ``conf/layer.conf`` file found +in any layer. + +This section goes through the consequences of these changes and what is required +to do to update your configuration file accordingly. + +#. This file should now contain a minimal number of variables:: + + LAYERNAME = "" + LAYERVERSION = "1" + LAYERDEPENDS = "oe-core ..." + LAYERSERIES_COMPAT = "garburn" + + These four variables (:term:`LAYERNAME`, :term:`LAYERVERSION`, + :term:`LAYERDEPENDS` and :term:`LAYERSERIES_COMPAT`) are sufficient for a + layer to function correctly. + + Let's take a look at the previous default definition for a layer + configuration file:: + + # We have a conf and classes directory, add to BBPATH + BBPATH .= ":${LAYERDIR}" + + # We have recipes-* directories, add to BBFILES + BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ + ${LAYERDIR}/recipes-*/*/*.bbappend" + + BBFILE_COLLECTIONS += "" + BBFILE_PATTERN_ = "^${LAYERDIR}/" + BBFILE_PRIORITY_ = "100" + + LAYERDEPENDS_ = "core" + LAYERSERIES_COMPAT_ = "garburn" + + Some variables *no longer need to be set*: :term:`BBPATH`, :term:`BBFILES`, + ``BBFILE_COLLECTIONS``, ``BBFILE_PATTERN``, and + ``BBFILE_PRIORITY``. These variables are all either automatically + determined by :term:`BitBake`, or obsolete. The priority removal is detailed + below. + + The following table recapitulates the conversions from one format to the other: + + .. list-table:: + :widths: 50 50 + :header-rows: 1 + + * - Before + - After + * - ``BBPATH .= ":${LAYERDIR}"`` + - *No longer needed* + * - ``BBFILES += "..."`` + - *No longer needed* + * - ``BBFILE_COLLECTIONS += ""`` + - ``LAYERNAME = ""`` + * - ``BBFILE_PATTERN_ = "^${LAYERDIR}/"`` + - *No longer needed* + * - ``BBFILE_PRIORITY_ = "100"`` + - *No longer needed* (see explanation below) + * - ``LAYERDEPENDS_ = "core"`` + - ``LAYERDEPENDS = "oe-core"`` + * - ``LAYERSERIES_COMPAT_ = "garburn"`` + - ``LAYERSERIES_COMPAT = "garburn"`` + * - ``LAYERVERSION_ = "1"`` + - ``LAYERVERSION = "1"`` + +#. The list of variables allowed to be set from the + :ref:`structure-conf-layer.conf` file is limited to the variable prefixes + part of the :term:`LAYER_PASSTHROUGH_VARS_PREFIXES` variable. See the + :ref:`structure-conf-layer.conf` for more information. + + A layer can also set variables that apply to the layer's :term:`metadata` + only with the :ref:`structure-conf-layervars.conf` file. It is otherwise + recommended to provide your own distro :term:`configuration file`, or your + own :term:`configuration fragments ` (which you can + recommend with :term:`LAYER_FRAGMENT_RECOMMENDS_ANY`). + +#. Layers no longer have a concept of numbered priority, which was represented + by the ``BBFILE_PRIORITY`` variable. + + Priorities were mainly used in situations where two layers provided the same + recipe: the layer with the higher priority won, and its recipe was selected. + + Now, users are expected to set the :term:`PREFERRED_VERSION` variable from a + :term:`configuration file` in order to select which version they prefer to + select for the build. + + Otherwise, a recipe can set the :term:`DEFAULT_PREFERENCE` variable. + Removed recipes --------------- From patchwork Wed Dec 2 14:55:43 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107015 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37910.1796223370630599466 for ; Wed, 02 Dec 2026 06:56:11 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=F7KsXvlY; 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 018BF1A18D2 for ; Wed, 2 Dec 2026 14:56:09 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id CBAEA6075F for ; Wed, 2 Dec 2026 14:56:08 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 2935511EA1BE3; Wed, 02 Dec 2026 15:56:04 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223364; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=bkvbnmM6teOfTGi3rP/PTLuAZYL2D9G+yA8snYBds7c=; b=F7KsXvlYXV4tFRSs7fNEyZYDzGZ0gNljqMjlDPJQXmbbvogECtEgnbj6UUmD8RxXpo0zUY aM8Dp81BPVvYw7WAuqlZ2B5sWSWrVDF6hfFgPGcxQXx1HpuZU7+6lUMV3nasEc0Hsc+uqs Pr1yPMoCDyClwSJGCtSu7KzzD/OkcIwHfiEQDXuqY6uEX3pjg+K/rmmoIgGPGuQEJqroBn vzy0PFbc4wDGohw0lY/lCc2RtutBVNUaqZcwKRFQ9qo6IcmhlVIVbKrhcKGnIMR4rAZExE 4/JeLoR8DelUr16Xxj3Y3uJHPZzW+mAELUobXDydLkXOww+nohEEEdeOBb5JLA== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:43 +0100 Subject: [PATCH 08/18] migration-guides/migration-6.2.rst: add a section on the new core layer names MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-8-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2902; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=BGjms9f6sejYmdyehHtjiecDm1BO73tRadziIq3WHxI=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFtuztxJay+6Q8MiEixtevlUvWDBb54QTEF4 HiA6zK/9ieJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbQAKCRDRgEFAKaOo NhTnD/0b58s/Q7cSQaxY54UCNaaNmIIwgk87gVO1tKc4B8McBcQyV82l/PaoKqkQGJmH3V+giX8 XwfmCU8unGXnLkRpXhiWitErWdRIrirJVZpwJ971BqsE8T9WwLxFwh8prdRVWu1nGK5gpySD8xY Y2fHRKQEjT09i3Xpv8ho9D1YDfhmBRfzybXAKPWfEd4Kp7Evd9ZDBu6LFsElCuV8a4h1qR/Mlmk grr2OaySfx7WRXM6B+sjjH+sov94urkBY4Ktm8zuaSh6Q5AUFLzJgcPoRWQLRVJYsiA0FUFjKR+ mcLGXU3SbsIoogoZJdW3hzMvNMYKJZ0ub06z7SAonUOsPi/pZ8+noqVgUpUjvoQbiKY8RYSHZ4g zQCs1jJXzm355v3GkWStWaL6Y9qD/c9EeeZpLhKTKMxgb6wDU4ZwxaQ+99X++ypLNNjcaS+vq92 oPhnXNRomo3VXRRCUrQ1Y9grok5QVlHHlkCRlYxQmNlujPEDy+9Ox6j2dDNpEiwwgGkQdLc50pf 7TpgG08nxzE1fJVXAs0fccWtQhs1Y+jS48K7sQHtXnkiH0Wk/FHl3L6anwcnzGtNpY+CbKc9vO8 IM6cfrM3+rU3peHJmj40b8Mldd4tQv+ivLdwYjYp4UCbKcY1/UneQOZtWIWLmvx1SHcqblScGWz VoodZx8AXGcLmpQ== 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:56:12 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10895 Core layer have had their layer names changed. Document it in a migration guide section in a table. Signed-off-by: Antonin Godard --- documentation/migration-guides/migration-6.2.rst | 58 ++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/documentation/migration-guides/migration-6.2.rst b/documentation/migration-guides/migration-6.2.rst index 638f62c23..d697b77c5 100644 --- a/documentation/migration-guides/migration-6.2.rst +++ b/documentation/migration-guides/migration-6.2.rst @@ -122,6 +122,64 @@ to do to update your configuration file accordingly. Otherwise, a recipe can set the :term:`DEFAULT_PREFERENCE` variable. + See :ref:`bitbake-user-manual/bitbake-user-manual-execution:Parsing Order And + Priorities` for more information on how the new priorities work. + +New layer names +--------------- + +The following layers have had their layer name (:term:`LAYERNAME`) changed: + +.. list-table:: + :widths: 30 35 35 + :header-rows: 1 + + * - Layer + - Previous name + - New name + * - :oe_git:`openembedded-core ` + - ``core`` + - ``oe-core`` + * - :yocto_git:`meta-poky ` + - ``yocto`` + - ``meta-yocto-poky`` + * - :yocto_git:`meta-yocto-bsp ` + - ``yoctobsp`` + - ``meta-yocto-bsp`` + * - :oe_git:`meta-oe ` + - ``openembedded-layer`` + - ``meta-oe`` + * - :oe_git:`meta-filesystems ` + - ``filesystems-layer`` + - ``meta-oe-filesystems`` + * - :oe_git:`meta-gnome ` + - ``gnome-layer`` + - ``meta-oe-gnome`` + * - :oe_git:`meta-initramfs ` + - ``meta-initramfs`` + - ``meta-oe-initramfs`` + * - :oe_git:`meta-multimedia ` + - ``multimedia-layer`` + - ``meta-oe-multimedia`` + * - :oe_git:`meta-networking ` + - ``networking-layer`` + - ``meta-oe-networking`` + * - :oe_git:`meta-perl ` + - ``perl-layer`` + - ``meta-oe-perl`` + * - :oe_git:`meta-python ` + - ``meta-python`` + - ``meta-oe-python`` + * - :oe_git:`meta-webserver ` + - ``webserver`` + - ``meta-oe-webserver`` + * - :oe_git:`meta-xfce ` + - ``xfce-layer`` + - ``meta-oe-xfce`` + +These layers are usually used in :term:`LAYERDEPENDS` definitions or when +selecting :term:`configuration fragments `. + Removed recipes --------------- From patchwork Wed Dec 2 14:55:44 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107016 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.37503.1796223371585402145 for ; Wed, 02 Dec 2026 06:56:11 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=yqNx7d/h; 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 3F6A51A18E1 for ; Wed, 2 Dec 2026 14:56:10 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 144366075F for ; Wed, 2 Dec 2026 14:56:10 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B396011EA1BD0; Wed, 02 Dec 2026 15:56:08 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223369; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=FuSYZPOpSaqc0LUfK7BYL/oSi/hb4LN1W9/1FBBRVUs=; b=yqNx7d/hdFDNIe74Q9WlH+VZ9GaoMuvW3L/QTbnJpr7fDEJbMXQaWcF9BUWpTIafAvLMPy r+4kDhy1uoEIAQevelJ1QQpkotQ0gGkCw+GZ6LxEitJOPTIt9Op0LOc2xMv/H9Vw4rmQjC tZN4lMzfoBlzTZCTts/bWkyrZKTwovJVHFphqrpmKZEHjRmUDMxNvtyOYYAcA1PLXjZaQ0 +FN+20X4VYPF3lWTVnTdbvS+2a7mjk09bA0U+e54N0wyBurfVsyn8I6h+oSw1/fX9YfkA9 dBq12gklqorwX7FrsVuyeX0BJwrCI4hSdbFGyC/PBcR8qwXS7ZuvYtNjb9lQyA== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:44 +0100 Subject: [PATCH 09/18] dev-manual/layers.rst: remove a leftover poky repo reference MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-9-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1118; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=OhYBjKBZtkdJl0mlZTXjgdxMVX3lt5ViHWY2sBh1X+4=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFuXVvrBvDHaqxeerl+zDXehmbDFpUxaOGdk vRuuXY6JiCJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbgAKCRDRgEFAKaOo NmdZD/9uJ2dJOP5547A6O9LWp4c229r1/Xft1MNjRGNvqWdsDl2mZnN6ewT+2lJByYPjsq/f1ji 3y0iQGhHNKVUuKvJzM0tU+0jZnSSQJmpeWRy09+fEGekG06ppxf/wfCRprHkZpwednNkMFqVmw5 qQpz0bodPHH+MGAVzrg/d7nVS5cG7HRPbrSZZnX+OJ0vLi8yCptA9hTfyDIrrKs2wu7Y8e5zTo0 DZLapSHU5F+GyynUgZFGPUMSg4XaIDjINLhoQFz1uXGZCWQ98XVwLT7p3PRGzMae4E1E0eG16bf kRxf/BtzlI4Ce8iXiUTTKr1pK6Mqb+BB8jz+ItUXty1vt0xDcm19yPKDLrM14zBbdDJZL45Nbm0 EhzUn4O+1TjThGB29slFoupTfYyHIhl/6iRUQPwEVx8B+CkJOkc+sKwknKW+vz+ac2Wv8nfGEHn gCrToFaz2EH4pgTLEXdxb1ZK69YXtysqAj1SGVi5U+GdrmjBALric1JR6P06BQEquJaADrqJ4Ir cQe/3696oOsXTZxid+g+ebJ7f/TNsem5bl9ZuKARhp+I8gxQOx1D43nQ+wDe3f6ivx8c+Z7Sjyn +RmzvmWYLLtE7BVRgyjR8mgMWheB7gER47X//AET4ZSaC5m6BJRoRbT9wXCO95hdEXT5r7H84tG wrIlj4b8skWvrVg== 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:56:12 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10896 Poky, as in the repository, was removed. Remove this leftover reference. Signed-off-by: Antonin Godard --- documentation/dev-manual/layers.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/documentation/dev-manual/layers.rst b/documentation/dev-manual/layers.rst index babf2f023..cfe476624 100644 --- a/documentation/dev-manual/layers.rst +++ b/documentation/dev-manual/layers.rst @@ -504,9 +504,7 @@ Before the OpenEmbedded build system can use your new layer, you need to enable it. To enable your layer, simply add your layer's path to the :term:`BBLAYERS` variable in your :ref:`structure-build-conf-bblayers.conf` file, which is found in the :term:`Build Directory`. The following example shows how to -enable your new ``meta-mylayer`` layer (note how your new layer exists -outside of the official ``poky`` repository which you would have checked -out earlier):: +enable your new ``meta-mylayer`` layer:: # POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf # changes incompatibly From patchwork Wed Dec 2 14:55:45 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107017 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.37505.1796223372508003551 for ; Wed, 02 Dec 2026 06:56:12 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=Y9mxHc6E; 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 CDFD61A18E3 for ; Wed, 2 Dec 2026 14:56:10 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id A469E6075F for ; Wed, 2 Dec 2026 14:56:10 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B09E511EA1BDC; Wed, 02 Dec 2026 15:56:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223370; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=xYWK90LfXqrmvUpX18AH6pO9do+lHxLEKTdC36/4CA4=; b=Y9mxHc6ETA6DekgBVU4KF8UzWig/4o/+pTVFsuSejiNGTiKbxZNjDRvQqfhz8riPl7+gbg ktB8mmdOs868s3cjUXBTwrenlftqAf6JCdq/yuCtXDexIsVeLas3wlWHcoSm7E96U/vx9s Z2cjJXaHOVMElz08D9qua7B8FKVk+yXGIjAtpA4YmToQxj2VHY96gfQxlcN7/AT085eIEl w0uyLpv0I8ddfiRHlsDLevgOvgKKwGU1VEudNtLhtZwrIeDIztS0MxJH8ndCPbp46mcZUP VAo77fiWFCcT1SZ675JpbzBaG1Xs+OcuNvbprvTVGjc0OBdlJbAijAWdJSZ5JA== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:45 +0100 Subject: [PATCH 10/18] dev-manual/layers.rst: refresh after layer configuration format changes MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-10-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=17256; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=LS3WdmLOXHdr4G2aQeTUa5LtDvWGbBecuePkP6UGG3I=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFuxR2jTBthO3nHaA9sC9MfqFuaS+21w89I2 x7ytHHC/WqJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbgAKCRDRgEFAKaOo NsF9EACVhSb44eOOfF8/YOd2WDPXVy17o8ZFVcInAYD2UxCFwwiSaWNqvU/RoqOhezq73ozmlpi wUcHvuWl0IhusIR6kH6qdnC4JXZNUKdmfV9oLpV514+0O0gZNnFN1LOvXgXjtV6naPJPbXB1h8A 5OpiW8sub1W6wNny/vFIa3Q4XCd4Vrz3vD8ginyCvFqW6i1mSOwBxOhT/G2WVaqhTMhSX3iALRQ Hx5sqQSZWgIVsuaxues33B9iQLnGKLOxrEd1K2eDHmHUE24fnnNXKuVTbtUPkGTqppPpAgr8ERL axm1bT25KQ7er97NM/euDhZuvepE/G23K/208PLCgWFGSYDPH+N9htK2f0jaLWpJbMuLr6oqftk w0r5lyMBKB8lEPYOKGv0ZQxR6c0R2KpVr0QTx+F+ObFyaE0YcFSf1tqj/J9b2VIXRmtDiU8akUD dZYTaZpzIAb5yl3a0kzCPFGjJMVQKAzLwghp1Rv4DT6/f0birPaHwVoTikk1+dTKmALsDh9xVv+ E9FIsM+b1fros5E5AzG+mQTLwOvONOcpK+YIc2fZNjkcDx8C3e0bNBBE3mhWsu4kB/0ISgxRWts 9BfL0IqK8bwYdIladEElGkqZRbG8nKN5oRt81PDwUaICPVyAR0v+pEEjZ6Q9hs8DsGmNynoSYqN cSEt2PTA+9+KlKA== 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:56:22 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10897 Rework the layers development manual document to reflect the new layer configuration formation. This removes all the details about the various BBFILE* variables that were removed and instead links to the layers reference manual document we now have. Otherwise the rest of this patch are added links or rewordings. Signed-off-by: Antonin Godard --- documentation/dev-manual/layers.rst | 238 ++++++------------------------------ 1 file changed, 37 insertions(+), 201 deletions(-) diff --git a/documentation/dev-manual/layers.rst b/documentation/dev-manual/layers.rst index cfe476624..b4a8571ac 100644 --- a/documentation/dev-manual/layers.rst +++ b/documentation/dev-manual/layers.rst @@ -9,7 +9,10 @@ Layers allow you to isolate different types of customizations from each other. For introductory information on the Yocto Project Layer Model, see the ":ref:`overview-manual/yp-intro:the yocto project layer model`" -section in the Yocto Project Overview and Concepts Manual. +section in the Yocto Project Overview and Concepts Manual. For reference +documentation on layers, see the :doc:`/ref-manual/layers` section. This +document shows how to create and manipulate layers within the +:term:`OpenEmbedded Build System`. Note well that to properly call the ``bitbake-layers`` command explained below, you must first @@ -83,58 +86,12 @@ Follow these general steps to create your layer without using tools: By default, the ``bitbake-layers create-layer`` command creates a layer with the following: - - A ``conf/layer.conf`` configuration file with default definitions. - - Here is an explanation of the typical content of the layer configuration file: - - - :term:`BBPATH`: Adds the layer's root directory to BitBake's search - path. Through the use of the :term:`BBPATH` variable, BitBake locates - class files (``.bbclass``), configuration files, and files that are - included with ``include`` and ``require`` statements. For these cases, - BitBake uses the first file that matches the name found in - :term:`BBPATH`. This is similar to the way the ``PATH`` variable is - used for binaries. It is recommended, therefore, that you use unique - class and configuration filenames in your custom layer. - - See the :ref:`bitbake:bitbake-user-manual/bitbake-user-manual-metadata:Locating Include - Files` section of the BitBake User Manual for more details on how - files are included with :term:`BitBake`. - - - :term:`BBFILES`: Defines the location for all recipes in the layer. - - - :term:`BBFILE_COLLECTIONS`: Establishes the current layer through a - unique identifier that is used throughout the :term:`OpenEmbedded Build - System` to refer to the layer. In this example, the identifier - "yoctobsp" is the representation for the container layer named - "meta-yocto-bsp". - - This name is used by other layers when specifying the layer - dependencies via the :term:`LAYERDEPENDS` variable. - - - :term:`BBFILE_PATTERN`: Expands immediately during parsing to provide - the directory of the layer. - - - :term:`BBFILE_PRIORITY`: Establishes a priority to use for recipes in - the layer when the :term:`OpenEmbedded Build System` finds recipes of - the same name in different layers. - - - :term:`LAYERVERSION`: Establishes a version number for the layer. You - can use this version number to specify this exact version of the layer - as a dependency when using the :term:`LAYERDEPENDS` variable. - - - :term:`LAYERDEPENDS`: Lists all layers on which this layer depends (if - any). It uses the layer names specified by the - :term:`BBFILE_COLLECTIONS` variable. - - - :term:`LAYERSERIES_COMPAT`: Lists the :yocto_home:`Yocto Project - release ` codenames (in lowercase) this layer is - compatible with. For example: "&DISTRO_NAME_NO_CAP;". - - This variable is a good way to indicate if a particular layer is - current. + - A ``conf/layer.conf`` configuration file with default definitions. See the + :ref:`structure-conf-layer.conf` section for reference documentation on + this file. - A ``recipes-example`` subdirectory that itself contains a - subdirectory named ``example``, which contains an ``example.bb`` + subdirectory named ``example``, which contains an ``example_0.1.bb`` recipe file. - A ``COPYING.MIT``, which is the license statement for the layer. The @@ -144,11 +101,7 @@ Follow these general steps to create your layer without using tools: - A ``README`` file, which is a file describing the contents of your new layer. - - If you want to set the priority of the layer to other than the default value - of "6", you can either use the ``--priority`` option or you can edit the - :term:`BBFILE_PRIORITY` value in the ``conf/layer.conf`` after the script - creates it. Furthermore, if you want to give the example recipe file some + If you want to give the example recipe file some name or version other than the defaults, you can use the ``--example-recipe-name`` and/or ``--example-recipe-version`` options. @@ -156,18 +109,23 @@ Follow these general steps to create your layer without using tools: works is to experiment with the script. You can also read the usage information by running ``bitbake-layers create-layer --help``. -#. *Add Content:* Depending on the type of layer, add the content. If - the layer adds support for a machine, add the machine configuration - in a ``conf/machine/`` file within the layer. If the layer adds - distro policy, add the distro configuration in a ``conf/distro/`` - file within the layer. If the layer introduces new recipes, put the - recipes you need in ``recipes-*`` subdirectories within the layer. +#. *Add Content:* Depending on the type of layer, add the content: + + - If the layer adds support for a machine, add the machine configuration in + a ``conf/machine/`` file within the layer. See the :doc:`/bsp-manual/index` + section for more information. + + - If the layer adds distro policy, add the distro configuration in a + ``conf/distro/`` file within the layer. See the + :doc:`/dev-manual/custom-distribution` section for more information. + + - If the layer introduces new recipes, put the recipes you need in + ``recipes-*`` subdirectories within the layer. .. note:: For an explanation of layer hierarchy that is compliant with the - Yocto Project, see the ":ref:`bsp-manual/bsp:example filesystem layout`" - section in the Yocto Project Board Support Package (BSP) Developer's Guide. + Yocto Project, see the :doc:`/ref-manual/layers` section. #. *Optionally Test for Compatibility:* If you want permission to use the Yocto Project Compatibility logo with your layer or application @@ -185,11 +143,11 @@ following list: - *Avoid "Overlaying" Entire Recipes from Other Layers in Your Configuration:* In other words, do not copy an entire recipe into - your layer and then modify it. Rather, use an append file + your layer and then modify it. Rather, use an :term:`append file ` (``.bbappend``) to override only those parts of the original recipe you need to modify. -- *Avoid Duplicating Include Files:* Use append files (``.bbappend``) +- *Avoid Duplicating Include Files:* Use :term:`append files` (``.bbappend``) for each recipe that uses an include file. Or, if you are introducing a new recipe that requires the included file, use the path relative to the original layer directory to refer to the file. For example, @@ -506,19 +464,14 @@ enable it. To enable your layer, simply add your layer's path to the found in the :term:`Build Directory`. The following example shows how to enable your new ``meta-mylayer`` layer:: - # POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf - # changes incompatibly - POKY_BBLAYERS_CONF_VERSION = "2" - BBPATH = "${TOPDIR}" - BBFILES ?= "" BBLAYERS ?= " \ - /home/user/poky/meta \ - /home/user/poky/meta-poky \ - /home/user/poky/meta-yocto-bsp \ - /home/user/mystuff/meta-mylayer \ + /home/user/openembedded-core/meta \ + /home/user/meta-poky \ + /home/user/meta-yocto-bsp \ + /home/user/meta-mylayer \ " -BitBake parses each ``conf/layer.conf`` file from the top down as +BitBake parses each :ref:`structure-conf-layer.conf` file from the top down as specified in the :term:`BBLAYERS` variable within the :ref:`structure-build-conf-bblayers.conf` file. During the processing of each ``conf/layer.conf`` file, BitBake adds the recipes, classes and configurations contained within the @@ -528,7 +481,7 @@ Appending Other Layers Metadata With Your Layer =============================================== A recipe that appends Metadata to another recipe is called a BitBake -append file. A BitBake append file uses the ``.bbappend`` file type +:term:`append file `. A BitBake append file uses the ``.bbappend`` file type suffix, while the corresponding recipe to which Metadata is being appended uses the ``.bb`` file type suffix. @@ -706,123 +659,6 @@ check for an additional :term:`MACHINE_FEATURES` that if set will cause these additional files to be installed. These additional files are listed in :term:`FILES` so that they will be packaged. -Prioritizing Your Layer -======================= - -Each layer is assigned a priority value. Priority values control which -layer takes precedence if there are recipe files with the same name in -multiple layers. For these cases, the recipe file from the layer with a -higher priority number takes precedence. Priority values also affect the -order in which multiple ``.bbappend`` files for the same recipe are -applied. You can either specify the priority manually, or allow the -build system to calculate it based on the layer's dependencies. - -To specify the layer's priority manually, use the -:term:`BBFILE_PRIORITY` -variable and append the layer's root name:: - - BBFILE_PRIORITY_mylayer = "1" - -.. note:: - - It is possible for a recipe with a lower version number - :term:`PV` in a layer that has a higher - priority to take precedence. - - Also, the layer priority does not currently affect the precedence - order of ``.conf`` or ``.bbclass`` files. Future versions of BitBake - might address this. - -Providing Global-level Configurations With Your Layer ------------------------------------------------------ - -When creating a layer, you may need to define configurations that should take -effect globally in your build environment when the layer is part of the build. -The ``layer.conf`` file is a :term:`configuration file` that affects the build -system globally, so it is a candidate for this use-case. - -.. warning:: - - Providing unconditional global level configuration from the ``layer.conf`` - file is *not* a good practice, and should be avoided. For this reason, the - section :ref:`ref-conditional-layer-confs` below shows how the ``layer.conf`` - file can be used to provide configurations only if a certain condition is - met. - -For example, if your layer provides a Linux kernel recipe named -``linux-custom``, you may want to make :term:`PREFERRED_PROVIDER_virtual/kernel -` point to ``linux-custom``:: - - PREFERRED_PROVIDER_virtual/kernel = "linux-custom" - -This can be defined in the ``layer.conf`` file. If your layer is at the last -position in the :term:`BBLAYERS` list, it will take precedence over previous -``PREFERRED_PROVIDER_virtual/kernel`` assignments (unless one is set from a -:term:`configuration file` that is parsed later, such as machine or distro -configuration files). - -.. _ref-conditional-layer-confs: - -Conditionally Provide Global-level Configurations With Your Layer -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - -In some cases, your layer may provide global configurations only if some -features it provides are enabled. Since the ``layer.conf`` file is parsed at an -earlier stage in the parsing process, the :term:`DISTRO_FEATURES` and -:term:`MACHINE_FEATURES` variables are not yet available to ``layer.conf``, and -declaring conditional assignments based on these variables is not possible. The -following technique shows a way to bypass this limitation by using the -:term:`USER_CLASSES` variable and a conditional ``require`` command. - -In the following steps, let's assume our layer is named ``meta-mylayer`` and -that this layer defines a custom :ref:`distro feature ` -named ``mylayer-kernel``. We will set the :term:`PREFERRED_PROVIDER` variable -for the kernel only if our feature ``mylayer-kernel`` is part of the -:term:`DISTRO_FEATURES`: - -#. Create an include file in the directory - ``meta-mylayer/conf/distro/include/``, for example a file named - ``mylayer-kernel-provider.inc`` that sets the kernel provider to - ``linux-custom``:: - - PREFERRED_PROVIDER_virtual/kernel = "linux-custom" - -#. Provide a path to this include file in your ``layer.conf``:: - - META_MYLAYER_KERNEL_PROVIDER_PATH = "${LAYERDIR}/conf/distro/include/mylayer-kernel-provider.inc" - -#. Create a new class in ``meta-mylayer/classes-global/``, for example a class - ``meta-mylayer-cfg.bbclass``. Make it conditionally require the file - ``mylayer-kernel-provider.inc`` defined above, using the variable - ``META_MYLAYER_KERNEL_PROVIDER_PATH`` defined in ``layer.conf``:: - - require ${@bb.utils.contains('DISTRO_FEATURES', 'mylayer-kernel', '${META_MYLAYER_KERNEL_PROVIDER_PATH}', '', d)} - - For details on the ``bb.utils.contains`` function, see its definition in - :bitbake_git:`lib/bb/utils.py `. - - .. note:: - - The ``require`` command is designed to not fail if the function - ``bb.utils.contains`` returns an empty string. - -#. Back to your ``layer.conf`` file, add the class ``meta-mylayer-cfg`` class to - the :term:`USER_CLASSES` variable:: - - USER_CLASSES:append = " meta-mylayer-cfg" - - This will add the class ``meta-mylayer-cfg`` to the list of classes to - globally inherit. Since the ``require`` command is conditional in - ``meta-mylayer-cfg.bbclass``, even though inherited the class will have no - effect unless the feature ``mylayer-kernel`` is enabled through - :term:`DISTRO_FEATURES`. - -This technique can also be used for :ref:`Machine features -` by following the same steps. Though not mandatory, it is -recommended to put include files for :term:`DISTRO_FEATURES` in your layer's -``conf/distro/include`` and the ones for :term:`MACHINE_FEATURES` in your -layer's ``conf/machine/include``. - Managing Layers =============== @@ -948,13 +784,13 @@ shows the layers that are in your :ref:`structure-build-conf-bblayers.conf` file Parsing of 1441 .bb files complete (0 cached, 1441 parsed). 2055 targets, 56 skipped, 0 masked, 0 errors. $ bitbake-layers show-layers NOTE: Starting bitbake server... - layer path priority - ============================================================================================== - meta /home/user/bitbake-builds/layers/openembedded-core/meta 5 - meta-poky /home/user/bitbake-builds/layers/meta-yocto/meta-poky 5 - meta-yocto-bsp /home/user/bitbake-builds/layers/meta-yocto/meta-yocto-bsp 5 - workspace /home/user/bitbake-builds/build/workspace 99 - meta-scottrif /home/user/bitbake-builds/build/meta-scottrif 6 + layer path version depends + ================================================================================================================= + oe-core /home/user/bitbake-builds/layers/openembedded-core/meta 1 + meta-yocto-poky /home/user/bitbake-builds/layers/meta-yocto/meta-poky 1 oe-core + meta-yocto-bsp /home/user/bitbake-builds/layers/meta-yocto/meta-yocto-bsp 1 oe-core + workspace /home/user/bitbake-builds/build/workspace 1 oe-core + meta-scottrif /home/user/bitbake-builds/build/meta-scottrif 1 oe-core Adding the layer to this file enables the build system to locate the layer during the build. From patchwork Wed Dec 2 14:55:46 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107019 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.37506.1796223373236315894 for ; Wed, 02 Dec 2026 06:56:13 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=rLCIBOAe; 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 C96121A18D2 for ; Wed, 2 Dec 2026 14:56:11 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 9998F6075F for ; Wed, 2 Dec 2026 14:56:11 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 8157911EA1BBF; Wed, 02 Dec 2026 15:56:10 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223371; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=vTRtnscQzW3OJdFxXyKStQvDJdZCVEpqY30bfJ7NzrU=; b=rLCIBOAeybzTrl1J+1D+D4+1VmFk28XIqWWTXTHyUx5M0GDIwr48KlaQUz2HBWZCghxOMi IUI1msoDB9MjyO8opdUCRiZ3sULeTlJzUkN3Ik1yvLexI771wBfDwaRto1ctyHEdOd10Pi 8b/vzTZWmRCJODQjfRGiRBU+2Fvc5a+TbS5E66Oo7QmGmuSVjRvzhFPrcdyne2hFzHjKBz Q3H2ydIsE1FbOtIKH6ZtD/10dYpdOWBE13qWJyhb8uVLws5XC27vNGccaT+0hDfUNej0ix LGvNjK9kP2PhTFXEX0Dcr9nCIXZQhW6BP7lk0UjWhEVnAX4kn5/O/iqCSoc/0A== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:46 +0100 Subject: [PATCH 11/18] bsp-manual/bsp.rst: remove obsolete layer.conf references MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-11-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=5799; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=QgjZizVcEvLUOClgMs+sEiPysbOny3Kxgj4wZwCs9Hg=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFuhISWUsDzmz7aVXI0Th3WmMb5J82d3MmeA J9YR8GjRniJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbgAKCRDRgEFAKaOo NttdEACFXqPrL2Iz+HZoCjSUhLY1Ckt4t9YRrmTP8u8XesvSnIgMEPf2C28oA/cqLo3lvyllRBl uT74HW8S60oNu4+IF4bP9Tl1TscxAgTNqZHtwHKWIks15qduopIt8dedpdo9P9RAxr3hjk6WMgK QPnRSHzk+/3GaYHWHeBH7H9phsCeXpqqoQ2CtYSVXDVUaITgGlGK0k0OPy/x+TsNc/zOlUX+zpE A29tAtEwQ0q+5Cy5iRmIihtFhhIePckEYh22ohzv79i4pSquoex09lYXKBeR/xOOydmH0exujuC GZCQAe5+DXTOPLi40ogFf+QcVK9gxKxcjXZXdKSbDnzLQHZbAcTx2dUUE5zOXIfEV8CvfVbGNYs o41UK6V6v+mvUWv8zGUx7//vwf11wYqPkmbjudTSboMr5dyRlHtuZ7Y43+jI4JQ7uyO0YHp0+E3 tDOg7w17WpMb3nUG8ziuncgP5+HZnP4ZHgFsdDwbWGXyJx+wbNVatJEf7VKlfEtRLboTmdQgvhi nhQcx5XmgiYSbexOmbwgOGihti6LxxblnsLqRVK+k/qVHrtBMN/jU+2Tq6Gsk+mdKEn4KhOF9+v MzvD4y6vswizFSmWrrIO7KQD7K5VBLEKmp+CWVxPUmIHuzJGtJdrSK7hCmYniK5zZT4ZY775ojv Xle6Heli0US/ZzA== 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:56:23 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10898 This verbose document contained multiple references to the now-obsolete layer.conf format. Drop these references and replace by a link to the reference manual detailing this file. Signed-off-by: Antonin Godard --- documentation/bsp-manual/bsp.rst | 88 +++------------------------------------- 1 file changed, 6 insertions(+), 82 deletions(-) diff --git a/documentation/bsp-manual/bsp.rst b/documentation/bsp-manual/bsp.rst index 9d9e19f3d..372f6ea1a 100644 --- a/documentation/bsp-manual/bsp.rst +++ b/documentation/bsp-manual/bsp.rst @@ -95,11 +95,9 @@ layer and from it build an image. Here is an example:: .. note:: - Ordering and :term:`BBFILE_PRIORITY` for the layers listed in :term:`BBLAYERS` - matter. For example, if multiple layers define a machine configuration, the - OpenEmbedded build system uses the last layer searched given similar layer - priorities. The build system works from the top-down through the layers - listed in :term:`BBLAYERS`. + Multiple layers may provide the same machine :term:`configuration file`. See + the :ref:`bitbake-user-manual/bitbake-user-manual-execution:Parsing Order And + Priorities` section for more information on how one is selected. Some BSPs require or depend on additional layers beyond the BSP's root layer in order to be functional. In this case, you need to specify these @@ -526,46 +524,10 @@ You can find this file in the BSP Layer at:: meta-bsp_root_name/conf/layer.conf -The ``conf/layer.conf`` file identifies the file structure as a layer, +The :ref:`structure-conf-layer.conf` file identifies the file structure as a layer, identifies the contents of the layer, and contains information about how -the build system should use it. Generally, a standard boilerplate file -such as the following works. In the following example, you would replace -"bsp" with the actual name of the BSP (i.e. "bsp_root_name" from the example -template). :: - - # We have a conf and classes directory, add to BBPATH - BBPATH .= ":${LAYERDIR}" - - # We have a recipes directory containing .bb and .bbappend files, add to BBFILES - BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ - ${LAYERDIR}/recipes-*/*/*.bbappend" - - BBFILE_COLLECTIONS += "bsp" - BBFILE_PATTERN_bsp = "^${LAYERDIR}/" - BBFILE_PRIORITY_bsp = "6" - LAYERDEPENDS_bsp = "intel" - -To illustrate the string substitutions, here are the corresponding -statements from the Raspberry Pi ``conf/layer.conf`` file:: - - # We have a conf and classes directory, append to BBPATH - BBPATH .= ":${LAYERDIR}" - - # We have a recipes directory containing .bb and .bbappend files, add to BBFILES - BBFILES += "${LAYERDIR}/recipes*/*/*.bb \ - ${LAYERDIR}/recipes*/*/*.bbappend" - - BBFILE_COLLECTIONS += "raspberrypi" - BBFILE_PATTERN_raspberrypi := "^${LAYERDIR}/" - BBFILE_PRIORITY_raspberrypi = "9" - - # Additional license directories. - LICENSE_PATH += "${LAYERDIR}/files/custom-licenses" - # ... and so on for the rest of the file ... - -This file simply makes :term:`BitBake` aware of the recipes and configuration -directories. The file must exist so that the OpenEmbedded build system can -recognize the BSP. +the build system should use it. See the :doc:`/ref-manual/layers` section for +more information. Hardware Configuration Options ------------------------------ @@ -1156,16 +1118,6 @@ Use these steps to create a BSP layer: ":ref:`dev-manual/layers:Creating Your Own Layer`" section in the Yocto Project Development Tasks Manual. -- *Create a Layer Configuration File:* Every layer needs a layer - configuration file. This configuration file establishes locations for - the layer's recipes, priorities for the layer, and so forth. You can - find examples of ``layer.conf`` files in the Yocto Project - :yocto_git:`Source Repositories <>`. To get examples of what you need - in your configuration file, locate a layer (e.g. "meta-ti") and - examine the - :yocto_git:`layer.conf ` - file. - - *Create a Machine Configuration File:* Create a ``conf/machine/bsp_root_name.conf`` file. See :yocto_git:`meta-yocto-bsp/conf/machine ` @@ -1189,34 +1141,6 @@ Project reference BSP for Beaglebone, which resides in the :yocto_git:`meta-yocto-bsp ` layer. -BSP Layer Configuration Example -------------------------------- - -The layer's ``conf`` directory contains the ``layer.conf`` configuration -file. In this example, the ``conf/layer.conf`` file is the following:: - - # We have a conf and classes directory, add to BBPATH - BBPATH .= ":${LAYERDIR}" - - # We have a recipes directory containing .bb and .bbappend files, add to BBFILES - BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ - ${LAYERDIR}/recipes-*/*/*.bbappend" - - BBFILE_COLLECTIONS += "yoctobsp" - BBFILE_PATTERN_yoctobsp = "^${LAYERDIR}/" - BBFILE_PRIORITY_yoctobsp = "5" - LAYERVERSION_yoctobsp = "4" - LAYERSERIES_COMPAT_yoctobsp = "&DISTRO_NAME_NO_CAP;" - -The variables used in this file configure the layer. A good way to learn about layer -configuration files is to examine various files for BSP from the -:yocto_git:`Source Repositories <>`. - -For a detailed description of this particular layer configuration file, -see ":ref:`step 3 `" -in the discussion that describes how to create layers in the Yocto -Project Development Tasks Manual. - BSP Machine Configuration Example --------------------------------- From patchwork Wed Dec 2 14:55:47 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107020 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37913.1796223374663567053 for ; Wed, 02 Dec 2026 06:56:14 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=QkmazrWg; 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 02BE91A18E1 for ; Wed, 2 Dec 2026 14:56:13 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id C3E116075F for ; Wed, 2 Dec 2026 14:56:12 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 7E1C411EA1BE1; Wed, 02 Dec 2026 15:56:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223371; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=YMLRzjnaftdxvi/OELjC+HBohssWu7mC/nfaZIsbz3U=; b=QkmazrWgOmlnTPqY4RAr+MeJU8474xPdy1Y5Z5fj/y1iq39CpGBN+KwVZ+V/Py29KFgPex vg4eGNLOXlosCYsqQYUbTC90c+MG34XHa8Y9ZnAT5jPsy71PWhuVLpUgF0zQzwyi/4cwq3 ZbktPxjkLVP3cH2twowN2egNwZvytlHUwLLNpzC47vqYxVk9BOijR1Icpv+1FiAOn/6EiU 80lk51VTCQqEt2pCYNa2UbLA1Qd3O6gcbGlvA3BtQbNZSbaK9YjKZDOWxK/vJ9gzW3RCAW qeYieWUWU+WAXuIzr4wZ9qXjizWbicsTOZt+doXgMIPtX3hLNHrgrhUmamIw1A== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:47 +0100 Subject: [PATCH 12/18] kernel-dev/common.rst: remove obsolete layer.conf references MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-12-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=3054; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=hsksgppWUzS7bgXkaXZyxOdLRDeEBW2n6xFen6RhqUE=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFua+wRJ9IeFW02H2S2XsjmJg8TMrXV7n/5r 4YLMtCL14CJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbgAKCRDRgEFAKaOo NqW8D/4+3tyMh8T/5kUqedmgvu3rMjovN+F+as9rdUHz/iDdoTzgIN/GgNuRQF55RzUvP1Ijj3j 0/2bBn4baGle11d8WWhlINbRjs7pB02FROo2xEjv3eE/2acUPxHjqREU99Vs9RV5VIsbxupH5Iw JEtxyewxI3epN/6gWxU64cUXJwTrzjKd1/Smf7tWeDqvefQI0OJ0xm8vu4p+qr7i/F94dRefkRm UhacL96Ifd5NDw5jZ6zsd2D9LUNLEkxHPUoo6RuIeOuBGGJ1KKVXLvgZijVYPPA8/8TAglPffTV x6ZnBUs0G6QsalOW3NiKQ2DAnrcLKLfuxws1Veq8LsvZueWmj2a1dMp0RPq3uSsq5rjte77f07H 4BDWYhztNRA36mlqjSr5oM34AIwjAlV4/TUvmYCxu03jXyWnpPTgsZbD1x1uIGD6XgQ52KnJTPp NuCsijMauKBJrCsov/xPc/xHJRo7hOLYyU2nNj+iZIE8Ok6393zMPyjfhFHALzSk7j+2ZbZPfCi yPMvNW/PDr6tXDO3Jg2SV9RxbSg41v5cBhyL7osajZF+rXeKxfj0/pwfPlWIqw04o98j6HaFUcv 8ejJop4Z2CxAHLjt4IqaBU9DSJ8Nu5fGtlLaZKUc6xujVbcwEQu6DX9hrKBAX3ViIn1h2iW9s3c +kSsGTGWnxlzpKA== 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:56:23 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10899 Simplify the kernel-dev/common section where the user creates a layer to reference to the existing docs rather than re-explaining how to create a layer again. This removes the obsolete layer.conf variables too. Signed-off-by: Antonin Godard --- documentation/kernel-dev/common.rst | 42 +++++-------------------------------- 1 file changed, 5 insertions(+), 37 deletions(-) diff --git a/documentation/kernel-dev/common.rst b/documentation/kernel-dev/common.rst index c478e64d6..e3a39e023 100644 --- a/documentation/kernel-dev/common.rst +++ b/documentation/kernel-dev/common.rst @@ -255,48 +255,16 @@ you create and prepare your own layer in which to do your work. Your layer contains its own :term:`BitBake` append files (``.bbappend``) and provides a convenient mechanism to create your own recipe files (``.bb``) as well as store and use kernel -patch files. For background information on working with layers, see the -":ref:`dev-manual/layers:understanding and creating layers`" -section in the Yocto Project Development Tasks Manual. - -.. note:: - - The Yocto Project comes with many tools that simplify tasks you need - to perform. One such tool is the ``bitbake-layers create-layer`` - command, which simplifies creating a new layer. See the - ":ref:`dev-manual/layers:Creating Your Own Layer`" - section in the Yocto Project Development Tasks Manual for - information on how to use this script to quick set up a new layer. +patch files. To better understand the layer you create for kernel development, the following section describes how to create a layer without the aid of -tools. These steps assume creation of a layer named ``mylayer`` in your +tools. These steps assume creation of a layer named ``meta-mylayer`` in your home directory: -#. *Create Structure*: Create the layer's structure:: - - $ mkdir -p meta-mylayer/conf meta-mylayer/recipes-kernel/linux/linux-yocto - - The ``conf`` directory holds your configuration files, while the - ``recipes-kernel`` directory holds your append file and eventual - patch files. - -#. *Create the Layer Configuration File*: Move to the - ``meta-mylayer/conf`` directory and create the ``layer.conf`` file as - follows:: - - # We have a conf and classes directory, add to BBPATH - BBPATH .= ":${LAYERDIR}" - - # We have recipes-* directories, add to BBFILES - BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ - ${LAYERDIR}/recipes-*/*/*.bbappend" - - BBFILE_COLLECTIONS += "mylayer" - BBFILE_PATTERN_mylayer = "^${LAYERDIR}/" - BBFILE_PRIORITY_mylayer = "5" - - Notice ``mylayer`` as part of the last three statements. +#. *Create Structure*: Follow the instructions in + :ref:`dev-manual/layers:Creating Your Own Layer` to create the basic + structure for your layer. #. *Create the Kernel Recipe Append File*: Move to the ``meta-mylayer/recipes-kernel/linux`` directory and create the From patchwork Wed Dec 2 14:55:48 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107021 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37914.1796223375000110749 for ; Wed, 02 Dec 2026 06:56:15 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=kqMi9aL7; 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 55D291A18E3 for ; Wed, 2 Dec 2026 14:56:13 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 2A7FB6075F for ; Wed, 2 Dec 2026 14:56:13 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 18DFC11EA1BCF; Wed, 02 Dec 2026 15:56:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223372; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=E3Wnmu2Ov/kof3hdEGxZlDilk8YqHAxUSG1qr3wU3qE=; b=kqMi9aL7wf4FfylRCiAiZKu74Sq/XASxIY8qlV0Z+Ij4zw02dyp2MHydkr2Hf+tSkcYSeS MjFSACu63F3TZpEypNjSkk45fiX8fCt/Axy97DyPU2FMun8sYMVsYz13jtXhpUTqdbM5fw ZCWbFPD/iFpn+3j3hj91leR8esd+y9oBF2GSXGOBnZWdaPGVbRaG7I0YO57+NIut/eZJzX B2WBhZWkHWCQOrIDIBwaLtQyXy2KsOxvNEKJQyucaK8nb8nJzDzghuSLLQ/LP2sH6MIstT V7WAyux7JnevdmpgiPRYLDYWdqi4oyeu7OSyNqvotnFlJ+Ymqpx7SVhL8DDUFw== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:48 +0100 Subject: [PATCH 13/18] docs-wide: rename core/* fragments to oe-core/* MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-13-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=10975; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=DZ8NhJOSfIlDCWE9o9o0ZXwjrEBbrUpMXzXBYqzYGvU=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFu4mrpENg1cpN8ZVOzj2y5PguJ9l9pnkbTW 9a02SJ2mXOJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbgAKCRDRgEFAKaOo Nn79D/4lokDCR/7e2nsuGBFFHaQplvuTbyC6remM59yG4o8EFVVdn4v9sdzsZvAPxgvA6rlN5g1 6KJAP7TpUmwmT7JyTkT9fEqWtTWTRnUdsAT4oQCU2aqhKy4heZVT41I1eDV8FQzRk1GufQd60zf r3pn+mqMlzMi5QbccAROe53uAsD4ns5unXmhk7aqUsPfTtWt0qQXNJaM/SUctCk8sZgCMFPAXmT 7M9dmZYBLBOLsdRl9XDYMFJxU6dkDqYZyZn4sCNO/P8VitYhVb/NyylDvW4D10h7l+n+gmgLLGe wu9pOLxv7ZRW7qjQItEXyigizPSJ6tzSDOuXvQwdlDq5wt/dpcSQlNhhVf+lSR05y2kPY8mQdzQ vCcf1LVZfk6qaWtvZDzfoNhAWmPSniJEeA7E3z0cjkU60uzEuty6RIs7s/BgVFdENXQ2flm7Ldp oUoD7yTvarnx6UHDP/AxIaWYKxtqysgW5IMUKlSUqbpYWJ4OY1imtHV9EQDF3QG0pR6q7ZKu/4v vk5xg7qoM0PYVitdaO+XKfA64zmC3vedGbB5aWsnLbJ3dkeff16ggN0iUfpLQYXmrEz3G2tJSsq EUuqaTQDDFdOZDFIHEL5ka6MKL0wsyCafO252EuRYRjxrZLPliu6TGgtURrsWcq/q2kgqFkHzg/ g+i3bcBP+4kCRXw== 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:56:23 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10900 Rename all the occurrences of core/(*/) to oe-core/$1. This is because upstream layers have been renamed as documented in the 6.2 migration guide. Signed-off-by: Antonin Godard --- documentation/brief-yoctoprojectqs/index.rst | 4 +- documentation/dev-manual/poky-manual-setup.rst | 2 +- documentation/ref-manual/classes.rst | 2 +- documentation/ref-manual/fragments.rst | 60 +++++++++++------------ documentation/security-manual/vulnerabilities.rst | 4 +- 5 files changed, 36 insertions(+), 36 deletions(-) diff --git a/documentation/brief-yoctoprojectqs/index.rst b/documentation/brief-yoctoprojectqs/index.rst index 45c058c76..6d6800afd 100644 --- a/documentation/brief-yoctoprojectqs/index.rst +++ b/documentation/brief-yoctoprojectqs/index.rst @@ -293,7 +293,7 @@ an entire Linux distribution, including the toolchain, from source. .. code-block:: console - $ bitbake-config-build enable-fragment core/yocto/root-login-with-empty-password + $ bitbake-config-build enable-fragment oe-core/yocto/root-login-with-empty-password .. note:: @@ -307,7 +307,7 @@ an entire Linux distribution, including the toolchain, from source. To use such mirrors, enable the :ref:`ref-fragments-core-yocto-sstate-mirror-cdn` fragment:: - $ bitbake-config-build enable-fragment core/yocto/sstate-mirror-cdn + $ bitbake-config-build enable-fragment oe-core/yocto/sstate-mirror-cdn The hash equivalence server needs the websockets python module version 9.1 or later. Debian GNU/Linux 12 (Bookworm) and later, Fedora, CentOS Stream diff --git a/documentation/dev-manual/poky-manual-setup.rst b/documentation/dev-manual/poky-manual-setup.rst index ca8539b6b..74dd46dca 100644 --- a/documentation/dev-manual/poky-manual-setup.rst +++ b/documentation/dev-manual/poky-manual-setup.rst @@ -122,7 +122,7 @@ an entire Linux distribution, including the toolchain, from source. .. code-block:: console - $ bitbake-config-build enable-fragment core/yocto/sstate-mirror-cdn + $ bitbake-config-build enable-fragment oe-core/yocto/sstate-mirror-cdn The hash equivalence server needs the websockets python module version 9.1 or later. Debian GNU/Linux 12 (Bookworm) and later, Fedora, CentOS Stream diff --git a/documentation/ref-manual/classes.rst b/documentation/ref-manual/classes.rst index 7b67ae8cc..42daa6a3c 100644 --- a/documentation/ref-manual/classes.rst +++ b/documentation/ref-manual/classes.rst @@ -2728,7 +2728,7 @@ fragment: .. code-block:: console - $ bitbake-config-build enable-fragment core/yocto/sbom-cve-check + $ bitbake-config-build enable-fragment oe-core/yocto/sbom-cve-check After building an image, ``sbom-cve-check`` will generate one or more reports in the :term:`DEPLOY_DIR_IMAGE` directory depending on the current value of diff --git a/documentation/ref-manual/fragments.rst b/documentation/ref-manual/fragments.rst index c5640b826..8c9367ced 100644 --- a/documentation/ref-manual/fragments.rst +++ b/documentation/ref-manual/fragments.rst @@ -53,7 +53,7 @@ enabled or disabled. The :ref:`ref-bitbake-config-build-show-fragment` command is used to show the location and value of a fragment. For example, running ``bitbake-config-build -show-fragment core/yocto/sstate-mirror-cdn`` will show the content of the +show-fragment oe-core/yocto/sstate-mirror-cdn`` will show the content of the :ref:`ref-fragments-core-yocto-sstate-mirror-cdn` fragment. .. _ref-bitbake-config-build-enable-fragment: @@ -72,7 +72,7 @@ command, you can determine which fragments can be enabled for your build. For example, the following command would enable the :ref:`ref-fragments-core-yocto-sstate-mirror-cdn` fragment:: - $ bitbake-config-build enable-fragment core/yocto/sstate-mirror-cdn + $ bitbake-config-build enable-fragment oe-core/yocto/sstate-mirror-cdn .. note:: @@ -118,7 +118,7 @@ command. The list of enabled fragments can be obtained with For example, the following command disables the :ref:`ref-fragments-core-yocto-sstate-mirror-cdn` fragment:: - $ bitbake-config-build disable-fragment core/yocto/sstate-mirror-cdn + $ bitbake-config-build disable-fragment oe-core/yocto/sstate-mirror-cdn Likewise, :term:`Built-in Fragments ` are disabled the same way. For example, this would disable the ``machine/qemuarm64`` fragment:: @@ -181,10 +181,10 @@ general. .. _ref-fragments-core-yocto-sstate-mirror-cdn: -``core/yocto/sstate-mirror-cdn`` -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +``oe-core/yocto/sstate-mirror-cdn`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The ``core/yocto/sstate-mirror-cdn`` :term:`configuration fragment` can be used +The ``oe-core/yocto/sstate-mirror-cdn`` :term:`configuration fragment` can be used to set up :term:`BB_HASHSERVE_UPSTREAM` and :term:`SSTATE_MIRRORS` to use pre-built :ref:`shared state cache ` artifacts for standard Yocto build configurations. @@ -197,19 +197,19 @@ which will depend on your network configuration. .. _ref-fragments-root-login-with-empty-password: -``core/yocto/root-login-with-empty-password`` -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +``oe-core/yocto/root-login-with-empty-password`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The ``core/yocto/root-login-with-empty-password`` :term:`configuration fragment` +The ``oe-core/yocto/root-login-with-empty-password`` :term:`configuration fragment` can be used to allow to login as the ``root`` user to login without a password on the serial console and over SSH. .. _ref-fragments-core-yocto-sbom-cve-check: -``core/yocto/sbom-cve-check`` -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +``oe-core/yocto/sbom-cve-check`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The ``core/yocto/sbom-cve-check`` :term:`configuration fragment` can be used +The ``oe-core/yocto/sbom-cve-check`` :term:`configuration fragment` can be used to set up the build to use the :ref:`ref-classes-sbom-cve-check` class. This configuration fragment does multiple things: @@ -226,10 +226,10 @@ This configuration fragment does multiple things: .. _ref-fragments-core-yocto-monitor-disk-space: -``core/yocto/monitor-disk-space`` -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +``oe-core/yocto/monitor-disk-space`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The ``core/yocto/monitor-disk-space`` :term:`configuration fragment` can be used +The ``oe-core/yocto/monitor-disk-space`` :term:`configuration fragment` can be used to produce warnings or errors when the disk currently in use during the build is out of space, by setting a sensible value for the :term:`BB_DISKMON_DIRS` variable. See the definition of :term:`BB_DISKMON_DIRS` for more information. @@ -243,28 +243,28 @@ the Yocto Project Test Environment Manual. .. _ref-fragment-core-yocto-autobuilder-autobuilder: -``core/yocto-autobuilder/autobuilder`` -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +``oe-core/yocto-autobuilder/autobuilder`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The ``core/yocto-autobuilder/autobuilder`` fragment defines common variables +The ``oe-core/yocto-autobuilder/autobuilder`` fragment defines common variables used in builds started by the Yocto Project Autobuilder. .. _ref-fragment-core-yocto-autobuilder-autobuilder-resource-constraints: -``core/yocto-autobuilder/autobuilder-resource-constraints`` -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +``oe-core/yocto-autobuilder/autobuilder-resource-constraints`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The ``core/yocto-autobuilder/autobuilder`` fragment defines variables for +The ``oe-core/yocto-autobuilder/autobuilder`` fragment defines variables for limiting the resources used by the Yocto Project Autobuilder during builds. For more details on how to limit resources, see the :doc:`/dev-manual/limiting-resources` section of the Yocto Project Development Tasks Manual. .. _ref-fragment-core-yocto-autobuilder-multilib-mips64-n32: -``core/yocto-autobuilder/multilib-mips64-n32`` -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +``oe-core/yocto-autobuilder/multilib-mips64-n32`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The ``core/yocto-autobuilder/multilib-mips64-n32`` fragment enables +The ``oe-core/yocto-autobuilder/multilib-mips64-n32`` fragment enables tri-architecture :ref:`multilib ` configurations for :wikipedia:`MIPS64 ` machines, which includes ``mips64-n32``, ``mips64``, and @@ -272,20 +272,20 @@ Versions of Library Files into One Image>` configurations for :wikipedia:`MIPS64 .. _ref-fragment-core-yocto-autobuilder-multilib-x86-lib32: -``core/yocto-autobuilder/multilib-x86-lib32`` -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +``oe-core/yocto-autobuilder/multilib-x86-lib32`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The ``core/yocto-autobuilder/multilib-x86-lib32`` fragment enables +The ``oe-core/yocto-autobuilder/multilib-x86-lib32`` fragment enables :ref:`multilib ` configurations for supporting 32-bit libraries on 64-bit :wikipedia:`X86 ` builds. .. _ref-fragment-core-yocto-autobuilder-multilib-x86-lib64: -``core/yocto-autobuilder/multilib-x86-lib64`` -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +``oe-core/yocto-autobuilder/multilib-x86-lib64`` +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -The ``core/yocto-autobuilder/multilib-x86-lib64`` fragment enables +The ``oe-core/yocto-autobuilder/multilib-x86-lib64`` fragment enables :ref:`multilib ` configurations for supporting 64-bit libraries on 32-bit :wikipedia:`X86 ` builds. diff --git a/documentation/security-manual/vulnerabilities.rst b/documentation/security-manual/vulnerabilities.rst index 38fbd2c7e..04c3fcbcf 100644 --- a/documentation/security-manual/vulnerabilities.rst +++ b/documentation/security-manual/vulnerabilities.rst @@ -33,11 +33,11 @@ Directory`: .. code-block:: console - $ bitbake-config-build enable-fragment core/yocto/sbom-cve-check + $ bitbake-config-build enable-fragment oe-core/yocto/sbom-cve-check Or add the following statement to a :term:`configuration file`:: - OE_FRAGMENTS += "core/yocto/sbom-cve-check" + OE_FRAGMENTS += "oe-core/yocto/sbom-cve-check" This will enable the :ref:`ref-classes-sbom-cve-check` class and set the recommended settings to use it. From patchwork Wed Dec 2 14:55:49 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107022 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37915.1796223375732203497 for ; Wed, 02 Dec 2026 06:56:16 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=sU+N3Vi5; 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 5F2EB1A18D2 for ; Wed, 2 Dec 2026 14:56:14 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 2D48B6075F for ; Wed, 2 Dec 2026 14:56:14 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id EF7C311EA1BDF; Wed, 02 Dec 2026 15:56:12 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223373; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=gaNVRg98IDV8kBN9ZhnGtZkBCbrlzNZfBSVdp/xeGCg=; b=sU+N3Vi5jyD0HMci/w2R6NUqHS932/ZTnJAw2IYwWX1gz/E0X4GsIhxlurAP1vIlgl9xe5 Bmmjn/YYLy+n7E0soB3zW/gmW4eHF8FZaV3BhrMD0C1sNnvNPyimi5ZRmDqllpHzLUhOY0 UFl9ojqYPZJjTM3JVbY2Ohi2sOqyprjMycTJDAA5BrsTsYTKHFBQb1tpl9y8nY1P7LmGvk //JYLz++xsFKsHc04pULBJ32dZfhWUcR+gt6dDjm0AHmDiRcb3X8zJQ3oQYaLzQ4Bi/xio AhuUp3VkG3ocQDKnWcs9qBKdW53LvRy1BLzu10GoU3KCRM+CrDXUl/Jo9PwQyw== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:49 +0100 Subject: [PATCH 14/18] dev-manual/creating-fragments.rst: remove obsolete BBFILE_COLLECTIONS reference MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-14-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1087; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=CvLnXbE3Zjh2JiYOi0YkApGOuJ/0XmyT2NVFAMdSoqU=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFvkz18FlheNxudbcxNjIBsuC/cJ+YBxGGbP Dwjgo5a9h2JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbwAKCRDRgEFAKaOo NhN4D/907lfuFqi4nd4/7DWfOiBwpSEgFDdBbqaC4NN9dq39S4DFhP2MZum8zw584lvYTacAwvl X9M+zRJ0qjP2IwkWc6SXxwq1dgyLuu/B6CDt9iI8Tj4blBm5d9YOCxbfvMXu1myX95SVJWDwA4f dhwNX/AizsSKRlErPD1RNXIL3B3aBAAtdT2xqOyST5zjnEdqWICWHHmpWsFFWchAZdk+kg7+EC0 ByDRYClsSjDQG+XQ9HhjiJuSAYejSvcmZNWYsmaDpl6i1YpwvLkJuCgfYY93LJYaAUzgCu0jfSU sFCUEj4TIMYSBePo/ewCMOgFsDK5bP2UOCWNJj7Y1GzrE97uuy2Iqib3e2dTjYBInzTtgb/+YKO A9bzsKaXXVdBx8mBBJhkgSB2t8WWBRS+K4IHPMYBdmX5BXnazeC4ZlBBOto9na+wmM1kSePUCCf aJ5HzyIIR4QEon5eXS6Da+n+sEcup9iVYEDCBWZqOQmCgAXzrMNv6xSzuTGyyrraLPinRIpwEZ5 tt5+ERK7hIjYS6asCr+6l3xClUcW8mtp+M8tx+7X09hqWf5jwdV1eudI1J1k2jbg/hvA8rXnaMV L8YCPM/z6pJHBI+KQSECXu3DizxF8oD5zbLpW256OWScqWljLvoNvcSrc3Hh5db5eod1COxmgYM kDxqpuNM29KAPDA== 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:56:23 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10901 Layer names are now stored in LAYERNAME. Replace and add link to layer.conf definition. Signed-off-by: Antonin Godard --- documentation/dev-manual/creating-fragments.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/documentation/dev-manual/creating-fragments.rst b/documentation/dev-manual/creating-fragments.rst index cd87341e9..45c4a2342 100644 --- a/documentation/dev-manual/creating-fragments.rst +++ b/documentation/dev-manual/creating-fragments.rst @@ -91,8 +91,8 @@ command:: .. note:: The ``meta-custom`` prefix in the above command depends on the name of your - layer. This name is defined by the :term:`BBFILE_COLLECTIONS` variable in - the ``conf/layer.conf`` file of your layer. + layer. This name is defined by the :term:`LAYERNAME` variable in + the :ref:`structure-conf-layer.conf` file of your layer. Standard Configuration fragments can be organized in a more complex way. For example, it's possible to create sub-directories to organize your fragments:: From patchwork Wed Dec 2 14:55:50 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107023 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37916.1796223377061276187 for ; Wed, 02 Dec 2026 06:56:17 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=VHXR7TMi; 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 620F71A18E1 for ; Wed, 2 Dec 2026 14:56:15 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 302B06075F for ; Wed, 2 Dec 2026 14:56:15 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id DED4211EA1BD0; Wed, 02 Dec 2026 15:56:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223374; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=2ETL6QCj1WEwomEeCbHi9dENNpzJdBOerML/dhSt5Ss=; b=VHXR7TMi6bje97p6d8XJzXpT2/Xlkd7CapzXKlS2ry/imE9H4PdXAvtAuYZFRwMAnirn0l wDe93JwIfvl/kf7mGi8c2eNXeTS/r/3UkOFXboy1OFC3N5SiKl4gMsTcdzGZey1+aN1okG bLyaiPhaOd3PeaqDK1KUtzcstukg57H2fipLU5vMuyi38sr67eFGFPHx5jNPD3dk3u1PEW C4ncZvan8MQmRhrgUs9snW1Gp5O+zVBOsz9sB+7umIdY5PRPabxtleFxqJHMg5SwMS+UZC qKKgYVWMPd3k0nhYhW0xqnaY5EzroNOU9QS/zvKJj+1RDg9Rud3tqE3jDTMO/Q== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:50 +0100 Subject: [PATCH 15/18] dev-manual/licenses.rst: refresh obsolete bblayers.conf.sample example MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-15-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=967; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=2EoCObSwgVBMVNLskikUr8e3FVmncbRB2xjgAuEGpvA=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFvx/vNHoCqtJr6t5v/exL9jMYsDWg2RoAYq ZPIgx0UwhWJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbwAKCRDRgEFAKaOo NqgAEACKF0CAqZh5ECLFNYvHQ/WWzh8KUI/6NxhL8cRHMTi/SgjeKJ2oj9ZCx+waNP+t3zLYAps JVZY8Jjc3grYDYY1rcUrfiqEwwodtq5LReldyMFVkifsgNa4bcC/Nu4VkGCoXgaG1P96eoCdcMG sgKkQkrQA8idG2yNKdHCeMeWabtaosI9CJJv1GSiptPzX5sb//pybGNdBI4a0BnvSNITv16U3aw jQIpEmndtPBkgcMpw1isrKvQtwUv9xkHfsYtrlO8pEyKBglwBFnClGK1tV3KNcPPIp/3TTd6yXl /aynI42lc1ZsSExJ6i6Poq7n+Ow9n2l/Ep9W0m4Kv2woIRBWSYquNZOPiZWvQ9z96vAY2T5zIs1 L6pF0ZonVNN2SWWGYDvD7tGd2juz1YMHEsKhO9fZTDYKe+AD7TIii2po1ZXuj+8j1Ktujqzu+ei jWzgoyWodq4kYBHwkY0mrgtAvR5K/diA6mhMCBSmuOiPSm8ACVRzJgpybgLSJQ6hnEc1FoAPT9R tpqdc2nPqDSyhou0GMt/BQIdsHODQxV3Yuqfhsv3EcKEQKmMV/nNvovJXimk3ddA6YevWWxDcRJ ZYkPR2C4VF6IVgOp2HflDh6e9AZTSmK7F0j7fCSeoPUnDWx85D8Xn87zrSkzc4rfkuljFWgL3xj hYFSH6Bx44w9Njg== 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:56:23 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10902 This file is now simpler and only needs to contain the BBLAYERS variable. Signed-off-by: Antonin Godard --- documentation/dev-manual/licenses.rst | 7 ------- 1 file changed, 7 deletions(-) diff --git a/documentation/dev-manual/licenses.rst b/documentation/dev-manual/licenses.rst index 46a5a69dd..e316293b4 100644 --- a/documentation/dev-manual/licenses.rst +++ b/documentation/dev-manual/licenses.rst @@ -474,13 +474,6 @@ the end user utilizes the released build system to build an image, the development organization's layers are included in the :ref:`structure-build-conf-bblayers.conf` file automatically:: - # POKY_BBLAYERS_CONF_VERSION is increased each time build/conf/bblayers.conf - # changes incompatibly - POKY_BBLAYERS_CONF_VERSION = "2" - - BBPATH = "${TOPDIR}" - BBFILES ?= "" - BBLAYERS ?= " \ ##OEROOT##/meta \ ##OEROOT##/../meta-yocto/meta-poky \ From patchwork Wed Dec 2 14:55:51 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107018 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.37513.1796223381683065873 for ; Wed, 02 Dec 2026 06:56:22 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=YRNTBVvF; 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 059BB1A18D2 for ; Wed, 2 Dec 2026 14:56:20 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id D086D6075F for ; Wed, 2 Dec 2026 14:56:19 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E9F7711EA1BCF; Wed, 02 Dec 2026 15:56:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223375; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=9yciLqV1BNIx5CJT7Xlwp0JXb2BX0o+6psg0Zx5EuR4=; b=YRNTBVvFKxH8//+RP5198O6HZhE2+/dcGEH9ZFaocBZM/vLSmBmc1SXv3XER13x84t8UXc H9z/OVD2hbq8m5F15ztMY/siSYbNOsg5mpdns+yXr365+iP839113xWc8GUaVK31CFeOE/ 7SaNrvONwenY5+9vfNA+AotDiVGh2NJJ8JtfFcDRZ6iGykB17KwhJA17f5llpiC4+6MpLQ XUxCUHNyHSwVmnCGmOv8aa5me8gfyevLzLfIoPASoqKtubNCd2OGeX1zSW+oH/ri5tmZu7 mq7ONsRL0H1Vj2Eo1TJ3qQqtrXstXwVKyij036v79DrH2ArWhKq/7sFC47MotA== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:51 +0100 Subject: [PATCH 16/18] dev-manual/new-recipe.rst: remove obsolete BBFILES statement MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-16-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1792; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=jUxDbVR8n3jN2TWCkTBDhV5LG5buqXdD0/l246HYoe4=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFvkKaQI5G/XQOi6o338tL7Qe3kR7vC7lWKI gLzTuS7souJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbwAKCRDRgEFAKaOo NpyvD/9cyrkRbywLWuIgfpynhIzUziWYWbk8aDI5QmkX6rY/qPD7Th331CgXL/gFgzXpi+mCU+6 aHdtpf/LN8aNMR9e+59PfH+1VcUBMPgiVXw5aRevroYTPO2MbOrh7GbKDSX82AhtPFX6Qq8Qj38 pXkgKmhYT6RJ8x/eYedQfMZ7DhljtMpTO89Dcb11/XSl0E9Qa0DJy+pFffxInwb7RcXpmtinfVJ L4cRRmTiyE43dI4TXy1jnsXdoLATfF+Pr0uN3CpfeJFPD0+yC6rFsp8Js4TzqfXiiNNjJxn1l9W YUTbJvW4JjiufE7qyfX1gmc4ieY+IibUxYYMbZsBVqOqKa8IZf1ITwEOZOtl9QDaLk3WdohJiPX J3Rmhe84Bby0QZXz2MNkDweyPC93b8jdR+tFpEC8LJBcW6BxVexSVy9Tt46SZfK/V58vzVscmyw BH5tEWvejfHNGf5xUHhxFqECjniAnhwjNsw6uvYp17F8xlywWjQes+xO1z8uezKxA4ZwlO3EN7J i7J4fTHxPvM8fFIui4HNMIXlTr2/ypi+ZF8LswJ8q2PMURyfzH+S7hmdWTagnAFEHQrGE/zIvXL SCP4Pke/6akgBz2pJijsdwX3AmBtyB1IaZjrkYYOSjKo//55qtPtQiNxVg7vTwUWeTtE9sX2/Sz n4wES/VbGO/HmBg== 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:56:22 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10903 Remove an obsolete BBFILES statement (after the layer configuration format changes) and link to where location is determined in the bitbake user manual. Signed-off-by: Antonin Godard --- documentation/dev-manual/new-recipe.rst | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/documentation/dev-manual/new-recipe.rst b/documentation/dev-manual/new-recipe.rst index a270d82b5..264509587 100644 --- a/documentation/dev-manual/new-recipe.rst +++ b/documentation/dev-manual/new-recipe.rst @@ -166,20 +166,13 @@ name it appropriately. Locating it correctly ensures that the OpenEmbedded build system can find it when you use BitBake to process the recipe. -- *Storing Your Recipe:* The OpenEmbedded build system locates your - recipe through the layer's ``conf/layer.conf`` file and the - :term:`BBFILES` variable. This - variable sets up a path from which the build system can locate - recipes. Here is the typical use:: - - BBFILES += "${LAYERDIR}/recipes-*/*/*.bb \ - ${LAYERDIR}/recipes-*/*/*.bbappend" - - Consequently, you need to be sure you locate your new recipe inside - your layer such that it can be found. +- *Storing Your Recipe:* :term:`BitBake` locates your + recipe through the layer's :ref:`structure-conf-layer.conf` file and the + :term:`BBFILES` variable. You can find more information on how layers are structured in the - ":ref:`dev-manual/layers:understanding and creating layers`" section. + ":ref:`bitbake-user-manual/bitbake-user-manual-execution:Locating and Parsing + Recipes`" section. - *Naming Your Recipe:* When you name your recipe, you need to follow this naming convention:: From patchwork Wed Dec 2 14:55:52 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107024 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37919.1796223386545394741 for ; Wed, 02 Dec 2026 06:56:26 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=Lc4woHg5; 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 D82D11A18D2 for ; Wed, 2 Dec 2026 14:56:24 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id A762F6075F for ; Wed, 2 Dec 2026 14:56:24 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id B0D0511EA1BEA; Wed, 02 Dec 2026 15:56:19 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223380; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=nDZzur/ju+oQuhaBvgTXE6EN6zSwNz5G1Jg83iUKX2U=; b=Lc4woHg5AFc4KQFnmglUN3awU6o/qRBWaVrR0aCGo+2PFH0eLdkOxnaTYnLWzcHOklLQhU sxfThuAL4i2EHo+7by0d0l5BJLSCNHLukstjK5cso0SHCha/8m8+YO96o+GBZtpvBeNQdb L+XoNXdaNrv/nfGxBK4cIxnS7cj2U6glpyMmyNUEnUX8ui/MSJ9JCdS62x+qwCBNBL3W3X ixXs778sPfD8VMvwm+XYhbxiWqFf2JzDwXyG5jqWnMms6aFxwDdhP8xmM/JYHUxTuBEUns vgkQF7U1GjeJrd1kyzPHPfp/xiM3rHnkwpTD+QHN1pCXlCsv+W0o6rdUkU0j4A== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:52 +0100 Subject: [PATCH 17/18] security-manual/vulnerabilities.rst: rename core -> oe-core in JSON snippet MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-17-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=819; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=CkKAMis7zFFd3j8nuRK8nj+SXean07YTiP5lbUi7IAQ=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFvaSTQUQzPT5/AxxlIM/N+PuCAAl0o7x0Hi VVjOAl6kq2JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbwAKCRDRgEFAKaOo NiG9EACzXxdFN6cgWMo70t3J6ZEwFvlPaimvdRwWpft2POg5fb+knySp5jCTilDG7mwVYJpia7d cgrvQZivIUvcUDQdeAGZldVUn084qwtaMWuFRBXHEur/PVesS+PU8DYwh0PtiV4SWV12W/UE5VL DeW8RKJRyvB1G4R3EHbjwViSRoRsPx2ZdLPcz8K/kZRlLXR7tcc1do2AexU252QBvkEAMGc12G1 OOBzdzT/8+pnCsYrwrcNJFceVB4GN+aixaJQ1GiJ2H4Uy0Mklts/Xve/wDKTbHRjZ2s8wzOkzfC SYf1tzHb6r4X967sFmM2UcnqLaMkAsmSqlpvAYogM5vrO2a2sqvD8OLl+dE7X3eEbr1eXpB3j+G H1e2Ner+fCwp/2hUZUHaRyZX30ShHvsQuaXe08IYVbOZtsPdZ3ys7jP+xEQoGPXn1DklQE9iR3z DHsACEZReaGeAdKK7CnljvOereeyMzN2unMI2awzv9UyRcgZey7flZdPQdzPXErv2ytMUfBRlfO AmK6bWOFHCF8q08ikM/f/Z4yuUE6hAoVXmLTec76eEY8uodjMeA3C/IhU1Tqze1ZIZi0DtCgrgn 9tqfwb5jlIGpSFKn47UYXoChvAcHgqwxRSSkbaPUUjs3hjz6Jo2D9e4x97hIE6pe3bepKusqZSV MRQ0CNnCqnm3NYA== 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:56:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10904 The new layer name is "oe-core", update it in the JSON report snippet. Signed-off-by: Antonin Godard --- documentation/security-manual/vulnerabilities.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/documentation/security-manual/vulnerabilities.rst b/documentation/security-manual/vulnerabilities.rst index 04c3fcbcf..e9a14628f 100644 --- a/documentation/security-manual/vulnerabilities.rst +++ b/documentation/security-manual/vulnerabilities.rst @@ -92,7 +92,7 @@ For example, the report for the ``glibc`` package looks like this (simplified): "package": [ { "name": "glibc", - "layer": "core", + "layer": "oe-core", "version": "2.43+git", "products": [ { From patchwork Wed Dec 2 14:55:53 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 107025 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.37924.1796223391988015180 for ; Wed, 02 Dec 2026 06:56:32 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@bootlin.com header.s=dkim header.b=adOmiAVY; 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 4B981C01332 for ; Wed, 2 Dec 2026 14:56:40 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 4C8886075F for ; Wed, 2 Dec 2026 14:56:29 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 784D911EA1BDE; Wed, 02 Dec 2026 15:56:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796223384; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=X7UwxnnCCa5I93wGxZRYuCuSdUO5taZjv2RMU2ocUfY=; b=adOmiAVYggi1Jfb1lrTom/EQwUMMMMqCW1xlH0uEY+0hfiT5QsWcsCXQ1m81/Kr3pj2SK9 kVhjhRo/a/gswaXy9JyOtT1II2OqmFefZc9dDskYf0l4miLUX+LuYCTnKnQ9HyuKWvDbMb wS9GqkWe4tKmN0vCz3YaknuaB/GaqXs3RMVozXsDAPsmMgtM8lRtHtPKA2DdXfP9ACGmK7 kTLVZr8QxgU0BeYrBlCal73rl12jsptSEyrOoBONIpf4RtIRJPN9MjCbNZ/y92H5pRucX0 uK7r3YMBAmDitmDH9gEkvtJk4VbdEQZcz5USM/QEyS3CXiuPXuJmbHd8pnyy/g== From: Antonin Godard Date: Wed, 02 Dec 2026 15:55:53 +0100 Subject: [PATCH 18/18] test-manual/runtime-testing.rst: fix wrong BBPATH statements MIME-Version: 1.0 Message-Id: <20261202-layer-conf-changes-v1-18-da34d4c770c6@bootlin.com> References: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com> To: docs@lists.yoctoproject.org Cc: Thomas Petazzoni , Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=1963; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=cmfPTNDlUDZZJIiJoH/pUKPS3H0FjJ8q3Eo3Jh8r1uU=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrEDFvneRbz3sCjXyPugBeMw+5v+T9Zv1Q2m7M9 6LofG0eGPuJAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAxbwAKCRDRgEFAKaOo Np1aEADCN9VySnl39k2wnIKYRfSOlzx64fwWGVmMNXtbzzO3hDIzb4dIQOKF4kpDYooBZCYHBrZ jv/t9InRAUy6r4jT8Z+j3Qf3LBNQr7e+f2QRYV+sHMG6eNcNFB9JjFg6OcRkVWbaybeSh+Eo2dj kJGb7DLmKtID0WyZmsI0f4JFqY87ZBAnJlCJm9fdzKoRZDt7ZWftLHPG3i1Xgl/Syvs+ICaeT49 duNIOSi5Ci4pgGRPTU4BpXWJCS09C9+MGvqjT3FBXS1MmYa77+ghjuXH9eOU6icnFj20fkaI/kO 4wd63KprTc0kFh1hwUw5YxZp4mvx4UGtHjE7SvfrU/Ye3nZSBUXDdkFB+6/No6bTbkFV2P1txoP V041qFsWeThkImaQyEqI3RSbuipvU214FOB2PPUdczWkLhkxHb03TZSoi4MbniSRTqiDapE2a8M lnt+fnLGcPwpNq5xlMM88nhBpRQnPlEGxrdNLaZVtTnUdR4dz14HVurThMM1uZn7NCi92qBk7hw f8/ckoqw3tJPXk2E3KLphQntJTHRwJoAFajjI6mUYH70gqUHoaTutBjBvaDd6nuGNqVzCjL/ivr smwm+SONqdJS7LuVc5btnL31DiZx7wg6UCaj6dxCHn8cwQO++KJ9OsUi2qxQgHwH6DAXd4LxFvR hr6oa7Ygfrw7WWA== 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:56:33 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10905 The statements used to say the testimage was looking for tests with BBPATH: this is wrong. In testimage.bbclass:get_runtime_paths(), the code iterates directly with BBLAYERS variable. Signed-off-by: Antonin Godard --- documentation/test-manual/runtime-testing.rst | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/documentation/test-manual/runtime-testing.rst b/documentation/test-manual/runtime-testing.rst index 5a7193f01..951017c18 100644 --- a/documentation/test-manual/runtime-testing.rst +++ b/documentation/test-manual/runtime-testing.rst @@ -344,10 +344,10 @@ directly to a Python module. Each test module may contain a number of individual tests. Tests are usually grouped together by the area tested (e.g tests for systemd reside in ``meta/lib/oeqa/runtime/cases/systemd.py``). -You can add tests to any layer provided you place them in the proper -area and you extend :term:`BBPATH` in -the :ref:`structure-build-conf-local.conf` file as normal. Be sure that tests reside in -``layer/lib/oeqa/runtime/cases``. +You can add tests to any layer provided you place them in +``/lib/oeqa/runtime/cases``. The :ref:`ref-classes-testimage` class +iterates through the :term:`BBLAYERS` variable and tries to find this +directory for each layer. .. note:: @@ -449,9 +449,8 @@ Writing New Tests As mentioned previously, all new test files need to be in the proper place for the build system to find them. New tests for additional functionality outside of the core should be added to the layer that adds -the functionality, in ``layer/lib/oeqa/runtime/cases`` (as long as -:term:`BBPATH` is extended in the -layer's ``layer.conf`` file as normal). Just remember the following: +the functionality, in ``layer/lib/oeqa/runtime/cases``. Just remember the +following: - Filenames need to map directly to test (module) names.