[OE-core] [PATCH 2/3] copy_buildsystem.py: Allow substring matches for excluded_targets
Randy Witt
randy.e.witt at linux.intel.com
Thu Jan 7 19:24:26 UTC 2016
This is so that the excluded_targets passed to prune_lockedsigs can
take a partial form such as nativesdk to filter based on partial matches.
Signed-off-by: Randy Witt <randy.e.witt at linux.intel.com>
---
meta/lib/oe/copy_buildsystem.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/meta/lib/oe/copy_buildsystem.py b/meta/lib/oe/copy_buildsystem.py
index 15af4eb..83ab8c5 100644
--- a/meta/lib/oe/copy_buildsystem.py
+++ b/meta/lib/oe/copy_buildsystem.py
@@ -83,8 +83,11 @@ def prune_lockedsigs(allowed_tasks, excluded_targets, lockedsigs, pruned_output)
for line in infile:
if invalue:
if line.endswith('\\\n'):
- splitval = line.strip().split(':')
- if splitval[1] in allowed_tasks and not splitval[0] in excluded_targets:
+ target, task = line.strip().split(':')[:2]
+ badmatch = ([x for x in excluded_targets
+ if x in target])
+
+ if task in allowed_tasks and not badmatch:
f.write(line)
else:
f.write(line)
--
2.5.0
More information about the Openembedded-core
mailing list