summaryrefslogtreecommitdiff
path: root/meta
diff options
context:
space:
mode:
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/rm_work.bbclass18
1 files changed, 9 insertions, 9 deletions
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass
index e3c92b857..856914821 100644
--- a/meta/classes/rm_work.bbclass
+++ b/meta/classes/rm_work.bbclass
@@ -6,24 +6,24 @@
# INHERIT += "rm_work"
#
+RMWORK_ORIG_TASK := "${BB_DEFAULT_TASK}"
+BB_DEFAULT_TASK = "rm_work_all"
+
do_rm_work () {
cd ${WORKDIR}
for dir in *
do
if [ `basename ${S}` = $dir ]; then
- rm -rf $dir/*
+ rm -rf $dir
elif [ $dir != 'temp' ]; then
rm -rf $dir
fi
done
}
+addtask rm_work after do_${RMWORK_ORIG_TASK}
-addtask rmall after do_rm_work
-do_rmall[recrdeptask] = "do_rm_work"
-do_rmall() {
- :
+do_rm_work_all () {
+ :
}
-
-
-addtask rm_work before do_build
-addtask rm_work after do_populate_staging
+do_rm_work_all[recrdeptask] = "do_rm_work"
+addtask rm_work_all after do_rm_work