diff options
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 |