diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-03 10:41:41 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-03-05 10:22:36 -0800 |
commit | d01dadfb87cfd2284b3e849d35a35fe5df0239c4 (patch) | |
tree | 10d3685054f38592b0c1a39452c0e65bc47b945b /meta/classes/sstate.bbclass | |
parent | a439d32dd843d10a9f65cc858b02422fac7deb50 (diff) | |
download | poky-d01dadfb87cfd2284b3e849d35a35fe5df0239c4.tar.gz |
meta/classes: Convert to use appendVar and appendVarFlags
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r-- | meta/classes/sstate.bbclass | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index d20b62a66e..b1cdf0f838 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
@@ -46,12 +46,8 @@ python () { | |||
46 | namemap = [] | 46 | namemap = [] |
47 | for task in unique_tasks: | 47 | for task in unique_tasks: |
48 | namemap.append(d.getVarFlag(task, 'sstate-name')) | 48 | namemap.append(d.getVarFlag(task, 'sstate-name')) |
49 | funcs = d.getVarFlag(task, 'prefuncs') or "" | 49 | d.prependVarFlag(task, 'prefuncs', "sstate_task_prefunc ") |
50 | funcs = "sstate_task_prefunc " + funcs | 50 | d.appendVarFlag(task, 'postfuncs', " sstate_task_postfunc") |
51 | d.setVarFlag(task, 'prefuncs', funcs) | ||
52 | funcs = d.getVarFlag(task, 'postfuncs') or "" | ||
53 | funcs = funcs + " sstate_task_postfunc" | ||
54 | d.setVarFlag(task, 'postfuncs', funcs) | ||
55 | d.setVar('SSTATETASKNAMES', " ".join(namemap)) | 51 | d.setVar('SSTATETASKNAMES', " ".join(namemap)) |
56 | } | 52 | } |
57 | 53 | ||