summaryrefslogtreecommitdiffstats
path: root/meta/classes/rm_work.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard@openedhand.com>2007-09-01 16:45:43 +0000
committerRichard Purdie <richard@openedhand.com>2007-09-01 16:45:43 +0000
commitdfa8101ba0b2191612dd79404581cff07dece60b (patch)
treeb949b71ad63c77745a1ec280abb193879edc1817 /meta/classes/rm_work.bbclass
parent0206afd2f88cb4dfb27bdb6b0972829d564ca2df (diff)
downloadpoky-dfa8101ba0b2191612dd79404581cff07dece60b.tar.gz
rm_work.bbclass: Update for bitbake 1.8.8
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@2633 311d38ba-8fff-0310-9ca6-ca027cbcb966
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