diff options
author | Michael Opdenacker <michael.opdenacker@bootlin.com> | 2022-06-13 19:00:20 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2022-06-21 20:57:17 +0100 |
commit | c1d1cdcedfa45b9c655437314385ad21b1234c94 (patch) | |
tree | a275200b6de014bd0d078db010755276a26446a3 /documentation | |
parent | f7f4444e36c34d495d86d819916c044bde07f0f9 (diff) | |
download | poky-c1d1cdcedfa45b9c655437314385ad21b1234c94.tar.gz |
ref-manual: document SSTATE_EXCLUDEDEPS_SYSROOT
[YOCTO #14496]
(From yocto-docs rev: b6690011c14ce4bf30571f045152a9d324ad5039)
Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'documentation')
-rw-r--r-- | documentation/ref-manual/variables.rst | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst index 375333e7f0..3a334f4282 100644 --- a/documentation/ref-manual/variables.rst +++ b/documentation/ref-manual/variables.rst | |||
@@ -7218,6 +7218,32 @@ system and gives an overview of their function and contents. | |||
7218 | :term:`SSTATE_DIR` | 7218 | :term:`SSTATE_DIR` |
7219 | The directory for the shared state cache. | 7219 | The directory for the shared state cache. |
7220 | 7220 | ||
7221 | :term:`SSTATE_EXCLUDEDEPS_SYSROOT` | ||
7222 | This variable allows to specify indirect dependencies to exclude | ||
7223 | from sysroots, for example to avoid the situations when a dependency on | ||
7224 | any ``-native`` recipe will pull in all dependencies of that recipe | ||
7225 | in the recipe sysroot. This behaviour might not always be wanted, | ||
7226 | for example when that ``-native`` recipe depends on build tools | ||
7227 | that are not relevant for the current recipe. | ||
7228 | |||
7229 | This way, irrelevant dependencies are ignored, which could have | ||
7230 | prevented the reuse of prebuilt artifacts stored in the Shared | ||
7231 | State Cache. | ||
7232 | |||
7233 | ``SSTATE_EXCLUDEDEPS_SYSROOT`` is evaluated as two regular | ||
7234 | expressions of recipe and dependency to ignore. An example | ||
7235 | is the rule in :oe_git:`meta/conf/layer.conf </meta/conf/layer.conf>`:: | ||
7236 | |||
7237 | # Nothing needs to depend on libc-initial | ||
7238 | # base-passwd/shadow-sysroot don't need their dependencies | ||
7239 | SSTATE_EXCLUDEDEPS_SYSROOT += "\ | ||
7240 | .*->.*-initial.* \ | ||
7241 | .*(base-passwd|shadow-sysroot)->.* \ | ||
7242 | " | ||
7243 | |||
7244 | The ``->`` substring represents the dependency between | ||
7245 | the two regular expressions. | ||
7246 | |||
7221 | :term:`SSTATE_MIRROR_ALLOW_NETWORK` | 7247 | :term:`SSTATE_MIRROR_ALLOW_NETWORK` |
7222 | If set to "1", allows fetches from mirrors that are specified in | 7248 | If set to "1", allows fetches from mirrors that are specified in |
7223 | :term:`SSTATE_MIRRORS` to work even when | 7249 | :term:`SSTATE_MIRRORS` to work even when |