Skip to content

Commit

Permalink
sca: skip nopackages recipes
Browse files Browse the repository at this point in the history
but only if they aren't images.
This adapts to the latest upstream change
that injects nopackages through sdk_base into
all images

Signed-off-by: Konrad Weihmann <kweihmann@outlook.com>
  • Loading branch information
priv-kweihmann committed Aug 24, 2024
1 parent 0afb163 commit ae7c5f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/sca.bbclass
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ python sca_invoke_handler() {
bb.debug(2, "Skip {} because of being a packagegroup, can't run SCA here".format(d.getVar("PN")))
sca_mask_vars(d)
return
if bb.data.inherits_class('nopackages', d):
if bb.data.inherits_class('nopackages', d) and not bb.data.inherits_class('image', d):
bb.debug(2, "Skip {} because of inheriting nopackages, can't run SCA here".format(d.getVar("PN")))
sca_mask_vars(d)
return
Expand Down

0 comments on commit ae7c5f0

Please sign in to comment.