diff options
Diffstat (limited to 'meta/classes')
| -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 aa9514121d..c35dbe1184 100644 --- a/meta/classes/create-spdx.bbclass +++ b/meta/classes/create-spdx.bbclass | |||
| @@ -422,7 +422,7 @@ python do_create_spdx() { | |||
| 422 | recipe.name = d.getVar("PN") | 422 | recipe.name = d.getVar("PN") |
| 423 | recipe.versionInfo = d.getVar("PV") | 423 | recipe.versionInfo = d.getVar("PV") |
| 424 | recipe.SPDXID = oe.sbom.get_recipe_spdxid(d) | 424 | recipe.SPDXID = oe.sbom.get_recipe_spdxid(d) |
| 425 | if bb.data.inherits_class("native", d): | 425 | if bb.data.inherits_class("native", d) or bb.data.inherits_class("cross", d): |
| 426 | recipe.annotations.append(create_annotation(d, "isNative")) | 426 | recipe.annotations.append(create_annotation(d, "isNative")) |
| 427 | 427 | ||
| 428 | for s in d.getVar('SRC_URI').split(): | 428 | for s in d.getVar('SRC_URI').split(): |
| @@ -614,7 +614,7 @@ python do_create_runtime_spdx() { | |||
| 614 | 614 | ||
| 615 | deploy_dir_spdx = Path(d.getVar("DEPLOY_DIR_SPDX")) | 615 | deploy_dir_spdx = Path(d.getVar("DEPLOY_DIR_SPDX")) |
| 616 | spdx_deploy = Path(d.getVar("SPDXRUNTIMEDEPLOY")) | 616 | spdx_deploy = Path(d.getVar("SPDXRUNTIMEDEPLOY")) |
| 617 | is_native = bb.data.inherits_class("native", d) | 617 | is_native = bb.data.inherits_class("native", d) or bb.data.inherits_class("cross", d) |
| 618 | 618 | ||
| 619 | creation_time = datetime.now(tz=timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") | 619 | creation_time = datetime.now(tz=timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ") |
| 620 | 620 | ||
