1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-30 00:20:08 +00:00

sstate/utility-tasks: Ensure do_clean functions correctly and removes shared state

Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
This commit is contained in:
Richard Purdie
2010-08-27 12:33:58 +01:00
parent 5c7531f78c
commit 4b2a355a31
2 changed files with 10 additions and 4 deletions
+5
View File
@@ -10,6 +10,8 @@ python do_listtasks() {
sys.__stdout__.write("%s\n" % e)
}
CLEANFUNCS ?= ""
addtask clean
do_clean[nostamp] = "1"
python do_clean() {
@@ -21,6 +23,9 @@ python do_clean() {
dir = "%s.*" % bb.data.expand(bb.data.getVar('STAMP', d), d)
bb.note("Removing " + dir)
oe.path.remove(dir)
for f in (bb.data.getVar('CLEANFUNCS', d, 1) or '').split():
bb.build.exec_func(f, d)
}
addtask rebuild after do_${BB_DEFAULT_TASK}