diff options
Diffstat (limited to 'meta/lib')
-rw-r--r-- | meta/lib/oe/copy_buildsystem.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/meta/lib/oe/copy_buildsystem.py b/meta/lib/oe/copy_buildsystem.py index cb663b21c6..31a84f5b06 100644 --- a/meta/lib/oe/copy_buildsystem.py +++ b/meta/lib/oe/copy_buildsystem.py | |||
@@ -177,7 +177,7 @@ def generate_locked_sigs(sigfile, d): | |||
177 | tasks = ['%s:%s' % (v[2], v[1]) for v in depd.values()] | 177 | tasks = ['%s:%s' % (v[2], v[1]) for v in depd.values()] |
178 | bb.parse.siggen.dump_lockedsigs(sigfile, tasks) | 178 | bb.parse.siggen.dump_lockedsigs(sigfile, tasks) |
179 | 179 | ||
180 | def prune_lockedsigs(excluded_tasks, excluded_targets, lockedsigs, pruned_output): | 180 | def prune_lockedsigs(excluded_tasks, excluded_targets, lockedsigs, onlynative, pruned_output): |
181 | with open(lockedsigs, 'r') as infile: | 181 | with open(lockedsigs, 'r') as infile: |
182 | bb.utils.mkdirhier(os.path.dirname(pruned_output)) | 182 | bb.utils.mkdirhier(os.path.dirname(pruned_output)) |
183 | with open(pruned_output, 'w') as f: | 183 | with open(pruned_output, 'w') as f: |
@@ -187,7 +187,11 @@ def prune_lockedsigs(excluded_tasks, excluded_targets, lockedsigs, pruned_output | |||
187 | if line.endswith('\\\n'): | 187 | if line.endswith('\\\n'): |
188 | splitval = line.strip().split(':') | 188 | splitval = line.strip().split(':') |
189 | if not splitval[1] in excluded_tasks and not splitval[0] in excluded_targets: | 189 | if not splitval[1] in excluded_tasks and not splitval[0] in excluded_targets: |
190 | f.write(line) | 190 | if onlynative: |
191 | if 'nativesdk' in splitval[0]: | ||
192 | f.write(line) | ||
193 | else: | ||
194 | f.write(line) | ||
191 | else: | 195 | else: |
192 | f.write(line) | 196 | f.write(line) |
193 | invalue = False | 197 | invalue = False |