mbox series

[scarthgap,v3,00/16] backport: SPDX 3.0 support to Scarthgap

Message ID 20251103162654.1714239-1-kamel.bouhara@bootlin.com
Headers show
Series backport: SPDX 3.0 support to Scarthgap | expand

Message

Kamel Bouhara Nov. 3, 2025, 4:26 p.m. UTC
Hello,

This is the v3 series to backport SPDX 3.0 support from upstream
Walnascar to Scarthgap (Yocto Project 5.0 LTS), it essentially
includes selftest fixes.

Changes since v2:
-----------------
Cherry-picked commits:

    c5b5136bf8: Exclude do_create_spdx from automatic sysroot extension.

    03c6ace6c6: Fix SPDX_VERSION handling in selftests.

    7be5a6e699: Add tar test for SPDX 2.2.

Local fix:

    7e14a5b966: Align DEPLOY_DIR_SPDX in create-spdx-2.2.bbclass with
	${SPDX_VERSION} layout, restoring successful SPDX 2.2 selftests.

Greetings,
Kamel

Hongxu Jia (1):
  oeqa/selftest: Add SPDX 3.0 include source case for work-share

Joshua Watt (10):
  classes-global/license: Move functions to library code
  classes-global/staging: Exclude do_create_spdx from automatic sysroot
    extension
  lib/license: Move package license skip to library
  lib: oe: license: Add missing import
  classes-recipe/image: Add image file manifest
  classes-recipe/baremetal-image: Add image file manifest
  selftest: spdx: Add SPDX 3.0 test cases
  lib: oeqa: spdx: Add tests for extra options
  spdx 3.0: Rework how SPDX aliases are linked
  oeqa: spdx: Add tar test for SPDX 2.2

Kamel Bouhara (Schneider Electric) (4):
  backport: SPDX 3.0 fixes and tasks from upstream version Walnascar
  spdx30_tasks: fix FetchData attribute in add_download_files
  classes/create-spdx-2.2: align DEPLOY_DIR_SPDX with SPDX_VERSION
    layout
  spdx30_tasks: adapt CVE handling to new cve-check API

Richard Purdie (1):
  selftest/spdx: Fix for SPDX_VERSION addition

 meta/classes-global/base.bbclass              |   41 +-
 meta/classes-global/license.bbclass           |  165 -
 meta/classes-global/staging.bbclass           |    9 +-
 meta/classes-recipe/baremetal-image.bbclass   |   32 +-
 .../create-spdx-image-3.0.bbclass             |   85 +
 .../create-spdx-sdk-3.0.bbclass               |   74 +
 meta/classes-recipe/image.bbclass             |   58 +
 meta/classes-recipe/license_image.bbclass     |   14 +-
 meta/classes-recipe/nospdx.bbclass            |   13 +
 meta/classes/create-spdx-2.2.bbclass          |    3 +-
 meta/classes/create-spdx-3.0.bbclass          |  200 +
 meta/classes/spdx-common.bbclass              |   99 +
 meta/lib/oe/__init__.py                       |    2 +-
 meta/lib/oe/license.py                        |  203 +
 meta/lib/oe/sbom30.py                         | 1096 ++++
 meta/lib/oe/spdx30.py                         | 5593 +++++++++++++++++
 meta/lib/oe/spdx30_tasks.py                   | 1343 ++++
 meta/lib/oe/spdx_common.py                    |  244 +
 meta/lib/oeqa/selftest/cases/spdx.py          |  256 +-
 19 files changed, 9307 insertions(+), 223 deletions(-)
 create mode 100644 meta/classes-recipe/create-spdx-image-3.0.bbclass
 create mode 100644 meta/classes-recipe/create-spdx-sdk-3.0.bbclass
 create mode 100644 meta/classes-recipe/nospdx.bbclass
 create mode 100644 meta/classes/create-spdx-3.0.bbclass
 create mode 100644 meta/classes/spdx-common.bbclass
 create mode 100644 meta/lib/oe/sbom30.py
 create mode 100644 meta/lib/oe/spdx30.py
 create mode 100644 meta/lib/oe/spdx30_tasks.py
 create mode 100644 meta/lib/oe/spdx_common.py

--
2.43.0