From patchwork Tue Dec 1 15:22:35 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Trevor Woerner X-Patchwork-Id: 106814 Received: from mail-oi1-f169.google.com (mail-oi1-f169.google.com [209.85.167.169]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.13560.1796138584398628945 for ; Tue, 01 Dec 2026 07:23:04 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=@gmail.com header.s=20260707 header.b=BWVhp7bf; spf=pass (domain: gmail.com, ip: 209.85.167.169, mailfrom: twoerner@gmail.com) Received: by mail-oi1-f169.google.com with SMTP id 5614622812f47-57297329b3eso5967879b6e.0 for ; Tue, 01 Dec 2026 07:23:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796138583; x=1796743383; darn=lists.yoctoproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to:content-type; bh=rY5wDfoXX+v3gWmsgZqoBryvha1DpFRps38AVDt5hkU=; b=BWVhp7bfKPeUfRu9k/YRzkFEH2kQtGjNpuRxhTDw8kWsA2PKKKcd3qQS8h6kmTdFTF QWP5YhlQjSPFkgVyA3vaCQF20lwDjCGsj8tFGTsrPZgnO9zQsKmplHFHxv5tl94w79bn TRlOCbxgcf2Jw0A2wQYSmy4xD3KffnoYZ2Ne2lzD6X7cR52Js5iOiNS8/lHSEC84oX3p fJ7LvubEuy6lL76++OjZq1tW0cV+gOxx5/n2nAU6GMNIcX63oplwrxys74Jn0OzXl/Oa jDCJmFewrUyFpzVQahk9iBeB6HX1QG4ywUwOS5099jdnli146v4cKvfU0HhYOlVs6Bli rWcQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796138583; x=1796743383; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-gg:x-gm-message-state:from:to :cc:subject:date:message-id:reply-to:content-type; bh=rY5wDfoXX+v3gWmsgZqoBryvha1DpFRps38AVDt5hkU=; b=tpwVflQ53gxPuR3SsQji1Frz0Mjd/09k+LQDJECYOVMoqeLAXtI7Q2nzpAZJbKM3ID HSxpIf+KKBSynSOzwbhERBSq3S/uvkKu5NNZ+gSJo8jkI2gz44QJm8Qv8E2Zzo6CvKcG ZppTriJqCzNG6mVlugl9CyHILkiwak79JiMNcDD6jfJDZaESm2PQl82T/EPDybUoRgjM ECIyX1cUTWekfccUvm2jFKNRK91ep4IHxJAHyE9x3BO02iKarIvIQ16cZxdihDRgRjfe bKJ3ZxTxVS9F76N8XTd3BgEdq1QScwVjhW2RnqVBXdedBSzy0ecSX1t6LbUCYtUHdWxl 6Lkw== X-Gm-Message-State: APuU4Z/MCXsDdeqDkLA/NE8hmuSI5tV+dGrvwQ3BTSNuStLoKcF5x879 j2sXngF8pPqAwle9QnTFLtMlhvzHH5jlVDr4byEX6+RPjdP06wZoRYBNRcwizg== X-Gm-Gg: AZFdTZcmcjQ8aVrbGpkI8X64R1heWpw05JeJvWSlCR4Zh0XBN7+RC2fzThori7r6uxY 1AezEoO2sWyTC2TOd+0I0L7TaKTOxRr8zy6Tsa8TdT1m0TgPaYnY1J2P3gH08OxZowXJqPoUvXl oZY180f6EVaAZDap5kjZ9z9sbAT09RTv03Lca+5NT8b6aZLx43E8VyXuHaYiWxv8XzXOvLpsxTL aPH88CJrwoB40S4/vHCNQ2hEvOOMDT9sDk8rExH6zA3b0QpOExz9e5vfB0YI3cdscL5hsel2j0S u4lMEKEVtKFmS+bt5nH0WC9neJKOoGuG7spl8rLmVy60xtjLCzFRogefYzkzCjaz/KwXNmRe1O+ EgDQbv83imBj4sSg3RVbEkD6dkjVapGF7WDj+zFiDrOzNlKZnaipGDD1ZrjtPkCdYYB6tr8j1jJ d+jEeCiq84NTteSusAfJBKgQPuSpRo4e3epZxYOpmXHwfrZM4ThCcuJpB+Y6PV6hzBkDpmxRmTE VatvB6GUgS8PARFubWOVtJo4j8j8PTJSZFe00RI+WzdmfVHe44C3SqeAYW4MAaLfORuGC6yHcy8 5XmuYbC/eFRz7aLU+WxG+PKjdRYqHIUOc25iLeY9kpedVtD52i+5ebOI39DIz3XCjxOStggtwS1 gUks/dRgDeO+e57ssoswpW0sFCkJN10A= X-Received: by 2002:a05:6808:150b:b0:533:87ee:d131 with SMTP id 5614622812f47-57a0a810de9mr33821552b6e.25.1796138583355; Tue, 01 Dec 2026 07:23:03 -0800 (PST) Return-Path: Received: from localhost.localdomain (pppoe-209-91-167-254.vianet.ca. [209.91.167.254]) by smtp.gmail.com with ESMTPSA id 5614622812f47-57a31929223sm27818249b6e.1.2026.12.01.07.23.02 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 07:23:02 -0800 (PST) From: Trevor Woerner To: docs@lists.yoctoproject.org Subject: [PATCH 02/16] bsp-manual: state the language of the blocks that are not BitBake Date: Tue, 1 Dec 2026 10:22:35 -0500 Message-ID: <20261201152251.2742634-3-twoerner@gmail.com> X-Mailer: git-send-email 2.51.0 In-Reply-To: <20261201152251.2742634-1-twoerner@gmail.com> References: <20261201152251.2742634-1-twoerner@gmail.com> MIME-Version: 1.0 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 ; Tue, 01 Dec 2026 15:23:10 -0000 X-Groupsio-URL: https://lists.yoctoproject.org/g/docs/message/10861 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 --- documentation/bsp-manual/bsp.rst | 80 ++++++++++++++++++++++++-------- 1 file changed, 60 insertions(+), 20 deletions(-) diff --git a/documentation/bsp-manual/bsp.rst b/documentation/bsp-manual/bsp.rst index 9d9e19f3deb1..9a4781b9947d 100644 --- a/documentation/bsp-manual/bsp.rst +++ b/documentation/bsp-manual/bsp.rst @@ -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