summaryrefslogtreecommitdiffstats
path: root/documentation
diff options
context:
space:
mode:
authorBELHADJ SALEM Talel <bhstalel@gmail.com>2023-10-20 10:41:00 +0100
committerSteve Sakoman <steve@sakoman.com>2023-10-25 04:45:51 -1000
commitbf5e50a353932a5621e0fb1fb4ddcfc30537b731 (patch)
treed6f96b0d5f24618950d11fa414b5b83e4bfb64e4 /documentation
parent3fd3ed3b1138a50cba33795bd59ad68d52d3e670 (diff)
downloadpoky-bf5e50a353932a5621e0fb1fb4ddcfc30537b731.tar.gz
ref-manual: variables: add RECIPE_SYSROOT and RECIPE_SYSROOT_NATIVE
(From yocto-docs rev: e4c3fd543cb1b98255dcd3b40819ebcc7ef3a52a) Signed-off-by: Talel BELHAJSALEM <bhstalel@gmail.com> Reviewed-by: Michael Opdenacker <michael.opdenacker@bootlin.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
Diffstat (limited to 'documentation')
-rw-r--r--documentation/ref-manual/variables.rst38
1 files changed, 38 insertions, 0 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 38b13ecf8d..517c35d032 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -6456,6 +6456,39 @@ system and gives an overview of their function and contents.
6456 in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`" 6456 in the ":ref:`ref-manual/devtool-reference:checking on the upgrade status of a recipe`"
6457 section. 6457 section.
6458 6458
6459 :term:`RECIPE_SYSROOT`
6460 This variable points to the directory that holds all files populated from
6461 recipes specified in :term:`DEPENDS`. As the name indicates,
6462 think of this variable as a custom root (``/``) for the recipe that will be
6463 used by the compiler in order to find headers and other files needed to complete
6464 its job.
6465
6466 This variable is related to :term:`STAGING_DIR_HOST` or :term:`STAGING_DIR_TARGET`
6467 according to the type of the recipe and the build target.
6468
6469 To better understand this variable, consider the following examples:
6470
6471 - For ``#include <header.h>``, ``header.h`` should be in ``"${RECIPE_SYSROOT}/usr/include"``
6472
6473 - For ``-lexample``, ``libexample.so`` should be in ``"${RECIPE_SYSROOT}/lib"``
6474 or other library sysroot directories.
6475
6476 The default value is ``"${WORKDIR}/recipe-sysroot"``.
6477 Do not modify it.
6478
6479 :term:`RECIPE_SYSROOT_NATIVE`
6480 This is similar to :term:`RECIPE_SYSROOT` but the populated files are from
6481 ``-native`` recipes. This allows a recipe built for the target machine to
6482 use ``native`` tools.
6483
6484 This variable is related to :term:`STAGING_DIR_NATIVE`.
6485
6486 The default value is ``"${WORKDIR}/recipe-sysroot-native"``.
6487 Do not modify it.
6488
6489 :term:`REPODIR`
6490 See :term:`bitbake:REPODIR` in the BitBake manual.
6491
6459 :term:`REQUIRED_DISTRO_FEATURES` 6492 :term:`REQUIRED_DISTRO_FEATURES`
6460 When inheriting the 6493 When inheriting the
6461 :ref:`features_check <ref-classes-features_check>` 6494 :ref:`features_check <ref-classes-features_check>`
@@ -7690,10 +7723,15 @@ system and gives an overview of their function and contents.
7690 for ``-native`` recipes, as they make use of host headers and 7723 for ``-native`` recipes, as they make use of host headers and
7691 libraries. 7724 libraries.
7692 7725
7726 Check :term:`RECIPE_SYSROOT` and :term:`RECIPE_SYSROOT_NATIVE`.
7727
7693 :term:`STAGING_DIR_NATIVE` 7728 :term:`STAGING_DIR_NATIVE`
7694 Specifies the path to the sysroot directory used when building 7729 Specifies the path to the sysroot directory used when building
7695 components that run on the build host itself. 7730 components that run on the build host itself.
7696 7731
7732 The default value is ``"${RECIPE_SYSROOT_NATIVE}"``,
7733 check :term:`RECIPE_SYSROOT_NATIVE`.
7734
7697 :term:`STAGING_DIR_TARGET` 7735 :term:`STAGING_DIR_TARGET`
7698 Specifies the path to the sysroot used for the system for which the 7736 Specifies the path to the sysroot used for the system for which the
7699 component generates code. For components that do not generate code, 7737 component generates code. For components that do not generate code,