mirror of
https://git.yoctoproject.org/poky
synced 2026-02-22 17:39:39 +01:00
create-spdx: Fix supplier field
The correct field name is "supplier" according to SPDX schema. The "supplier" field translates to "PackageSupplier", but that's for tag-value format. (From OE-Core rev: 504b50aec662f177fea452e05e29af8b36ca69fc) Signed-off-by: Mihai Lindner <mihai.lindner@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit ca8db0e0a2860ac1e3f537471fa71b43c3be0a58) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
23ebe69676
commit
d8c792f12c
@@ -445,7 +445,7 @@ python do_create_spdx() {
|
||||
recipe.name = d.getVar("PN")
|
||||
recipe.versionInfo = d.getVar("PV")
|
||||
recipe.SPDXID = oe.sbom.get_recipe_spdxid(d)
|
||||
recipe.packageSupplier = d.getVar("SPDX_SUPPLIER")
|
||||
recipe.supplier = d.getVar("SPDX_SUPPLIER")
|
||||
if bb.data.inherits_class("native", d) or bb.data.inherits_class("cross", d):
|
||||
recipe.annotations.append(create_annotation(d, "isNative"))
|
||||
|
||||
@@ -555,7 +555,7 @@ python do_create_spdx() {
|
||||
spdx_package.name = pkg_name
|
||||
spdx_package.versionInfo = d.getVar("PV")
|
||||
spdx_package.licenseDeclared = convert_license_to_spdx(package_license, package_doc, d, found_licenses)
|
||||
spdx_package.packageSupplier = d.getVar("SPDX_SUPPLIER")
|
||||
spdx_package.supplier = d.getVar("SPDX_SUPPLIER")
|
||||
|
||||
package_doc.packages.append(spdx_package)
|
||||
|
||||
@@ -895,7 +895,7 @@ def combine_spdx(d, rootfs_name, rootfs_deploydir, rootfs_spdxid, packages):
|
||||
image.name = d.getVar("PN")
|
||||
image.versionInfo = d.getVar("PV")
|
||||
image.SPDXID = rootfs_spdxid
|
||||
image.packageSupplier = d.getVar("SPDX_SUPPLIER")
|
||||
image.supplier = d.getVar("SPDX_SUPPLIER")
|
||||
|
||||
doc.packages.append(image)
|
||||
|
||||
|
||||
@@ -218,7 +218,7 @@ class SPDXPackage(SPDXObject):
|
||||
SPDXID = _String()
|
||||
versionInfo = _String()
|
||||
downloadLocation = _String(default="NOASSERTION")
|
||||
packageSupplier = _String(default="NOASSERTION")
|
||||
supplier = _String(default="NOASSERTION")
|
||||
homepage = _String()
|
||||
licenseConcluded = _String(default="NOASSERTION")
|
||||
licenseDeclared = _String(default="NOASSERTION")
|
||||
|
||||
Reference in New Issue
Block a user