[OE-core][PATCH 8/9] spdx: Ignore ASSUME_PROVIDED recipes

Joshua Watt
2026-02-20T15:41:48Z

Ignore recipes in ASSUME_PROVIDED when generating SPDX dependencies,
since these recipes are not actually built

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
meta/lib/oe/spdx_common.py | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/meta/lib/oe/spdx_common.py b/meta/lib/oe/spdx_common.py
index 72c24180d5..03863ef362 100644
--- a/meta/lib/oe/spdx_common.py
+++ b/meta/lib/oe/spdx_common.py
@@ -104,9 +104,12 @@ def collect_direct_deps(d, dep_task):

deps = set()

+ ignore = set(d.getVar("ASSUME_PROVIDED").split())
+ ignore.add(pn)
+
for dep_name in this_dep.deps:
dep_data = taskdepdata[dep_name]
- if dep_data.taskname == dep_task and dep_data.pn != pn:
+ if dep_data.taskname == dep_task and dep_data.pn not in ignore:
deps.add((dep_data.pn, dep_data.hashfn, dep_name in this_dep.taskhash_deps))

return sorted(deps)
--
2.53.0