summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-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 20b50ab8d..32333baf1 100644
--- a/meta/classes/utility-tasks.bbclass
+++ b/meta/classes/utility-tasks.bbclass
@@ -11,18 +11,16 @@ python do_listtasks() {
}
addtask clean
-do_clean[dirs] = "${TOPDIR}"
do_clean[nostamp] = "1"
python do_clean() {
"""clear the build and temp directories"""
dir = bb.data.expand("${WORKDIR}", d)
- if dir == '//': raise bb.build.FuncFailed("wrong DATADIR")
- bb.note("removing " + dir)
- os.system('rm -rf ' + dir)
+ bb.note("Removing " + dir)
+ oe.path.remove(dir)
dir = "%s.*" % bb.data.expand(bb.data.getVar('STAMP', d), d)
- bb.note("removing " + dir)
- os.system('rm -f '+ dir)
+ bb.note("Removing " + dir)
+ oe.path.remove(dir)
}
addtask rebuild after do_${BB_DEFAULT_TASK}