summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorJoshua Watt <JPEWhacker@gmail.com>2021-09-01 13:44:45 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-09-03 08:53:28 (GMT)
commit0b871c57b8c3e45fd64d10037a32033d4a347d67 (patch)
tree9860f64e2453bc409bcf83f0e01c14f87d0e2817 /meta/lib
parent69faca3df61409927c312e6f060faee945de0373 (diff)
downloadpoky-0b871c57b8c3e45fd64d10037a32033d4a347d67.tar.gz
classes/create-spdx: Add runtime dependency mapping
(From OE-Core rev: 82f3229bce41dc101c79865033432161dac269d8) Signed-off-by: Joshua Watt <JPEWhacker@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oe/sbom.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/meta/lib/oe/sbom.py b/meta/lib/oe/sbom.py
index 294feee..848812c 100644
--- a/meta/lib/oe/sbom.py
+++ b/meta/lib/oe/sbom.py
@@ -28,10 +28,11 @@ def get_image_spdxid(img):
28 return "SPDXRef-Image-%s" % img 28 return "SPDXRef-Image-%s" % img
29 29
30 30
31def write_doc(d, spdx_doc, subdir): 31def write_doc(d, spdx_doc, subdir, spdx_deploy=None):
32 from pathlib import Path 32 from pathlib import Path
33 33
34 spdx_deploy = Path(d.getVar("SPDXDEPLOY")) 34 if spdx_deploy is None:
35 spdx_deploy = Path(d.getVar("SPDXDEPLOY"))
35 36
36 dest = spdx_deploy / subdir / (spdx_doc.name + ".spdx.json") 37 dest = spdx_deploy / subdir / (spdx_doc.name + ".spdx.json")
37 dest.parent.mkdir(exist_ok=True, parents=True) 38 dest.parent.mkdir(exist_ok=True, parents=True)