diff options
| author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2022-06-13 17:58:07 +0200 |
|---|---|---|
| committer | Steve Sakoman <steve@sakoman.com> | 2024-11-11 06:19:19 -0800 |
| commit | 04ddd51fcc2e258deaf6254e1652ae1054d7f1ce (patch) | |
| tree | f45e64560c07d234d0bdea5fa57c48630c12224f /documentation/ref-manual | |
| parent | 90642f4326b590543a672edcc849653bd88d5a6c (diff) | |
| download | poky-04ddd51fcc2e258deaf6254e1652ae1054d7f1ce.tar.gz | |
ref-manual: add description for the "sysroot" term
This term is used throughout the manual but is not properly
introduced anywhere.
(From yocto-docs rev: ced1bbb88a8046b1307376cd88ea85110677c9fc)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation/ref-manual')
| -rw-r--r-- | documentation/ref-manual/terms.rst | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/documentation/ref-manual/terms.rst b/documentation/ref-manual/terms.rst index 2b9bccb4a9..2ccfe1c238 100644 --- a/documentation/ref-manual/terms.rst +++ b/documentation/ref-manual/terms.rst | |||
| @@ -483,6 +483,31 @@ universal, the list includes them just in case: | |||
| 483 | and the ":ref:`dev-manual/sbom:creating a software bill of materials`" | 483 | and the ":ref:`dev-manual/sbom:creating a software bill of materials`" |
| 484 | section of the Development Tasks manual. | 484 | section of the Development Tasks manual. |
| 485 | 485 | ||
| 486 | :term:`Sysroot` | ||
| 487 | When cross-compiling, the target file system may be differently laid | ||
| 488 | out and contain different things compared to the host system. The concept | ||
| 489 | of a *sysroot* is directory which looks like the target filesystem and | ||
| 490 | can be used to cross-compile against. | ||
| 491 | |||
| 492 | In the context of cross-compiling toolchains, a *sysroot* | ||
| 493 | typically contains C library and kernel headers, plus the | ||
| 494 | compiled binaries for the C library. A *multilib toolchain* | ||
| 495 | can contain multiple variants of the C library binaries, | ||
| 496 | each compiled for a target instruction set (such as ``armv5``, | ||
| 497 | ``armv7`` and ``armv8``), and possibly optimized for a specific CPU core. | ||
| 498 | |||
| 499 | In the more specific context of the OpenEmbedded build System and | ||
| 500 | of the Yocto Project, each recipe has two sysroots: | ||
| 501 | |||
| 502 | - A *target sysroot* contains all the **target** libraries and headers | ||
| 503 | needed to build the recipe. | ||
| 504 | |||
| 505 | - A *native sysroot* contains all the **host** files and executables | ||
| 506 | needed to build the recipe. | ||
| 507 | |||
| 508 | See the :term:`SYSROOT_* <SYSROOT_DESTDIR>` variables controlling | ||
| 509 | how sysroots are created and stored. | ||
| 510 | |||
| 486 | :term:`Task` | 511 | :term:`Task` |
| 487 | A per-recipe unit of execution for BitBake (e.g. | 512 | A per-recipe unit of execution for BitBake (e.g. |
| 488 | :ref:`ref-tasks-compile`, | 513 | :ref:`ref-tasks-compile`, |
