From mboxrd@z Thu Jan 1 00:00:00 1970 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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 --------------- -- 2.56.0