Skip to contentSkip to conversation

ref-manual/variables.rst: document SSTATE_SKIP_CREATION

PATCH Superseded [email protected] 3 participants 4 messages May 20, 2025 – May 23, 2025

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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

From: Etienne Cordonnier <[email protected]>

---
 documentation/ref-manual/variables.rst | 6 ++++++
 1 file changed, 6 insertions(+)
documentation/ref-manual/variables.rst +6 -0
index 643a3e7ae..7d8e257b9 100644
@@ -9049,6 +9049,12 @@ 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`
+      SSTATE_SKIP_CREATION variable will be used to skip creation of
+      sstate 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.
+
    :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

Hi,

Some suggestions and formatting related suggestions below.

Quoted 12 lines · Etienne Cordonnier via lists.yoctoproject.org

From: Etienne Cordonnier <[email protected]>

---
 documentation/ref-manual/variables.rst | 6 ++++++
 1 file changed, 6 insertions(+)
documentation/ref-manual/variables.rst +0 -0
index 643a3e7ae..7d8e257b9 100644

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

Quoted 5 lines
documentation/ref-manual/variables.rst +2 -0
@@ -9049,6 +9049,12 @@ 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`
+      SSTATE_SKIP_CREATION variable will be used to skip creation of

s/SSTATE_SKIP_CREATION/The :term:SSTATE_SKIP_CREATION variable/ s/will be/can be/
s/to skip creation/to skip the creation/

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

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      sstate tarball files. It makes sense e.g. for image creation tasks as

s/sstate/:ref:shared state <overview-manual/concepts:shared state cache>/

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

Quoted 2 lines
documentation/ref-manual/variables.rst +2 -0
+      tarring images and keeping them in sstate would consume a lot of
+      disk space.

An example would be nice, such as:

SSTATE_SKIP_CREATION:task-image-complete = "1"

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

Quoted 3 lines
documentation/ref-manual/variables.rst +0 -0
    :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
#2 lore raw
Quoted 29 lines · Antonin Godard via lists.yoctoproject.org

Hi,

Some suggestions and formatting related suggestions below.

Quoted 12 lines · Etienne Cordonnier via lists.yoctoproject.org

From: Etienne Cordonnier <[email protected]>

---
 documentation/ref-manual/variables.rst | 6 ++++++

 1 file changed, 6 insertions(+)
documentation/ref-manual/variables.rst +0 -0
index 643a3e7ae..7d8e257b9 100644
@@ -9049,6 +9049,12 @@ system and gives an overview of their function and contents.
Quoted 5 lines


       For details on the process, see the :ref:ref-classes-staging class.
+   :term:SSTATE_SKIP_CREATION
+      SSTATE_SKIP_CREATION variable will be used to skip creation of

s/SSTATE_SKIP_CREATION/The :term:SSTATE_SKIP_CREATION variable/ s/will be/can be/
s/to skip creation/to skip the creation/

Quoted 1 line

+      sstate tarball files. It makes sense e.g. for image creation tasks as

Quoted 12 lines

s/sstate/:ref:shared state <overview-manual/concepts:shared state cache>/

Quoted 2 lines

+      tarring images and keeping them in sstate would consume a lot of +      disk space.

An example would be nice, such as:

   SSTATE_SKIP_CREATION:task-image-complete = "1"

Quoted 3 lines

    :term:STAGING_BASE_LIBDIR_NATIVE
       Specifies the path to the ``/lib`` subdirectory of the sysroot directory for the build host.

I've really not wanted this one documented in the past as I've not wanted people using it. The reason is the implications of it. I see the use has grown in OE-Core to multiple classes now :(.

If we do add a doc, I'd suggest adding something along the lines of:

"""
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. """

Cheers,

Richard

#3 lore raw

Hi Richard,
I'm using it to avoid some recipes from a buggy bsp layer (which can't build from a pre-populated sstate-cache) populating my sstate-cache and breaking builds down the line. I understand the proper fix is to fix the recipes to work with sstate-cache, but for various reasons (e.g. no control over a third-party bsp layer) it is not always possible.

Étienne

Quoted 68 lines · Richard Purdie
Quoted 5 lines · Antonin Godard via lists.yoctoproject.org

Hi,

Some suggestions and formatting related suggestions below.

On Tue May 20, 2025 at 2:39 PM CEST, Etienne Cordonnier via

Quoted 8 lines · lists.yoctoproject.org

Review

Quoted 8 lines

From: Etienne Cordonnier <[email protected]>

---
 documentation/ref-manual/variables.rst | 6 ++++++
 1 file changed, 6 insertions(+)
(quoted diff) +0 -0

b/documentation/ref-manual/variables.rst

Quoted 4 lines

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

Quoted 4 lines

index 643a3e7ae..7d8e257b9 100644

documentation/ref-manual/variables.rst +0 -0
@@ -9049,6 +9049,12 @@ system and gives an overview of their function

and contents.

Quoted 2 lines

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

Quoted 2 lines
documentation/ref-manual/variables.rst +0 -0
       For details on the process, see the :ref:`ref-classes-staging`

class.

Quoted 9 lines

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

Quoted 3 lines
documentation/ref-manual/variables.rst +2 -0
+   :term:`SSTATE_SKIP_CREATION`
+      SSTATE_SKIP_CREATION variable will be used to skip creation of

s/SSTATE_SKIP_CREATION/The :term:SSTATE_SKIP_CREATION variable/ s/will be/can be/
s/to skip creation/to skip the creation/

Quoted 1 line
documentation/ref-manual/variables.rst +1 -0
+      sstate tarball files. It makes sense e.g. for image creation

tasks as

Quoted 2 lines

s/sstate/:ref:`shared state <overview-manual/concepts:shared state

cache>`/

Quoted 11 lines

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

Quoted 3 lines
documentation/ref-manual/variables.rst +2 -0
+      tarring images and keeping them in sstate would consume a lot of
+      disk space.

An example would be nice, such as:

SSTATE_SKIP_CREATION:task-image-complete = "1"

Quoted 3 lines
documentation/ref-manual/variables.rst +0 -0
    :term:`STAGING_BASE_LIBDIR_NATIVE`
       Specifies the path to the ``/lib`` subdirectory of the sysroot
       directory for the build host.

I've really not wanted this one documented in the past as I've not wanted people using it. The reason is the implications of it. I see the use has grown in OE-Core to multiple classes now :(.

If we do add a doc, I'd suggest adding something along the lines of:

"""
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. """

Cheers,

Richard