summaryrefslogtreecommitdiff
path: root/meta/classes/utility-tasks.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-27 12:33:58 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-08-27 12:33:58 +0100
commit4b2a355a3134cff36b220c16b3b8816b202e03ce (patch)
treece33296fc19b5077541c243bf8cc717f0b72a779 /meta/classes/utility-tasks.bbclass
parent5c7531f78cd77d1d4de19563fb61cdaf8dd7f3f8 (diff)
downloadopenembedded-core-4b2a355a3134cff36b220c16b3b8816b202e03ce.tar.gz
openembedded-core-4b2a355a3134cff36b220c16b3b8816b202e03ce.tar.bz2
openembedded-core-4b2a355a3134cff36b220c16b3b8816b202e03ce.zip
sstate/utility-tasks: Ensure do_clean functions correctly and removes shared state
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/utility-tasks.bbclass')
-rw-r--r--meta/classes/utility-tasks.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass
index 32333baf14..b3609965e7 100644
--- a/meta/classes/utility-tasks.bbclass
+++ b/meta/classes/utility-tasks.bbclass
@@ -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}