All of lore.kernel.org
 help / color / mirror / Atom feed
* [OE-core][PATCH 0/2] spdx3: support SBOM compression with Zstd
@ 2026-05-12 17:01 Jérémie Dautheribes (Schneider Electric )
  2026-05-12 17:01 ` [OE-core][PATCH 1/2] spdx3: introduce SPDX_SBOM_EXT variable Jérémie Dautheribes (Schneider Electric )
  2026-05-12 17:01 ` [OE-core][PATCH 2/2] spdx3: support SBOM compression based on SPDX_SBOM_EXT Jérémie Dautheribes (Schneider Electric )
  0 siblings, 2 replies; 13+ messages in thread
From: Jérémie Dautheribes (Schneider Electric ) @ 2026-05-12 17:01 UTC (permalink / raw)
  To: openembedded-core
  Cc: Jérémie Dautheribes (Schneider Electric), miquel.raynal,
	thomas.petazzoni, benjamin.robin

Hi,

This patch series adds support for compressing all types of SBOMs (image,
recipe, SDK) using zstd, similar to what we had previously with SPDX 2.2.

To do so, we introduce a new SPDX_SBOM_EXT variable containing the SBOM
extension name. Based on this extension, we decide whether SBOMs should be
compressed or not.

This is optional and by default SBOMs are not compressed to keep the
current behavior and not to break compatibility.

This work was tested on the qemuarm64 machine on the following SBOMs:
  - core-image-minimal SBOM (image SBOM)
  - busybox SBOM (recipe SBOM)
  - core-image-minimal SDK SBOM (SDK SBOM)

At first, instead of SPDX_SBOM_EXT, I used a boolean SPDX_COMPRESSED_SBOM
variable to decide whether or not a SBOM should be compressed, but it led
to a lot of code additions to SBOM consumers (for instance sbom-cve-check)
to check whether the SBOM filename extension was ".spdx.json" or
".spdx.json.zst".

Signed-off-by: Jérémie Dautheribes (Schneider Electric) <jeremie.dautheribes@bootlin.com>
---
Jérémie Dautheribes (Schneider Electric) (2):
      spdx3: introduce SPDX_SBOM_EXT variable
      spdx3: support SBOM compression based on SPDX_SBOM_EXT

 meta/classes-recipe/sbom-cve-check.bbclass |  2 +-
 meta/classes/create-spdx-3.0.bbclass       |  4 ++++
 meta/classes/sbom-cve-check-recipe.bbclass |  2 +-
 meta/lib/oe/sbom30.py                      | 11 +++++++++--
 meta/lib/oe/spdx30_tasks.py                | 12 +++++++-----
 5 files changed, 22 insertions(+), 9 deletions(-)
---
base-commit: 4f7d1a0885d7d6f2a533f7388ed5f5a35d6f99bc
change-id: 20260512-sbom-zstd-support-7bd9b13881e2

Best regards,
--  
Jérémie Dautheribes (Schneider Electric) <jeremie.dautheribes@bootlin.com>



^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-05-13  8:04 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-12 17:01 [OE-core][PATCH 0/2] spdx3: support SBOM compression with Zstd Jérémie Dautheribes (Schneider Electric )
2026-05-12 17:01 ` [OE-core][PATCH 1/2] spdx3: introduce SPDX_SBOM_EXT variable Jérémie Dautheribes (Schneider Electric )
2026-05-12 22:24   ` Joshua Watt
2026-05-12 17:01 ` [OE-core][PATCH 2/2] spdx3: support SBOM compression based on SPDX_SBOM_EXT Jérémie Dautheribes (Schneider Electric )
2026-05-12 19:54   ` Richard Purdie
2026-05-12 22:27   ` Joshua Watt
2026-05-12 22:29     ` Joshua Watt
2026-05-13  7:07       ` Benjamin Robin
2026-05-13  7:35         ` Jérémie Dautheribes
2026-05-13  7:18     ` Benjamin Robin
2026-05-13  7:47     ` Jérémie Dautheribes
2026-05-13  8:02       ` Peter Kjellerstedt
     [not found]     ` <18AF106AF6BDC73B.3227972@lists.openembedded.org>
2026-05-13  8:03       ` Jérémie Dautheribes

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.