From 8db551bba619f3b3612c59270043148214a462cc Mon Sep 17 00:00:00 2001 From: Saul Wold Date: Mon, 27 Sep 2021 10:22:16 -0700 Subject: spdx.py: Add SPDXAnnotation Object This is added to allow the create-spdx code to create annotations that store values properly according to the SPDX Specification. Initialy they will be used to track if a recipe is a native type. Signed-off-by: Saul Wold Signed-off-by: Richard Purdie --- meta/lib/oe/spdx.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'meta/lib') diff --git a/meta/lib/oe/spdx.py b/meta/lib/oe/spdx.py index 9814fbfd66..a99e54ff40 100644 --- a/meta/lib/oe/spdx.py +++ b/meta/lib/oe/spdx.py @@ -123,6 +123,12 @@ class SPDXObject(metaclass=MetaSPDXObject): raise KeyError("%r is not a valid SPDX property" % name) +class SPDXAnnotation(SPDXObject): + annotationDate = _String() + annotationType = _String() + annotator = _String() + comment = _String() + class SPDXChecksum(SPDXObject): algorithm = _String() checksumValue = _String() @@ -164,6 +170,7 @@ class SPDXPackage(SPDXObject): packageVerificationCode = _Object(SPDXPackageVerificationCode) hasFiles = _StringList() packageFileName = _String() + annotations = _ObjectList(SPDXAnnotation) class SPDXFile(SPDXObject): -- cgit 1.2.3-korg