summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/copy_buildsystem.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-08 17:36:46 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-11 23:26:29 +0000
commite306d5495a33c006fc7281c412f70af53d6c41a4 (patch)
treed61ad812f024e69a9c4521795a594d8222382b37 /meta/lib/oe/copy_buildsystem.py
parente1a558a434957fc233eec6349ceb53b4e09bb18c (diff)
downloadpoky-e306d5495a33c006fc7281c412f70af53d6c41a4.tar.gz
populate_sdk_ext: Change to include siginfo and non sstate task sigs
Right now, the locked task hashes list for the extensible SDK locks down only the sstate tasks. Whilst asthetically pleasing, this gives two problems: * Half the task are left floating meaning checksum mismatches are a pain to debug * The later code which copies relavent data files out the sstate cache can't use any of this data. This patch modifies things so all the checksums are listed in the locked file. An exclusion of tasks probably makes more sense for the library function rather than an allowed list. The only sstate task being deliberaly excluded here was do_package so add in a function to explictly exclude those sstate object files. The net result of this that siginfo files for all tasks are included in the SDK, which means commands like "bitbake -S printdiff" now function. (From OE-Core rev: 6b70479e47b8a8743d8b410d6bc08da1607a318e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/copy_buildsystem.py')
-rw-r--r--meta/lib/oe/copy_buildsystem.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/copy_buildsystem.py b/meta/lib/oe/copy_buildsystem.py
index 15af4eb84b..a5ca3df320 100644
--- a/meta/lib/oe/copy_buildsystem.py
+++ b/meta/lib/oe/copy_buildsystem.py
@@ -75,7 +75,7 @@ def generate_locked_sigs(sigfile, d):
75 tasks = ['%s.%s' % (v[2], v[1]) for v in depd.itervalues()] 75 tasks = ['%s.%s' % (v[2], v[1]) for v in depd.itervalues()]
76 bb.parse.siggen.dump_lockedsigs(sigfile, tasks) 76 bb.parse.siggen.dump_lockedsigs(sigfile, tasks)
77 77
78def prune_lockedsigs(allowed_tasks, excluded_targets, lockedsigs, pruned_output): 78def prune_lockedsigs(excluded_tasks, excluded_targets, lockedsigs, pruned_output):
79 with open(lockedsigs, 'r') as infile: 79 with open(lockedsigs, 'r') as infile:
80 bb.utils.mkdirhier(os.path.dirname(pruned_output)) 80 bb.utils.mkdirhier(os.path.dirname(pruned_output))
81 with open(pruned_output, 'w') as f: 81 with open(pruned_output, 'w') as f:
@@ -84,7 +84,7 @@ def prune_lockedsigs(allowed_tasks, excluded_targets, lockedsigs, pruned_output)
84 if invalue: 84 if invalue:
85 if line.endswith('\\\n'): 85 if line.endswith('\\\n'):
86 splitval = line.strip().split(':') 86 splitval = line.strip().split(':')
87 if splitval[1] in allowed_tasks and not splitval[0] in excluded_targets: 87 if not splitval[1] in excluded_tasks and not splitval[0] in excluded_targets:
88 f.write(line) 88 f.write(line)
89 else: 89 else:
90 f.write(line) 90 f.write(line)