From: Saul Wold Date: Wed, 27 Oct 2021 01:30:50 +0000 (-0700) Subject: create-spdx: cross recipes are native also X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~6274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ee113e3894deb1cfb18622085a3fe0600e1ef01d;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git create-spdx: cross recipes are native also Recipes that inherit cross should also be categorized as isNative Signed-off-by: Saul Wold Signed-off-by: Alexandre Belloni --- diff --git a/meta/classes/create-spdx.bbclass b/meta/classes/create-spdx.bbclass index aa9514121d2..c35dbe11849 100644 --- a/meta/classes/create-spdx.bbclass +++ b/meta/classes/create-spdx.bbclass @@ -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")