* [PATCH] sbom.rst: how to disable SPDX generation
@ 2025-03-10 15:31 Mikko Rapeli
2025-03-11 9:43 ` [docs] " Antonin Godard
2025-05-21 16:42 ` Antonin Godard
0 siblings, 2 replies; 3+ messages in thread
From: Mikko Rapeli @ 2025-03-10 15:31 UTC (permalink / raw)
To: docs; +Cc: Mikko Rapeli
Generating SPDX is enabled by default in poky but
it can take a lot of build time resources so document
how to disable it.
Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
---
documentation/dev-manual/sbom.rst | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/documentation/dev-manual/sbom.rst b/documentation/dev-manual/sbom.rst
index b72bad1554..f5a706bc14 100644
--- a/documentation/dev-manual/sbom.rst
+++ b/documentation/dev-manual/sbom.rst
@@ -24,12 +24,18 @@ 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.
-To make this happen, you must inherit the
-:ref:`ref-classes-create-spdx` class from a configuration file::
+The OpenEmbedded build system doesn't generate such information by default,
+though ``poky`` reference distribution has it enabled out of the box.
+
+To enable it, inherit the :ref:`ref-classes-create-spdx` class from a configuration file::
INHERIT += "create-spdx"
+In ``poky`` reference distribution, :term:`SPDX` generation does consume some build time
+resources and thus if needed it can be disabled with:
+
+ INHERIT:remove = "create-spdx"
+
Upon building an image, you will then get:
- :term:`SPDX` output in JSON format as an ``IMAGE-MACHINE.spdx.json`` file in
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [docs] [PATCH] sbom.rst: how to disable SPDX generation
2025-03-10 15:31 [PATCH] sbom.rst: how to disable SPDX generation Mikko Rapeli
@ 2025-03-11 9:43 ` Antonin Godard
2025-05-21 16:42 ` Antonin Godard
1 sibling, 0 replies; 3+ messages in thread
From: Antonin Godard @ 2025-03-11 9:43 UTC (permalink / raw)
To: mikko.rapeli, docs
Hi Mikko,
On Mon Mar 10, 2025 at 4:31 PM CET, Mikko Rapeli via lists.yoctoproject.org wrote:
> Generating SPDX is enabled by default in poky but
> it can take a lot of build time resources so document
> how to disable it.
>
> Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org>
> ---
> documentation/dev-manual/sbom.rst | 12 +++++++++---
> 1 file changed, 9 insertions(+), 3 deletions(-)
>
> diff --git a/documentation/dev-manual/sbom.rst b/documentation/dev-manual/sbom.rst
> index b72bad1554..f5a706bc14 100644
> --- a/documentation/dev-manual/sbom.rst
> +++ b/documentation/dev-manual/sbom.rst
> @@ -24,12 +24,18 @@ 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.
> -To make this happen, you must inherit the
> -:ref:`ref-classes-create-spdx` class from a configuration file::
> +The OpenEmbedded build system doesn't generate such information by default,
> +though ``poky`` reference distribution has it enabled out of the box.
s/though ``poky`` reference/though the :term:`Poky` reference distribution/
> +
> +To enable it, inherit the :ref:`ref-classes-create-spdx` class from a configuration file::
>
> INHERIT += "create-spdx"
>
> +In ``poky`` reference distribution, :term:`SPDX` generation does consume some build time
Same comment as above
> +resources and thus if needed it can be disabled with:
"...it can be disabled from a :term:`configuration file` with:"
> +
> + INHERIT:remove = "create-spdx"
> +
> Upon building an image, you will then get:
>
> - :term:`SPDX` output in JSON format as an ``IMAGE-MACHINE.spdx.json`` file in
Otherwise looks good to me, thanks!
Antonin
--
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] sbom.rst: how to disable SPDX generation
2025-03-10 15:31 [PATCH] sbom.rst: how to disable SPDX generation Mikko Rapeli
2025-03-11 9:43 ` [docs] " Antonin Godard
@ 2025-05-21 16:42 ` Antonin Godard
1 sibling, 0 replies; 3+ messages in thread
From: Antonin Godard @ 2025-05-21 16:42 UTC (permalink / raw)
To: docs, Mikko Rapeli; +Cc: Thomas Petazzoni, Antonin Godard
On Mon, 10 Mar 2025 17:31:08 +0200, Mikko Rapeli wrote:
> Generating SPDX is enabled by default in poky but
> it can take a lot of build time resources so document
> how to disable it.
>
>
Applied, thanks!
[1/1] sbom.rst: how to disable SPDX generation
commit: bcd58b7a9455fbb0ea5944089d663e327f0eb38f
Best regards,
--
Antonin Godard <antonin.godard@bootlin.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-05-21 16:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-10 15:31 [PATCH] sbom.rst: how to disable SPDX generation Mikko Rapeli
2025-03-11 9:43 ` [docs] " Antonin Godard
2025-05-21 16:42 ` Antonin Godard
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox