mbox series

[wrynose,0/2] spdx30_tasks: fix missing content in the image and SDK SBOMs

Message ID 20261128005009.4101905-1-c137.marques@gmail.com
Headers show
Series spdx30_tasks: fix missing content in the image and SDK SBOMs | expand

Message

Alexandre Marques Nov. 28, 2026, 12:50 a.m. UTC
From: Alexandre Marques <alexandre.marques@ctw.bmwgroup.com>

Hi Yoann,

This series backports two SPDX 3.0 fixes from master to wrynose. Both
restore content that is currently missing from the generated SBOMs.

Patch 1 makes the SDK SBOM include the target sysroot packages. The
target and host parts of do_populate_sdk both write
sdk-rootfs.spdx.json and the host part overwrites the target one, so
on wrynose the SDK SBOM only lists the nativesdk packages.

Patch 2 fixes runtime dependsOn relationships between packages being
dropped. It needed a context adjustment because wrynose does not have
28ffcc0653 ("spdx: Reformat"); the change itself is identical to
master.

Tested on top of wrynose (16a03ed6c2) by building core-image-minimal
and its SDK for qemux86-64 with and without the series and comparing
the SBOMs:

  - SDK SBOM: 292 target packages, 20604 files and 105 vulnerabilities
    added
  - runtime dependsOn relationships: 86 -> 209 in the image SBOM,
    522 -> 1396 in the SDK SBOM
  - nothing removed, apart from the sdk-rootfs build being split into
    sdk-rootfs-host and sdk-rootfs-target

oe-selftest -r spdx passes.

Regards,
Alexandre

Pascal Eberhard (1):
  spdx30_tasks: fix missing SPDX runtime dependencies

Prasanth R (1):
  spdx30_tasks: include the SDK target packages in the SDK SBOM

 meta/lib/oe/spdx30_tasks.py | 56 ++++++++++++++++++++++---------------
 1 file changed, 34 insertions(+), 22 deletions(-)