diff options
| author | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 12:33:58 +0100 |
|---|---|---|
| committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-08-27 12:33:58 +0100 |
| commit | 4b2a355a3134cff36b220c16b3b8816b202e03ce (patch) | |
| tree | ce33296fc19b5077541c243bf8cc717f0b72a779 /meta/classes/utility-tasks.bbclass | |
| parent | 5c7531f78cd77d1d4de19563fb61cdaf8dd7f3f8 (diff) | |
| download | poky-4b2a355a3134cff36b220c16b3b8816b202e03ce.tar.gz | |
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.bbclass | 5 |
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() { | |||
| 10 | sys.__stdout__.write("%s\n" % e) | 10 | sys.__stdout__.write("%s\n" % e) |
| 11 | } | 11 | } |
| 12 | 12 | ||
| 13 | CLEANFUNCS ?= "" | ||
| 14 | |||
| 13 | addtask clean | 15 | addtask clean |
| 14 | do_clean[nostamp] = "1" | 16 | do_clean[nostamp] = "1" |
| 15 | python do_clean() { | 17 | python do_clean() { |
| @@ -21,6 +23,9 @@ python do_clean() { | |||
| 21 | dir = "%s.*" % bb.data.expand(bb.data.getVar('STAMP', d), d) | 23 | dir = "%s.*" % bb.data.expand(bb.data.getVar('STAMP', d), d) |
| 22 | bb.note("Removing " + dir) | 24 | bb.note("Removing " + dir) |
| 23 | oe.path.remove(dir) | 25 | oe.path.remove(dir) |
| 26 | |||
| 27 | for f in (bb.data.getVar('CLEANFUNCS', d, 1) or '').split(): | ||
| 28 | bb.build.exec_func(f, d) | ||
| 24 | } | 29 | } |
| 25 | 30 | ||
| 26 | addtask rebuild after do_${BB_DEFAULT_TASK} | 31 | addtask rebuild after do_${BB_DEFAULT_TASK} |
