diff options
author | Scott Rifenbark <srifenbark@gmail.com> | 2016-11-18 14:34:46 -0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-11-23 11:10:35 +0000 |
commit | 479fbee8408d1b4d3829377b040f4f1e6457b418 (patch) | |
tree | 63866758598b2e3347db59687347fccf14731d20 /documentation/dev-manual/dev-manual-common-tasks.xml | |
parent | 8028d253a078f3abeb9b6654a366accc06274e09 (diff) | |
download | poky-479fbee8408d1b4d3829377b040f4f1e6457b418.tar.gz |
ref-manual, dev-manual: Added references to SYSROOT_DIRS
Fixes [YOCTO #10692]
I updated the STAGING_DIR variable description to have a reference
to the SYSROOT_DIRS variable as well as the "Sharing Files
Between Recipes" section of the dev-manual.
I also updated the "Sharing Files Between Recipes" section so
that the role of SYSROOT_DIRS is explained and actually used
in an example to add another directory.
(From yocto-docs rev: 6539fcf632cfa3f076f874535ee9fc7ac291fbce)
Signed-off-by: Scott Rifenbark <srifenbark@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation/dev-manual/dev-manual-common-tasks.xml')
-rw-r--r-- | documentation/dev-manual/dev-manual-common-tasks.xml | 24 |
1 files changed, 20 insertions, 4 deletions
diff --git a/documentation/dev-manual/dev-manual-common-tasks.xml b/documentation/dev-manual/dev-manual-common-tasks.xml index 55a2995519..39ce2a2497 100644 --- a/documentation/dev-manual/dev-manual-common-tasks.xml +++ b/documentation/dev-manual/dev-manual-common-tasks.xml | |||
@@ -2891,9 +2891,9 @@ | |||
2891 | machine, and a sysroot exists for the build host. | 2891 | machine, and a sysroot exists for the build host. |
2892 | <note> | 2892 | <note> |
2893 | You could find the term "staging" used within the Yocto | 2893 | You could find the term "staging" used within the Yocto |
2894 | project regarding files populating sysroot. | 2894 | project regarding files populating sysroot (e.g. the |
2895 | The term "staging" was used for previous releases of | 2895 | <ulink url='&YOCTO_DOCS_REF_URL;#var-STAGING_DIR'><filename>STAGING_DIR</filename></ulink> |
2896 | the Yocto Project. | 2896 | variable). |
2897 | </note> | 2897 | </note> |
2898 | </para> | 2898 | </para> |
2899 | 2899 | ||
@@ -2906,7 +2906,12 @@ | |||
2906 | task within the | 2906 | task within the |
2907 | <filename>${</filename><ulink url='&YOCTO_DOCS_REF_URL;#var-D'><filename>D</filename></ulink><filename>}</filename> | 2907 | <filename>${</filename><ulink url='&YOCTO_DOCS_REF_URL;#var-D'><filename>D</filename></ulink><filename>}</filename> |
2908 | directory. | 2908 | directory. |
2909 | A subset of these files automatically populates the sysroot. | 2909 | </para> |
2910 | |||
2911 | <para> | ||
2912 | A subset of these files, as defined by the | ||
2913 | the <ulink url='&YOCTO_DOCS_REF_URL;#var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></ulink> | ||
2914 | variable, automatically populates the sysroot. | ||
2910 | The reason for this limitation is that almost all files that | 2915 | The reason for this limitation is that almost all files that |
2911 | populate the sysroot are cataloged in manifests in order to | 2916 | populate the sysroot are cataloged in manifests in order to |
2912 | ensure the files can be removed later when a recipe is either | 2917 | ensure the files can be removed later when a recipe is either |
@@ -2915,6 +2920,17 @@ | |||
2915 | </para> | 2920 | </para> |
2916 | 2921 | ||
2917 | <para> | 2922 | <para> |
2923 | It is possible to modify the list of directories that populate | ||
2924 | the sysroot. | ||
2925 | The following example shows how you could add the | ||
2926 | <filename>/opt</filename> directory to the list of | ||
2927 | directories: | ||
2928 | <literallayout class='monospaced'> | ||
2929 | SYSROOT_DIRS += "/opt" | ||
2930 | </literallayout> | ||
2931 | </para> | ||
2932 | |||
2933 | <para> | ||
2918 | For information on variables you can use to help control how | 2934 | For information on variables you can use to help control how |
2919 | files sysroot is populated, see the | 2935 | files sysroot is populated, see the |
2920 | <ulink url='&YOCTO_DOCS_REF_URL;#var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></ulink>, | 2936 | <ulink url='&YOCTO_DOCS_REF_URL;#var-SYSROOT_DIRS'><filename>SYSROOT_DIRS</filename></ulink>, |