From 2083e83455cbf77da57b97cdda393bdb27bbce39 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Mon, 3 Oct 2016 09:08:10 -0700 Subject: ref-manual: Updated the STAGING_DIR_HOST variable description. Fixes [YOCTO #10348] Added a note clarifying that -native recipes are not installed into host paths. (From yocto-docs rev: c0b4265350b558eec296c93f0829c3d687950c52) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/ref-manual/ref-variables.xml | 33 +++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) (limited to 'documentation') diff --git a/documentation/ref-manual/ref-variables.xml b/documentation/ref-manual/ref-variables.xml index 6551ff6b90..753279cb5b 100644 --- a/documentation/ref-manual/ref-variables.xml +++ b/documentation/ref-manual/ref-variables.xml @@ -12696,9 +12696,13 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" Specifies the path to the sysroot directory for the system that the component is built to run on (the system that hosts the component). - This sysroot is the one that the recipe's + For most recipes, this sysroot is the one that the recipe's do_populate_sysroot task copies files into. + Exceptions include -native recipes, + where the do_populate_sysroot task + instead uses + STAGING_DIR_NATIVE. Depending on the type of recipe and the build target, STAGING_DIR_HOST can have the following values: @@ -12718,6 +12722,33 @@ recipes-graphics/xorg-font/font-alias_1.0.3.bb:PR = "${INC_PR}.3" "${STAGING_DIR}/${MULTIMACH_HOST_SYS}". + + -native recipes are not installed + into host paths like such as /usr. + Rather, these recipes are installed into + STAGING_DIR_NATIVE. + When compiling -native recipes, + standard build environment variables such as + CPPFLAGS + and + CFLAGS + are set up so that both host paths and + STAGING_DIR_NATIVE are searched + for libraries and headers using, for example, + GCC's -isystem option. + + This emphasizes that the + STAGING_DIR* variables should be + viewed as input variables by tasks such as + do_configure, + do_compile, + and + do_install. + Having the real system root correspond to + STAGING_DIR_HOST makes conceptual + sense for -native recipes, as + they make use of host headers and libraries. + -- cgit 1.2.3-korg