Skip to contentSkip to conversation

ref-manual/variables.rst: document SSTATE_SKIP_CREATION

PATCH Superseded [email protected] 2 participants 2 messages May 23, 2025

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ref-manual/variables.rst: document SSTATE_SKIP_CREATION

From: Etienne Cordonnier <[email protected]>

---
 documentation/ref-manual/variables.rst | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
documentation/ref-manual/variables.rst +20 -0
index 643a3e7ae8f..dc6dd2f1ba4 100644
@@ -9049,6 +9049,26 @@ system and gives an overview of their function and contents.
 
       For details on the process, see the :ref:`ref-classes-staging` class.
 
+   :term:`SSTATE_SKIP_CREATION`
+      The :term:`SSTATE_SKIP_CREATION` variable can be used to skip the creation of
+      :ref:`shared state <overview-manual/concepts:shared state cache>` tarball files. It makes sense e.g. for image creation tasks as
+      tarring images and keeping them in sstate would consume a lot of
+      disk space.
+
+      In general it is not recommended to use this variable as missing sstate
+      artefacts adversely impact the build, particularly for entries in the
+      middle of dependency chains. The case it can make sense is where the
+      size and time costs of the artefact are similar to just running the
+      tasks. This generally only applies to end artefact output like images.
+
+      The syntax to disable it for one task is:
+
+          SSTATE_SKIP_CREATION:task-image-complete = "1"
+
+      The syntax to disable it for the whole recipe is:
+
+          SSTATE_SKIP_CREATION = "1"
+
    :term:`STAGING_BASE_LIBDIR_NATIVE`
       Specifies the path to the ``/lib`` subdirectory of the sysroot
       directory for the build host.
Signature · 1 line
2.43.0
#1 lore raw
Quoted 12 lines · Etienne Cordonnier via lists.yoctoproject.org

From: Etienne Cordonnier <[email protected]>

---
 documentation/ref-manual/variables.rst | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
documentation/ref-manual/variables.rst +0 -0
index 643a3e7ae8f..dc6dd2f1ba4 100644

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9054

Quoted 6 lines
documentation/ref-manual/variables.rst +3 -0
@@ -9049,6 +9049,26 @@ system and gives an overview of their function and contents.
 
       For details on the process, see the :ref:`ref-classes-staging` class.
 
+   :term:`SSTATE_SKIP_CREATION`
+      The :term:`SSTATE_SKIP_CREATION` variable can be used to skip the creation of
+      :ref:`shared state <overview-manual/concepts:shared state cache>` tarball files. It makes sense e.g. for image creation tasks as

Please wrap the lines to 80 chars when possible.

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9064

Quoted 10 lines
documentation/ref-manual/variables.rst +10 -0
+      tarring images and keeping them in sstate would consume a lot of
+      disk space.
+
+      In general it is not recommended to use this variable as missing sstate
+      artefacts adversely impact the build, particularly for entries in the
+      middle of dependency chains. The case it can make sense is where the
+      size and time costs of the artefact are similar to just running the
+      tasks. This generally only applies to end artefact output like images.
+
+      The syntax to disable it for one task is:

This does not render properly, you need to use two ":"

"""
The syntax to disable it for one task is::
"""

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9066

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+
+          SSTATE_SKIP_CREATION:task-image-complete = "1"

We indent the code blocks with 3 spaces, not 4.

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 9074

Quoted 8 lines
documentation/ref-manual/variables.rst +5 -0
+
+      The syntax to disable it for the whole recipe is:
+
+          SSTATE_SKIP_CREATION = "1"
+
    :term:`STAGING_BASE_LIBDIR_NATIVE`
       Specifies the path to the ``/lib`` subdirectory of the sysroot
       directory for the build host.

Thanks,
Antonin

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com