From: Aaron Chan <[email protected]>
Signed-off-by: Aaron Chan <[email protected]>
---
scripts/utils.py | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/scripts/utils.py b/scripts/utils.py
index 68652d9..204360d 100644
--- a/scripts/utils.py
+++ b/scripts/utils.py
@@ -119,6 +119,16 @@ def getconfiglistfilter(name, config, target, stepnum):
merge(ret, config['defaults'][name])
return expandresult(ret, config)
+# Return a list of configuration keys based on regular expressions
+def getconfigexpr(name, config, target, stepnum):
+ ret = []
+ step = "step" + str(stepnum)
+ if target in config['overrides'] and step in config['overrides'][target]:
+ for i in config['overrides'][target][step].keys():
+ if re.search(name, i):
+ ret.append(i)
+ return ret
+
#
# Expand 'templates' with the configuration
#
--
2.21.0.windows.1
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#48906): https://lists.yoctoproject.org/g/yocto/message/48906
Mute This Topic: https://lists.yoctoproject.org/mt/72507454/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-