summaryrefslogtreecommitdiffstats
path: root/meta/lib/oe/copy_buildsystem.py
diff options
context:
space:
mode:
Diffstat (limited to 'meta/lib/oe/copy_buildsystem.py')
-rw-r--r--meta/lib/oe/copy_buildsystem.py22
1 files changed, 20 insertions, 2 deletions
diff --git a/meta/lib/oe/copy_buildsystem.py b/meta/lib/oe/copy_buildsystem.py
index b5f546f99f..4d3faf6681 100644
--- a/meta/lib/oe/copy_buildsystem.py
+++ b/meta/lib/oe/copy_buildsystem.py
@@ -200,11 +200,11 @@ def merge_lockedsigs(copy_tasks, lockedsigs_main, lockedsigs_extra, merged_outpu
200 if merged_output: 200 if merged_output:
201 write_sigs_file(merged_output, arch_order, merged) 201 write_sigs_file(merged_output, arch_order, merged)
202 202
203def create_locked_sstate_cache(lockedsigs, input_sstate_cache, output_sstate_cache, d, fixedlsbstring=""): 203def create_locked_sstate_cache(lockedsigs, input_sstate_cache, output_sstate_cache, d, fixedlsbstring="", filterfile=None):
204 bb.note('Generating sstate-cache...') 204 bb.note('Generating sstate-cache...')
205 205
206 nativelsbstring = d.getVar('NATIVELSBSTRING', True) 206 nativelsbstring = d.getVar('NATIVELSBSTRING', True)
207 bb.process.run("gen-lockedsig-cache %s %s %s %s" % (lockedsigs, input_sstate_cache, output_sstate_cache, nativelsbstring)) 207 bb.process.run("gen-lockedsig-cache %s %s %s %s %s" % (lockedsigs, input_sstate_cache, output_sstate_cache, nativelsbstring, filterfile or ''))
208 if fixedlsbstring: 208 if fixedlsbstring:
209 nativedir = output_sstate_cache + '/' + nativelsbstring 209 nativedir = output_sstate_cache + '/' + nativelsbstring
210 if os.path.isdir(nativedir): 210 if os.path.isdir(nativedir):
@@ -216,3 +216,21 @@ def create_locked_sstate_cache(lockedsigs, input_sstate_cache, output_sstate_cac
216 src = os.path.join(nativedir, i) 216 src = os.path.join(nativedir, i)
217 dest = os.path.join(destdir, i) 217 dest = os.path.join(destdir, i)
218 os.rename(src, dest) 218 os.rename(src, dest)
219
220def check_sstate_task_list(d, targets, filteroutfile, cmdprefix='', cwd=None, logfile=None):
221 import subprocess
222
223 bb.note('Generating sstate task list...')
224
225 if not cwd:
226 cwd = os.getcwd()
227 if logfile:
228 logparam = '-l %s' % logfile
229 else:
230 logparam = ''
231 cmd = "%sBB_SETSCENE_ENFORCE=1 PSEUDO_DISABLED=1 oe-check-sstate %s -s -o %s %s" % (cmdprefix, targets, filteroutfile, logparam)
232 env = dict(d.getVar('BB_ORIGENV', False))
233 env.pop('BUILDDIR', '')
234 pathitems = env['PATH'].split(':')
235 env['PATH'] = ':'.join([item for item in pathitems if not item.endswith('/bitbake/bin')])
236 bb.process.run(cmd, stderr=subprocess.STDOUT, env=env, cwd=cwd, executable='/bin/bash')