mirror of
https://git.yoctoproject.org/poky
synced 2026-02-26 19:39:40 +01:00
create-spdx: cross recipes are native also
Recipes that inherit cross should also be categorized as isNative (From OE-Core rev: 9edd5e3eeec447a1d90ebbfc681c84d7047933ec) Signed-off-by: Saul Wold <saul.wold@windriver.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> (cherry picked from commit ee113e3894deb1cfb18622085a3fe0600e1ef01d) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ceb1f52dff
commit
b922f5cfa1
@@ -422,7 +422,7 @@ python do_create_spdx() {
|
||||
recipe.name = d.getVar("PN")
|
||||
recipe.versionInfo = d.getVar("PV")
|
||||
recipe.SPDXID = oe.sbom.get_recipe_spdxid(d)
|
||||
if bb.data.inherits_class("native", d):
|
||||
if bb.data.inherits_class("native", d) or bb.data.inherits_class("cross", d):
|
||||
recipe.annotations.append(create_annotation(d, "isNative"))
|
||||
|
||||
for s in d.getVar('SRC_URI').split():
|
||||
@@ -614,7 +614,7 @@ python do_create_runtime_spdx() {
|
||||
|
||||
deploy_dir_spdx = Path(d.getVar("DEPLOY_DIR_SPDX"))
|
||||
spdx_deploy = Path(d.getVar("SPDXRUNTIMEDEPLOY"))
|
||||
is_native = bb.data.inherits_class("native", d)
|
||||
is_native = bb.data.inherits_class("native", d) or bb.data.inherits_class("cross", d)
|
||||
|
||||
creation_time = datetime.now(tz=timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user