Yocto Project Documentation
 help / color / mirror / Atom feed
From: Antonin Godard <antonin.godard@bootlin.com>
To: docs@lists.yoctoproject.org
Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com>,
	 Antonin Godard <antonin.godard@bootlin.com>
Subject: [PATCH 11/18] bsp-manual/bsp.rst: remove obsolete layer.conf references
Date: Wed, 02 Dec 2026 15:55:46 +0100	[thread overview]
Message-ID: <20261202-layer-conf-changes-v1-11-da34d4c770c6@bootlin.com> (raw)
In-Reply-To: <20261202-layer-conf-changes-v1-0-da34d4c770c6@bootlin.com>

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 <antonin.godard@bootlin.com>
---
 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 </meta-ti/tree/meta-ti-bsp/conf/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 </meta-yocto/tree/meta-yocto-bsp/conf/machine>`
@@ -1189,34 +1141,6 @@ Project reference BSP for Beaglebone, which resides in the
 :yocto_git:`meta-yocto-bsp </meta-yocto/tree/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 <dev-manual/layers:creating your own layer>`"
-in the discussion that describes how to create layers in the Yocto
-Project Development Tasks Manual.
-
 BSP Machine Configuration Example
 ---------------------------------
 

-- 
2.56.0


  parent reply	other threads:[~2026-12-02 14:56 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-02 14:55 [PATCH 00/18] docs: refresh after layer configuration format changes Antonin Godard
2026-12-02 14:55 ` [PATCH 01/18] ref-manual/layers.rst: add document Antonin Godard
2026-12-02 14:55 ` [PATCH 02/18] ref-manual/variables.rst: BBFILES: refresh the definition Antonin Godard
2026-12-02 14:55 ` [PATCH 03/18] ref-manual/variables.rst: drop obsolete BBFILE* variables Antonin Godard
2026-12-02 14:55 ` [PATCH 04/18] ref-manual/variables.rst: drop LAYERDIR_RE Antonin Godard
2026-12-02 14:55 ` [PATCH 05/18] ref-manual/variables.rst: link bitbake-specific to the bitbake manual Antonin Godard
2026-12-02 14:55 ` [PATCH 06/18] ref-manual/variables.rst: document LAYER_FRAGMENTS_OPTED_OUT/LAYER_FRAGMENT_RECOMMENDS_ANY Antonin Godard
2026-12-02 14:55 ` [PATCH 07/18] migration-guides/migration-6.2.rst: add section on now layer format Antonin Godard
2026-12-02 14:55 ` [PATCH 08/18] migration-guides/migration-6.2.rst: add a section on the new core layer names Antonin Godard
2026-12-02 14:55 ` [PATCH 09/18] dev-manual/layers.rst: remove a leftover poky repo reference Antonin Godard
2026-12-02 14:55 ` [PATCH 10/18] dev-manual/layers.rst: refresh after layer configuration format changes Antonin Godard
2026-12-02 14:55 ` Antonin Godard [this message]
2026-12-02 14:55 ` [PATCH 12/18] kernel-dev/common.rst: remove obsolete layer.conf references Antonin Godard
2026-12-02 14:55 ` [PATCH 13/18] docs-wide: rename core/* fragments to oe-core/* Antonin Godard
2026-12-02 14:55 ` [PATCH 14/18] dev-manual/creating-fragments.rst: remove obsolete BBFILE_COLLECTIONS reference Antonin Godard
2026-12-02 14:55 ` [PATCH 15/18] dev-manual/licenses.rst: refresh obsolete bblayers.conf.sample example Antonin Godard
2026-12-02 14:55 ` [PATCH 16/18] dev-manual/new-recipe.rst: remove obsolete BBFILES statement Antonin Godard
2026-12-02 14:55 ` [PATCH 17/18] security-manual/vulnerabilities.rst: rename core -> oe-core in JSON snippet Antonin Godard
2026-12-02 14:55 ` [PATCH 18/18] test-manual/runtime-testing.rst: fix wrong BBPATH statements Antonin Godard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202-layer-conf-changes-v1-11-da34d4c770c6@bootlin.com \
    --to=antonin.godard@bootlin.com \
    --cc=docs@lists.yoctoproject.org \
    --cc=thomas.petazzoni@bootlin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox