summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/utility-tasks.bbclass10
1 files changed, 4 insertions, 6 deletions
diff --git a/meta/classes/utility-tasks.bbclass b/meta/classes/utility-tasks.bbclass
index 20b50ab8d1..32333baf14 100644
--- a/meta/classes/utility-tasks.bbclass
+++ b/meta/classes/utility-tasks.bbclass
@@ -11,18 +11,16 @@ python do_listtasks() {
11} 11}
12 12
13addtask clean 13addtask clean
14do_clean[dirs] = "${TOPDIR}"
15do_clean[nostamp] = "1" 14do_clean[nostamp] = "1"
16python do_clean() { 15python do_clean() {
17 """clear the build and temp directories""" 16 """clear the build and temp directories"""
18 dir = bb.data.expand("${WORKDIR}", d) 17 dir = bb.data.expand("${WORKDIR}", d)
19 if dir == '//': raise bb.build.FuncFailed("wrong DATADIR") 18 bb.note("Removing " + dir)
20 bb.note("removing " + dir) 19 oe.path.remove(dir)
21 os.system('rm -rf ' + dir)
22 20
23 dir = "%s.*" % bb.data.expand(bb.data.getVar('STAMP', d), d) 21 dir = "%s.*" % bb.data.expand(bb.data.getVar('STAMP', d), d)
24 bb.note("removing " + dir) 22 bb.note("Removing " + dir)
25 os.system('rm -f '+ dir) 23 oe.path.remove(dir)
26} 24}
27 25
28addtask rebuild after do_${BB_DEFAULT_TASK} 26addtask rebuild after do_${BB_DEFAULT_TASK}