]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
create-spdx-2.2: Add support for custom Annotations
authorSaul Wold <Saul.Wold@windriver.com>
Mon, 13 Feb 2023 19:54:13 +0000 (11:54 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 15 Feb 2023 10:20:44 +0000 (10:20 +0000)
commit33ced8338f0facb412b5f24cf9df4a84226a2a94
tree1c6523c9d963bde5376863bee69c6648a465e44c
parent840d55a4bf8e908e2b2841496232ffa7c00799e4
create-spdx-2.2: Add support for custom Annotations

This change adds a new variable to track which recipe variables
are added as SPDX Annotations.

Usage: add SPDX_CUSTOM_ANNOTATION_VARS = <some recipe variable>

The recipe spdx json will contain an annotation stanza that looks
something like this:

     "annotations": [
        {
          "annotationDate": "2023-02-13T19:44:20Z",
          "annotationType": "OTHER",
          "annotator": "Tool: oe-spdx-creator - 1.0",
          "comment": "CUSTOM_VARIABLE=some value or string"
        },

Signed-off-by: Saul Wold <saul.wold@windriver.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/create-spdx-2.2.bbclass