@@ -26,7 +26,9 @@ A BSP consists of a file structure inside a base directory.
Collectively, you can think of the base directory, its file structure,
and the contents as a BSP layer. Although not a strict requirement, BSP
layers in the Yocto Project use the following well-established naming
-convention::
+convention:
+
+.. code-block:: text
meta-bsp_root_name
@@ -58,7 +60,9 @@ Each repository is a BSP layer supported by the Yocto Project (e.g.
``meta-raspberrypi`` and ``meta-intel``). Each of these layers is a
repository unto itself and clicking on the layer name displays two URLs
from which you can clone the layer's repository to your local system.
-Here is an example that clones the Raspberry Pi BSP layer::
+Here is an example that clones the Raspberry Pi BSP layer:
+
+.. code-block:: console
$ git clone https://git.yoctoproject.org/meta-raspberrypi
@@ -175,7 +179,9 @@ section.
#. *Navigate to Your Source Directory:* Typically, you set up the
``meta-intel`` Git repository next to the other layers in your build.
- #. *Clone the Layer:* ::
+ #. *Clone the Layer:*
+
+ .. code-block:: console
$ git clone https://git.yoctoproject.org/meta-intel.git
Cloning into 'meta-intel'...
@@ -188,7 +194,9 @@ section.
#. *Check Out the Proper Branch:* The branch you check out for
``meta-intel`` must match the same branch you are using for the
- Yocto Project release (e.g. ``&DISTRO_NAME_NO_CAP;``)::
+ Yocto Project release (e.g. ``&DISTRO_NAME_NO_CAP;``):
+
+ .. code-block:: console
$ cd meta-intel
$ git checkout -b &DISTRO_NAME_NO_CAP; remotes/origin/&DISTRO_NAME_NO_CAP;
@@ -208,7 +216,9 @@ section.
The process is identical to the process used for the ``meta-intel``
layer except for the layer's name. For example, if you determine that
your hardware most closely matches the ``meta-raspberrypi``, clone
- that layer::
+ that layer:
+
+ .. code-block:: console
$ git clone https://git.yoctoproject.org/meta-raspberrypi
Cloning into 'meta-raspberrypi'...
@@ -222,7 +232,9 @@ section.
#. *Initialize the Build Environment:* While in the :term:`Source Directory`,
run the :ref:`structure-core-script` environment setup
script located in :term:`OpenEmbedded-Core (OE-Core)` to define the OpenEmbedded
- build environment on your build host. ::
+ build environment on your build host.
+
+ .. code-block:: console
$ source layers/openembedded-core/oe-init-build-env
@@ -269,7 +281,9 @@ Project. For that list of requirements, see the
Below is the typical directory structure for a BSP layer. While this
basic form represents the standard, realize that the actual layout for
-individual BSPs could differ. ::
+individual BSPs could differ.
+
+.. code-block:: text
meta-bsp_root_name/
meta-bsp_root_name/bsp_license_file
@@ -447,7 +461,9 @@ The following sections describe each part of the proposed BSP format.
License Files
-------------
-You can find these files in the BSP Layer at::
+You can find these files in the BSP Layer at:
+
+.. code-block:: text
meta-bsp_root_name/bsp_license_file
@@ -465,7 +481,9 @@ section in the Yocto Project Development Tasks Manual.
README File
-----------
-You can find this file in the BSP Layer at::
+You can find this file in the BSP Layer at:
+
+.. code-block:: text
meta-bsp_root_name/README
@@ -480,7 +498,9 @@ name of the BSP maintainer with his or her contact information.
README.sources File
-------------------
-You can find this file in the BSP Layer at::
+You can find this file in the BSP Layer at:
+
+.. code-block:: text
meta-bsp_root_name/README.sources
@@ -499,7 +519,9 @@ used to generate the images that ship with the BSP.
Pre-built User Binaries
-----------------------
-You can find these files in the BSP Layer at::
+You can find these files in the BSP Layer at:
+
+.. code-block:: text
meta-bsp_root_name/binary/bootable_images
@@ -522,7 +544,9 @@ information on the Metadata.
Layer Configuration File
------------------------
-You can find this file in the BSP Layer at::
+You can find this file in the BSP Layer at:
+
+.. code-block:: text
meta-bsp_root_name/conf/layer.conf
@@ -570,7 +594,9 @@ recognize the BSP.
Hardware Configuration Options
------------------------------
-You can find these files in the BSP Layer at::
+You can find these files in the BSP Layer at:
+
+.. code-block:: text
meta-bsp_root_name/conf/machine/*.conf
@@ -608,7 +634,9 @@ configuration file. For example, the Raspberry Pi BSP
Miscellaneous BSP-Specific Recipe Files
---------------------------------------
-You can find these files in the BSP Layer at::
+You can find these files in the BSP Layer at:
+
+.. code-block:: text
meta-bsp_root_name/recipes-bsp/*
@@ -618,7 +646,9 @@ Raspberry Pi BSP, there is the ``formfactor_%.bbappend`` file, which
is an append file used to augment the recipe that starts the build.
Furthermore, there are machine-specific settings used during the build
that are defined by the ``machconfig`` file further down in the
-directory. Here is the ``machconfig`` file for the Raspberry Pi BSP::
+directory. Here is the ``machconfig`` file for the Raspberry Pi BSP:
+
+.. code-block:: shell
HAVE_TOUCHSCREEN=0
HAVE_KEYBOARD=1
@@ -638,7 +668,9 @@ directory. Here is the ``machconfig`` file for the Raspberry Pi BSP::
Display Support Files
---------------------
-You can find these files in the BSP Layer at::
+You can find these files in the BSP Layer at:
+
+.. code-block:: text
meta-bsp_root_name/recipes-graphics/*
@@ -649,7 +681,9 @@ to support a display are kept here.
Linux Kernel Configuration
--------------------------
-You can find these files in the BSP Layer at::
+You can find these files in the BSP Layer at:
+
+.. code-block:: text
meta-bsp_root_name/recipes-kernel/linux/linux*.bbappend
meta-bsp_root_name/recipes-kernel/linux/*.bb
@@ -693,7 +727,9 @@ in the Yocto Project Linux Kernel Development Manual.
An alternate scenario is when you create your own kernel recipe for the
BSP. A good example of this is the Raspberry Pi BSP. If you examine the
``recipes-kernel/linux`` directory in that layer you see the following
-Raspberry Pi-specific recipes and associated files::
+Raspberry Pi-specific recipes and associated files:
+
+.. code-block:: text
files/
linux-raspberrypi_6.12.bb
@@ -1033,14 +1069,18 @@ also supports several other machines:
directory.
#. Create and place the new ``interfaces`` configuration file in the
- BSP's layer here::
+ BSP's layer here:
+
+ .. code-block:: text
meta-xyz/recipes-core/init-ifupdown/files/xyz-machine-one/interfaces
.. note::
If the ``meta-xyz`` layer did not support multiple machines, you would place
- the interfaces configuration file in the layer here::
+ the interfaces configuration file in the layer here:
+
+ .. code-block:: text
meta-xyz/recipes-core/init-ifupdown/files/interfaces
The manuals are moving to a default of bitbake for code blocks, so a BitBake block needs no language and every other block needs one. This gives the blocks in this manual that are not BitBake their language. AI-Generated: codex/claude-opus 5.5 (xhigh) Signed-off-by: Trevor Woerner <twoerner@gmail.com> --- documentation/bsp-manual/bsp.rst | 80 ++++++++++++++++++++++++-------- 1 file changed, 60 insertions(+), 20 deletions(-)