summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/create-spdx-3.0.bbclass3
-rw-r--r--meta/lib/oe/spdx30_tasks.py2
2 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/create-spdx-3.0.bbclass b/meta/classes/create-spdx-3.0.bbclass
index b4a5156e70..044517d9f7 100644
--- a/meta/classes/create-spdx-3.0.bbclass
+++ b/meta/classes/create-spdx-3.0.bbclass
@@ -113,6 +113,9 @@ SPDX_ON_BEHALF_OF[doc] = "The base variable name to describe the Agent on who's
113SPDX_PACKAGE_SUPPLIER[doc] = "The base variable name to describe the Agent who \ 113SPDX_PACKAGE_SUPPLIER[doc] = "The base variable name to describe the Agent who \
114 is supplying artifacts produced by the build" 114 is supplying artifacts produced by the build"
115 115
116SPDX_PACKAGE_VERSION ??= "${PV}"
117SPDX_PACKAGE_VERSION[doc] = "The version of a package, software_packageVersion \
118 in software_Package"
116 119
117IMAGE_CLASSES:append = " create-spdx-image-3.0" 120IMAGE_CLASSES:append = " create-spdx-image-3.0"
118SDK_CLASSES += "create-spdx-sdk-3.0" 121SDK_CLASSES += "create-spdx-sdk-3.0"
diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py
index 1629ed69ce..52329760b6 100644
--- a/meta/lib/oe/spdx30_tasks.py
+++ b/meta/lib/oe/spdx30_tasks.py
@@ -606,7 +606,7 @@ def create_spdx(d):
606 _id=pkg_objset.new_spdxid("package", pkg_name), 606 _id=pkg_objset.new_spdxid("package", pkg_name),
607 creationInfo=pkg_objset.doc.creationInfo, 607 creationInfo=pkg_objset.doc.creationInfo,
608 name=pkg_name, 608 name=pkg_name,
609 software_packageVersion=d.getVar("PV"), 609 software_packageVersion=d.getVar("SPDX_PACKAGE_VERSION"),
610 ) 610 )
611 ) 611 )
612 set_timestamp_now(d, spdx_package, "builtTime") 612 set_timestamp_now(d, spdx_package, "builtTime")