summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass6
1 files changed, 4 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index cc0b8665f6..be650c4af4 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -39,8 +39,10 @@ python () {
39 scan_cmd = "grep -Irl ${STAGING_DIR} ${SSTATE_BUILDDIR}" 39 scan_cmd = "grep -Irl ${STAGING_DIR} ${SSTATE_BUILDDIR}"
40 bb.data.setVar('SSTATE_SCAN_CMD', scan_cmd, d) 40 bb.data.setVar('SSTATE_SCAN_CMD', scan_cmd, d)
41 41
42 unique_tasks = set((bb.data.getVar('SSTATETASKS', d, True) or "").split())
43 d.setVar('SSTATETASKS', " ".join(unique_tasks))
42 namemap = [] 44 namemap = []
43 for task in set((bb.data.getVar('SSTATETASKS', d, True) or "").split()): 45 for task in unique_tasks:
44 namemap.append(bb.data.getVarFlag(task, 'sstate-name', d)) 46 namemap.append(bb.data.getVarFlag(task, 'sstate-name', d))
45 funcs = bb.data.getVarFlag(task, 'prefuncs', d) or "" 47 funcs = bb.data.getVarFlag(task, 'prefuncs', d) or ""
46 funcs = "sstate_task_prefunc " + funcs 48 funcs = "sstate_task_prefunc " + funcs
@@ -200,7 +202,7 @@ def sstate_clean_cachefile(ss, d):
200 oe.path.remove(sstatepkgfile) 202 oe.path.remove(sstatepkgfile)
201 203
202def sstate_clean_cachefiles(d): 204def sstate_clean_cachefiles(d):
203 for task in set((bb.data.getVar('SSTATETASKS', d, True) or "").split()): 205 for task in (bb.data.getVar('SSTATETASKS', d, True) or "").split():
204 ss = sstate_state_fromvars(d, task[3:]) 206 ss = sstate_state_fromvars(d, task[3:])
205 sstate_clean_cachefile(ss, d) 207 sstate_clean_cachefile(ss, d)
206 208