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.