All of lore.kernel.org
 help / color / mirror / Atom feed
* [bitbake-devel][PATCH] codeparser: Allow vardeps for python functions
@ 2025-03-31 18:54 Joshua Watt
  0 siblings, 0 replies; only message in thread
From: Joshua Watt @ 2025-03-31 18:54 UTC (permalink / raw)
  To: bitbake-devel; +Cc: Joshua Watt

Adds support for python function to include [vardeps] task flags

Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
---
 bitbake/lib/bb/codeparser.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/bitbake/lib/bb/codeparser.py b/bitbake/lib/bb/codeparser.py
index 4bc6adbe459..e02776d8e1b 100644
--- a/bitbake/lib/bb/codeparser.py
+++ b/bitbake/lib/bb/codeparser.py
@@ -107,6 +107,10 @@ def update_module_dependencies(d):
         if excludes:
             modulecode_deps[mod] = [modulecode_deps[mod][0] - excludes, modulecode_deps[mod][1] - excludes, modulecode_deps[mod][2] - excludes, modulecode_deps[mod][3], modulecode_deps[mod][4], modulecode_deps[mod][5]]
 
+        deps = set((d.getVarFlag(mod, "vardeps") or "").split())
+        if deps:
+            modulecode_deps[mod] = [modulecode_deps[mod][0] | deps, modulecode_deps[mod][1] | deps, modulecode_deps[mod][2] | deps, modulecode_deps[mod][3], modulecode_deps[mod][4], modulecode_deps[mod][5]]
+
 # A custom getstate/setstate using tuples is actually worth 15% cachesize by
 # avoiding duplication of the attribute names!
 class SetCache(object):
-- 
2.49.0



^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2025-03-31 18:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-31 18:54 [bitbake-devel][PATCH] codeparser: Allow vardeps for python functions Joshua Watt

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.