diff options
Diffstat (limited to 'meta')
-rw-r--r-- | meta/classes/create-spdx.bbclass | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/create-spdx.bbclass b/meta/classes/create-spdx.bbclass index aa3e977b02..72c1385feb 100644 --- a/meta/classes/create-spdx.bbclass +++ b/meta/classes/create-spdx.bbclass | |||
@@ -427,7 +427,7 @@ python do_create_spdx() { | |||
427 | package_doc.creationInfo.creators.append("Person: N/A ()") | 427 | package_doc.creationInfo.creators.append("Person: N/A ()") |
428 | 428 | ||
429 | recipe_ref = oe.spdx.SPDXExternalDocumentRef() | 429 | recipe_ref = oe.spdx.SPDXExternalDocumentRef() |
430 | recipe_ref.externalDocumentId = "DocumentRef-recipe" | 430 | recipe_ref.externalDocumentId = "DocumentRef-recipe-" + recipe.name |
431 | recipe_ref.spdxDocument = doc.documentNamespace | 431 | recipe_ref.spdxDocument = doc.documentNamespace |
432 | recipe_ref.checksum.algorithm = "SHA1" | 432 | recipe_ref.checksum.algorithm = "SHA1" |
433 | recipe_ref.checksum.checksumValue = doc_sha1 | 433 | recipe_ref.checksum.checksumValue = doc_sha1 |
@@ -566,7 +566,7 @@ python do_create_runtime_spdx() { | |||
566 | runtime_doc.creationInfo.creators.append("Person: N/A ()") | 566 | runtime_doc.creationInfo.creators.append("Person: N/A ()") |
567 | 567 | ||
568 | package_ref = oe.spdx.SPDXExternalDocumentRef() | 568 | package_ref = oe.spdx.SPDXExternalDocumentRef() |
569 | package_ref.externalDocumentId = "DocumentRef-package" | 569 | package_ref.externalDocumentId = "DocumentRef-package-" + package |
570 | package_ref.spdxDocument = package_doc.documentNamespace | 570 | package_ref.spdxDocument = package_doc.documentNamespace |
571 | package_ref.checksum.algorithm = "SHA1" | 571 | package_ref.checksum.algorithm = "SHA1" |
572 | package_ref.checksum.checksumValue = package_doc_sha1 | 572 | package_ref.checksum.checksumValue = package_doc_sha1 |