dev-manual/sbom.rst: reflect that create-spdx is enabled by default
PATCH 1/1 dev-manual/sbom.rst: reflect that create-spdx is enabled by default
Since nanbield (b34032ec "defaultsetup: Inherit create-spdx by default"), the create-spdx class is pulled in by default, not only by poky.
Adapt the text to reflect this and also change INHERIT to INHERIT_DISTRO since this is the more concrete variable to modify for disabling create-spdx.
--- documentation/dev-manual/sbom.rst | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-)
documentation/dev-manual/sbom.rst +4 -11
@@ -24,19 +24,12 @@ users can read in standardized format. :term:`SBOM` information is also critical to performing vulnerability exposure assessments, as all the components used in the Software Supply Chain are listed. -The OpenEmbedded build system doesn't generate such information by default, -though the :term:`Poky` reference distribution has it enabled out of the box. +The OpenEmbedded build system generates such information by default (by +inheriting the :ref:`ref-classes-create-spdx` class in :term:`INHERIT_DISTRO`). -To enable it, inherit the :ref:`ref-classes-create-spdx` class from a -configuration file:: +If needed, it can be disabled from a :term:`configuration file`:: - INHERIT += "create-spdx" - -In the :term:`Poky` reference distribution, :term:`SPDX` generation does -consume some build time resources and thus if needed it can be disabled from a -:term:`configuration file`:: - - INHERIT:remove = "create-spdx" + INHERIT_DISTRO:remove = "create-spdx" Upon building an image, you will then get:
Signature · 1 line
2.47.3
Hi Enrico,
Quoted 4 lines · Enrico Jörns via lists.yoctoproject.org
Since nanbield (
b34032ec"defaultsetup: Inherit create-spdx by default"), the create-spdx class is pulled in by default, not only by poky.
Indeed!
Quoted 14 lines
Adapt the text to reflect this and also change INHERIT to
INHERIT_DISTROsince this is the more concrete variable to modify for disabling create-spdx.Signed-off-by Enrico Jörns <[email protected]>--- documentation/dev-manual/sbom.rst | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-)documentation/dev-manual/sbom.rst +0
-0
documentation/dev-manual/sbom.rst users can read in standardized format. · line 29
Quoted 8 lines
documentation/dev-manual/sbom.rst +2
-2@@ -24,19 +24,12 @@ users can read in standardized format. :term:`SBOM` information is also critical to performing vulnerability exposure assessments, as all the components used in the Software Supply Chain are listed. -The OpenEmbedded build system doesn't generate such information by default, -though the :term:`Poky` reference distribution has it enabled out of the box. +The OpenEmbedded build system generates such information by default (by +inheriting the :ref:`ref-classes-create-spdx` class in :term:`INHERIT_DISTRO`).
s/in/via/ ?
documentation/dev-manual/sbom.rst users can read in standardized format. · line 33
Quoted 13 lines
documentation/dev-manual/sbom.rst +2
-9-To enable it, inherit the :ref:`ref-classes-create-spdx` class from a -configuration file:: +If needed, it can be disabled from a :term:`configuration file`:: - INHERIT += "create-spdx" - -In the :term:`Poky` reference distribution, :term:`SPDX` generation does -consume some build time resources and thus if needed it can be disabled from a -:term:`configuration file`:: - - INHERIT:remove = "create-spdx" + INHERIT_DISTRO:remove = "create-spdx"
INHERIT_DISTRO is set with a weak operator (?=) so one can simply set it from any location with INHERIT_DISTRO = (or if parsed before defaultsetup.conf, with INHERIT_DISTRO ?=). There's no need to go the overkill way of using :remove here.
In any case,
Thanks!
Quentin
Am Dienstag, dem 28.10.2025 um 11:04 +0100 schrieb Quentin Schulz:
Quoted 19 lines
Hi Enrico,
Quoted 4 lines · Enrico Jörns via lists.yoctoproject.org
Since nanbield (
b34032ec"defaultsetup: Inherit create-spdx by default"), the create-spdx class is pulled in by default, not only by poky.Indeed!
Quoted 9 lines
Adapt the text to reflect this and also change INHERIT to
INHERIT_DISTROsince this is the more concrete variable to modify for disabling create-spdx.Signed-off-by Enrico Jörns <[email protected]>---
documentation/dev-manual/sbom.rst| 15 ++++-----------1 file changed, 4 insertions(+), 11 deletions(-)
Quoted 15 lines
Quoted 12 lines
documentation/dev-manual/sbom.rst +0
-0@@ -24,19 +24,12 @@ users can read in standardized format.:term:
SBOMinformation is also critical to performing vulnerability exposure assessments, as all the components used in the Software Supply Chain are listed.documentation/dev-manual/sbom.rst +2
-2-The OpenEmbedded build system doesn't generate such information by default, -though the :term:`Poky` reference distribution has it enabled out of the box. +The OpenEmbedded build system generates such information by default (by +inheriting the :ref:`ref-classes-create-spdx` class in :term:`INHERIT_DISTRO`).Quoted 1 line
s/in/via/ ?
I guess both should work, but yours might be slightly better, indeed.
Quoted 10 lines
Quoted 10 lines
documentation/dev-manual/sbom.rst +1
-2-To enable it, inherit the :ref:`ref-classes-create-spdx` class from a -configuration file:: +If needed, it can be disabled from a :term:`configuration file`::
- INHERIT += "create-spdx"documentation/dev-manual/sbom.rst +0
-5- -In the :term:`Poky` reference distribution, :term:`SPDX` generation does -consume some build time resources and thus if needed it can be disabled from a -:term:`configuration file`:: -
Quoted 8 lines
Quoted 3 lines
- INHERIT:remove = "create-spdx"
+ INHERIT_DISTRO:remove = "create-spdx"
INHERIT_DISTROis set with a weak operator (?=) so one can simply set it from any location withINHERIT_DISTRO= (or if parsed before defaultsetup.conf, withINHERIT_DISTRO?=). There's no need to go the overkill way of using :remove here.
But that would override the other settings, too.
I guess it depends on what the actual goal is.
But admittedly, I was unsure if and how to change the suggestion here, too (also since this is nothing really create-spdx-specific).
Let me know in case I should make a v2 for any of these changes 🙂.
Quoted 3 lines
In any case,
Reviewed-by Quentin Schulz <[email protected]>
Regards, Enrico
Quoted 2 lines
Thanks!
Quentin
Signature · 4 lines
Pengutronix e.K. | Enrico Jörns | Embedded Linux Consulting & Support | https://www.pengutronix.de/ | Steuerwalder Str. 21 | Phone: +49-5121-206917-180 | 31137 Hildesheim, Germany | Fax: +49-5121-206917-9 |
Antonin Godard
AppliedQuoted 9 lines · Enrico Jörns
Since nanbield (
b34032ec"defaultsetup: Inherit create-spdx by default"), the create-spdx class is pulled in by default, not only by poky.Adapt the text to reflect this and also change INHERIT to
INHERIT_DISTROsince this is the more concrete variable to modify for disabling create-spdx.[...]
Applied, thanks!
[1/1] dev-manual/sbom.rst: reflect that create-spdx is enabled by default
commit: 2b6228943443faf76c9869a0daeccfe7f93688ca
Best regards,