summaryrefslogtreecommitdiffstats
path: root/meta/classes/rm_work.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/rm_work.bbclass')
-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 e3c92b8572..8569148212 100644
--- a/meta/classes/rm_work.bbclass
+++ b/meta/classes/rm_work.bbclass
@@ -6,24 +6,24 @@
6# INHERIT += "rm_work" 6# INHERIT += "rm_work"
7# 7#
8 8
9RMWORK_ORIG_TASK := "${BB_DEFAULT_TASK}"
10BB_DEFAULT_TASK = "rm_work_all"
11
9do_rm_work () { 12do_rm_work () {
10 cd ${WORKDIR} 13 cd ${WORKDIR}
11 for dir in * 14 for dir in *
12 do 15 do
13 if [ `basename ${S}` = $dir ]; then 16 if [ `basename ${S}` = $dir ]; then
14 rm -rf $dir/* 17 rm -rf $dir
15 elif [ $dir != 'temp' ]; then 18 elif [ $dir != 'temp' ]; then
16 rm -rf $dir 19 rm -rf $dir
17 fi 20 fi
18 done 21 done
19} 22}
23addtask rm_work after do_${RMWORK_ORIG_TASK}
20 24
21addtask rmall after do_rm_work 25do_rm_work_all () {
22do_rmall[recrdeptask] = "do_rm_work" 26 :
23do_rmall() {
24 :
25} 27}
26 28do_rm_work_all[recrdeptask] = "do_rm_work"
27 29addtask rm_work_all after do_rm_work
28addtask rm_work before do_build
29addtask rm_work after do_populate_staging