Skip to contentSkip to conversation

ref-manual: add description for the "sysroot" term

PATCH Michael Opdenacker 1 participant 1 message Jun 13, 2022 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 36 lines · Michael Opdenacker via lists.yoctoproject.org

From: Michael Opdenacker <[email protected]>

This term is used throughout the manual but is not properly introduced anywhere.

---
  documentation/ref-manual/terms.rst | 25 +++++++++++++++++++++++++
  1 file changed, 25 insertions(+)
documentation/ref-manual/terms.rst +18 -0
index cba514c345..76f3fb0d08 100644
@@ -383,6 +383,31 @@ universal, the list includes them just in case:
       ":ref:`overview-manual/development-environment:repositories, tags, and branches`"
       section in the Yocto Project Overview and Concepts Manual.
 
+   :term:`Sysroot`
+
+      A directory considered as the root directory for locating
+      header and library files needed to generate binaries for a target
+      processor architecture.
+
+      In the context of cross-compiling toolchains, a *sysroot*
+      typically contains C library and kernel headers, plus the
+      compiled binaries for the C library. A *multilib toolchain*
+      can contain multiple variants of the C library binaries,
+      each compiled for a target instruction set (such as ``armv5``,
+      ``armv7`` and ``armv8``), and possibly optimized for a specific CPU core.
+
+      In the more specific context of the OpenEmbedded build System and
+      of the Yocto Project, each recipe has two *sysroots*:
+
+      -  A *target sysroot* contains all the **target** libraries and headers
+         needed to build the recipe.

documentation/ref-manual/terms.rst universal, the list includes them just in case: · line 413

Quoted 10 lines
documentation/ref-manual/terms.rst +7 -0
+
+      -  A *native sysroot* contains all the **host** files and executables
+         needed to build the recipe.
+
+      See the :term:`SYSROOT_* <SYSROOT_DESTDIR>` variables controlling
+      how sysroots are created and stored.
+
     :term:`Task`
        A per-recipe unit of execution for BitBake (e.g.
        :ref:`ref-tasks-compile`,

Note that this is my own understanding of what a sysroot is. Your reviews and corrections are most welcome here. Once the term is added to the manual, I will add references to it where needed.
Thanks in advance
Michael.

Signature · 3 lines
Michael Opdenacker, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com