mbox series

[0/2] SPDX 3.0.1 documentation and bugfix

Message ID 20251113184151.511039-1-stondo@gmail.com
Headers show
Series SPDX 3.0.1 documentation and bugfix | expand

Message

Stefano Tondo Nov. 13, 2025, 6:41 p.m. UTC
From: Stefano Tondo <stefano.tondo.ext@siemens.com>

This series adds documentation for undocumented SPDX variables and
fixes a critical bug in the custom annotations feature.

Patch 1/2: Fixes NameError in SPDX_CUSTOM_ANNOTATION_VARS feature by
           correcting method call syntax. Adds regression test to prevent
           future occurrences.

Patch 2/2: Adds [doc] strings for 8 SPDX variables in spdx-common.bbclass.
           Makes variables discoverable via bitbake-getvar and IDE completion.

Note: A companion patch for yocto-docs will add three of these variables
to the reference manual (SPDX_UUID_NAMESPACE, SPDX_LICENSES, and
SPDX_MULTILIB_SSTATE_ARCHS).

Both patches have been tested with core-image-minimal builds.

Stefano Tondo (2):
  spdx30_tasks: Fix SPDX_CUSTOM_ANNOTATION_VARS implementation
  spdx-common: Add documentation for undocumented SPDX variables

 meta/classes/spdx-common.bbclass     | 26 ++++++++++
 meta/lib/oe/spdx30_tasks.py          |  4 +-
 meta/lib/oeqa/selftest/cases/spdx.py | 74 ++++++++++++++++++++++++++++
 3 files changed, 101 insertions(+), 3 deletions(-)