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