[OE-core][PATCH v2 0/7] Add SPDX 3.0 support

Joshua Watt
2024-06-19T22:18:16Z

This patch series add support for SPDX 3.0 and sets it as the default.
Currently it is not possible to have SPDX 2.2 and SPDX 3.0 enabled at
the same time; users may choose to specifically use SPDX 3.0 instead of
2.2 by doing INHERIT += "create-spdx-3.0"

v2: Added tests and addressed feedback

Joshua Watt (7):
classes-recipe/image: Add image file manifest
classes/create-spdx-3.0: Add class
classes-recipe/image_types: Add SPDX_IMAGE_PURPOSE to images
selftest: spdx: Add SPDX 3.0 test cases
classes-recipe: nospdx: Add class
classes/spdx-common: Move SPDX_SUPPLIER
Switch default spdx version to 3.0

meta/classes-recipe/image.bbclass | 58 +
meta/classes-recipe/image_types.bbclass | 2 +
meta/classes-recipe/image_types_wic.bbclass | 1 +
meta/classes-recipe/nospdx.bbclass | 13 +
meta/classes-recipe/packagegroup.bbclass | 2 +
meta/classes/create-spdx-2.2.bbclass | 8 +
meta/classes/create-spdx-3.0.bbclass | 1116 ++++
meta/classes/create-spdx-image-3.0.bbclass | 203 +
meta/classes/create-spdx.bbclass | 2 +-
meta/classes/spdx-common.bbclass | 32 +-
meta/lib/oe/sbom30.py | 1118 ++++
meta/lib/oe/spdx30.py | 5996 ++++++++++++++++++
meta/lib/oeqa/selftest/cases/spdx.py | 119 +-
meta/recipes-core/meta/build-sysroots.bb | 5 +-
meta/recipes-core/meta/meta-world-pkgdata.bb | 3 +-
15 files changed, 8654 insertions(+), 24 deletions(-)
create mode 100644 meta/classes-recipe/nospdx.bbclass
create mode 100644 meta/classes/create-spdx-3.0.bbclass
create mode 100644 meta/classes/create-spdx-image-3.0.bbclass
create mode 100644 meta/lib/oe/sbom30.py
create mode 100644 meta/lib/oe/spdx30.py

--
2.43.2