From 3db33448592f737515289edef6ed25d407fd8039 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 13 Apr 2017 10:18:33 -0700 Subject: ref-manual, dev-manual: Updates to support recipe-specific sysroots Changes covered several areas. Version 2.3 of the YP now supports recipe-specific sysroots and is not limited to machine-specific as was prior releases. Manual changes were as follows: dev-manual: "Sharing Files Between Recipes" - Wordings were changed to support the new functionality. ref-manual: do_prepare_recipe_sysroot task added to the list of tasks described in "Configuration and Compilation". ref-manual: Extensive re-write of the "staging.bbclass" section. ref-manual: Added a section to the build structure for build/tmp/work/tunearch/recipename/version/. This section breaks down the recipe-specific subdirectories used to create (stage) the sysroot. ref-manual: New section (entry) for the do_prepare_recipe_sysroot task in the task chapter. ref-manual: Added a variable glossary description for the SSTATE_SCAN_FILES variable. In addition to these changes, I sprinkled in a liberal amount of cross-referencing for the readers pleasure. (From yocto-docs rev: 3a8ca96861f4c5d3badb91d0cdc5a3df513d4e59) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- .../dev-manual/dev-manual-common-tasks.xml | 34 +++++++++++----------- 1 file changed, 17 insertions(+), 17 deletions(-) (limited to 'documentation/dev-manual') diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index d2bd56dc13..e12fa32516 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml @@ -3193,10 +3193,11 @@ access to the library itself and its associated headers. The way this access is accomplished is by populating sysroot with files. - One sysroot exists per "machine" for which the image is - being built. - In practical terms, this means a sysroot exists for the target - machine, and a sysroot exists for the build host. + Each recipe has two sysroots in its work directory, one for + target files + (recipe-sysroot) and one for files that + are native to the build host + (recipe-sysroot-native). You could find the term "staging" used within the Yocto project regarding files populating sysroot (e.g. the @@ -3214,12 +3215,6 @@ task within the ${D} directory. - - - - A subset of these files, as defined by the - the SYSROOT_DIRS - variable, automatically populates the sysroot. The reason for this limitation is that almost all files that populate the sysroot are cataloged in manifests in order to ensure the files can be removed later when a recipe is either @@ -3228,6 +3223,13 @@ + A subset of the files installed by the + do_install + task are used by the + do_populate_sysroot + task as defined by the the + SYSROOT_DIRS + variable to automatically populate the sysroot. It is possible to modify the list of directories that populate the sysroot. The following example shows how you could add the @@ -3239,13 +3241,11 @@ - For information on variables you can use to help control how - files sysroot is populated, see the - SYSROOT_DIRS, - SYSROOT_DIRS_NATIVE, - and - SYSROOT_DIRS_BLACKLIST - variables. + for a more complete description of the + do_populate_sysroot + task and its associated functions, see the + staging + class. -- cgit v1.2.3-54-g00ecf