From patchwork Wed Dec 2 14:25:11 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Antonin Godard X-Patchwork-Id: 106991 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.36793.1796221533141000828 for ; Wed, 02 Dec 2026 06:25:33 -0800 Authentication-Results: mx.groups.io; dkim=fail reason="dkim: body hash did not verify" header.i=@bootlin.com header.s=dkim header.b=Igtz5lgc; spf=pass (domain: bootlin.com, ip: 185.246.84.56, mailfrom: antonin.godard@bootlin.com) Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id C6E941A18E3 for ; Wed, 2 Dec 2026 14:25:31 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 9BAB16075F; Wed, 2 Dec 2026 14:25:31 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id E866E11EA1B4F; Wed, 02 Dec 2026 15:25:30 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1796221531; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=0gsZQYeZzH1vb7ZehhOrODvVFMlHUH2BrChcWS2k7S0=; b=Igtz5lgcZnrVyX97sdvKc8+JTp9DNkU1pC37kNUP7qXyORkImtAn52ec02oNOvIameqtGx CGazoRF8aDAMcmloYvgAZy0bf2absikgAe8xHZKJy2XyaxQ2+tQ4ewZbcujRA32VoYnxoL f3Rdgbd8yhy6IJ8CuCEnLtu6GabVg/A8nV7V28IN4rsIiATQfadWmTeIMPfdOKbf+OZL4E TZKeG7Ms24+QU0cCxgI0AM5WQBiaDclVwwD01zGuVjyt4BmfDDHO3pLe1D8pijwvwtQ4L4 I+0tpnXaEc9U7r76t328Q0okXzen8J3gRROpGkSBlCJIPP6X9yoW16nn0xYLCw== From: Antonin Godard Date: Wed, 02 Dec 2026 15:25:11 +0100 Subject: [PATCH 8/9] doc/bitbake-user-manual-execution: add a Dynamic Recipes section MIME-Version: 1.0 Message-Id: <20261202-layer-conf-doc-changes-v1-8-266a5f5d51ad@bootlin.com> References: <20261202-layer-conf-doc-changes-v1-0-266a5f5d51ad@bootlin.com> In-Reply-To: <20261202-layer-conf-doc-changes-v1-0-266a5f5d51ad@bootlin.com> To: bitbake-devel@lists.openembedded.org Cc: Thomas Petazzoni , docs@lists.yoctoproject.org, Antonin Godard X-Mailer: b4 0.17-dev X-Developer-Signature: v=1; a=openpgp-sha256; l=2298; i=antonin.godard@bootlin.com; h=from:subject:message-id; bh=wBUtMmfF8sz1L/Gpoqs2OcoMRUyEYHuz6wiDjUTuc80=; b=owEBbQKS/ZANAwAKAdGAQUApo6g2AcsmYgBrECpL4fUDtXMq04mAIJKg/yS5V7jXrz7QznkqW 8irP7cU6K6JAjMEAAEKAB0WIQSGSHJRiN1AG7mg0//RgEFAKaOoNgUCaxAqSwAKCRDRgEFAKaOo NoerEACiRh5adR3W22uTqh1BJMldiq8TbeAqP/2XwQ6dE0F/zvio93O6/6H4N93cgthb7ycXd42 53cSqIV/NOHJC2Kt8qVn2oNoXlR6jzOhppHSI9JUNBE1yJCFkmJH18PMQUQ0TPd/Z4uylYtWZxt BugXeFU1rQYXMo1TgUGerWvATfMZ3nCBfJMF5J6aokxQqj+bpIn9dOrtIMzHQ4IEeLoEIaJj2wl DNWS++yy/qRf2PItQCio3J9/cjl7fXZNWgYmqF9XTg6W3VQPef/MiDT/fbXuTkN17lHFIbgdQay 5J+FbIU/73+qJNSwWYTN7FRav3aphlkHt8slMRnlTvZv0c9oq+hwzooXwKhC3Pbzjk+WeaToKOQ B9Vp3LlyBoKjyZ0nvv+ENk88r30JWdtJiljfw9iXTuVaqLDN1iFsfxFQ5pXtK9LdV6lv/g770yh NtzSX7/OECRqJH7vAhKDL4huvC5DpWnJXS+azmBo3vt+/8mwhQjUxfAqmgj0nroylv12cAco261 63TnQ/sFFcdidFIxnLpJA3HF/HkWX6tIpy/vOnS486FV7MgMXoUszoxLAD7+fDVLrx9F3C1I866 dOf/Cgw3kYLN0vOV9gV3uuFPY8TdgPJOk4MBzaMzrB8EP08bT9+l6hiUjvz4UxwdojS8/F764PY fHugq4o130OBwRg== X-Developer-Key: i=antonin.godard@bootlin.com; a=openpgp; fpr=8648725188DD401BB9A0D3FFD180414029A3A836 X-Last-TLS-Session-Version: TLSv1.3 List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Wed, 02 Dec 2026 14:25:40 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10885 Add a section explaining the "dynamic recipes" concept (named after the dynamic-recipes directory name), how it works and how to organize files in this directory. Signed-off-by: Antonin Godard --- .../bitbake-user-manual-execution.rst | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/doc/bitbake-user-manual/bitbake-user-manual-execution.rst b/doc/bitbake-user-manual/bitbake-user-manual-execution.rst index 1221d8509..7fdf61c23 100644 --- a/doc/bitbake-user-manual/bitbake-user-manual-execution.rst +++ b/doc/bitbake-user-manual/bitbake-user-manual-execution.rst @@ -244,6 +244,43 @@ in the cache and the recipe and class files have not changed, BitBake is able to use the cache. BitBake then reloads the cached information about the recipe instead of reparsing it from scratch. +Dynamic Recipes and Append Files +================================ + +"Dynamic" recipes and bbappends are *always* located in the ``dynamic-recipes/`` +directory of a layer, located at the root of the layer. This directory can be +used to add additional recipes and bbappends that should be parsed *if and only +if* another layer is part of the currently enabled layers (part of :term:`BBLAYERS`). + +.. note:: + + Before BitBake version 2.22, this feature used to be called "dynamic + layers". + +The expected content of ``dynamic-recipes`` is to have one directory named after +the layer name (:term:`LAYERNAME`) for which you need to include dynamic +metadata. + +For example, the following ``example_0.1.bbappend`` file below only applies when +the ``meta-bar`` layer is part of the enabled layers (in :term:`BBLAYERS`): + +.. code-block:: text + + meta-foo/ + ├── conf/ + │   └── layer.conf + └── dynamic-recipes/ +    └── meta-bar/ +        └── example_0.1.bbappend + +The file organization of ``meta-bar/`` is up to the user. BitBake will +recursively try to find recipes or append files in this directory. + +.. note:: + + The ``dynamic-recipes/`` directory cannot contain classes or configuration + files. Its content is limited to recipes or bbappends. + .. _bb-bitbake-providers: Providers