diff mbox series

[kirkstone] ref-manual: document SSTATE_EXCLUDEDEPS_SYSROOT

Message ID 20230209200123.178966-1-michael.opdenacker@bootlin.com
State New
Headers show
Series [kirkstone] ref-manual: document SSTATE_EXCLUDEDEPS_SYSROOT | expand

Commit Message

Michael Opdenacker Feb. 9, 2023, 8:01 p.m. UTC
From: Michael Opdenacker <michael.opdenacker@bootlin.com>

Backport from master:

Signed-off-by: Michael Opdenacker <michael.opdenacker@bootlin.com>
 documentation/ref-manual/variables.rst | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)
diff mbox series


diff --git a/documentation/ref-manual/variables.rst b/documentation/ref-manual/variables.rst
index 061b1c28d8..968e8d6e05 100644
--- a/documentation/ref-manual/variables.rst
+++ b/documentation/ref-manual/variables.rst
@@ -7335,6 +7335,32 @@  system and gives an overview of their function and contents.
       The directory for the shared state cache.
+      This variable allows to specify indirect dependencies to exclude
+      from sysroots, for example to avoid the situations when a dependency on
+      any ``-native`` recipe will pull in all dependencies of that recipe
+      in the recipe sysroot. This behaviour might not always be wanted,
+      for example when that ``-native`` recipe depends on build tools
+      that are not relevant for the current recipe.
+      This way, irrelevant dependencies are ignored, which could have
+      prevented the reuse of prebuilt artifacts stored in the Shared
+      State Cache.
+      :term:`SSTATE_EXCLUDEDEPS_SYSROOT` is evaluated as two regular
+      expressions of recipe and dependency to ignore. An example
+      is the rule in :oe_git:`meta/conf/layer.conf </openembedded-core/tree/meta/conf/layer.conf>`::
+         # Nothing needs to depend on libc-initial
+         # base-passwd/shadow-sysroot don't need their dependencies
+             .*->.*-initial.* \
+             .*(base-passwd|shadow-sysroot)->.* \
+         "
+      The ``->`` substring represents the dependency between
+      the two regular expressions.
       If set to "1", allows fetches from mirrors that are specified in
       :term:`SSTATE_MIRRORS` to work even when