summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorAndres Beltran <abeltran@linux.microsoft.com>2022-01-26 18:16:48 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2022-02-25 12:41:23 +0000
commite43a9d15ea8ea04afe5a49a39cc3dd1f93783acd (patch)
treecf444eb22a07ce3444b1afa0b0291340b6e71c8a /meta/lib
parent5083a802458b294619ef1e4c31de36e2b239b6f2 (diff)
downloadpoky-e43a9d15ea8ea04afe5a49a39cc3dd1f93783acd.tar.gz
create-spdx: add support for SDKs
Currently, SPDX SBOMs are only created for images. Add support for SDKs. (From OE-Core rev: c3acbb936a339636153903daf127eec9f36de79b) Signed-off-by: Andres Beltran <abeltran@linux.microsoft.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/sbom.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/lib/oe/sbom.py b/meta/lib/oe/sbom.py
index 848812c0b7..3372f13a9d 100644
--- a/meta/lib/oe/sbom.py
+++ b/meta/lib/oe/sbom.py
@@ -28,6 +28,10 @@ def get_image_spdxid(img):
28 return "SPDXRef-Image-%s" % img 28 return "SPDXRef-Image-%s" % img
29 29
30 30
31def get_sdk_spdxid(sdk):
32 return "SPDXRef-SDK-%s" % sdk
33
34
31def write_doc(d, spdx_doc, subdir, spdx_deploy=None): 35def write_doc(d, spdx_doc, subdir, spdx_deploy=None):
32 from pathlib import Path 36 from pathlib import Path
33 37