[OE-core][PATCH v3 00/10] Add SPDX 3.0 support

Joshua Watt
2024-06-24T15:22:52Z

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

v2: Added tests and addressed feedback
v3: Fixed several oe-selftest and build failures

Joshua Watt (10):
classes-recipe/image: Add image file manifest
classes-recipe/baremetal-image: Add image file manifest
classes/create-spdx-3.0: Add classes
classes-global/staging: Exclude do_create_spdx from automatic sysroot
extension
binutils-cross-testsuite: Rename to binutils-testsuite
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-global/mirrors.bbclass | 2 +-
meta/classes-global/staging.bbclass | 6 +-
meta/classes-recipe/baremetal-image.bbclass | 30 +-
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 | 1179 ++++
meta/classes/create-spdx-image-3.0.bbclass | 224 +
meta/classes/create-spdx.bbclass | 2 +-
meta/classes/spdx-common.bbclass | 13 +-
meta/conf/distro/include/maintainers.inc | 2 +-
meta/lib/oe/sbom30.py | 1122 +++
meta/lib/oe/spdx30.py | 5996 +++++++++++++++++
meta/lib/oeqa/selftest/cases/binutils.py | 2 +-
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 +-
...ite_2.42.bb => binutils-testsuite_2.42.bb} | 3 +
21 files changed, 8762 insertions(+), 30 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
rename meta/recipes-devtools/binutils/{binutils-cross-testsuite_2.42.bb => binutils-testsuite_2.42.bb} (95%)

--
2.43.2