diff options
author | Richard Purdie <richard@openedhand.com> | 2007-09-01 16:45:43 +0000 |
---|---|---|
committer | Richard Purdie <richard@openedhand.com> | 2007-09-01 16:45:43 +0000 |
commit | dfa8101ba0b2191612dd79404581cff07dece60b (patch) | |
tree | b949b71ad63c77745a1ec280abb193879edc1817 /meta/classes/rm_work.bbclass | |
parent | 0206afd2f88cb4dfb27bdb6b0972829d564ca2df (diff) | |
download | poky-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.bbclass | 18 |
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 | ||
9 | RMWORK_ORIG_TASK := "${BB_DEFAULT_TASK}" | ||
10 | BB_DEFAULT_TASK = "rm_work_all" | ||
11 | |||
9 | do_rm_work () { | 12 | do_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 | } |
23 | addtask rm_work after do_${RMWORK_ORIG_TASK} | ||
20 | 24 | ||
21 | addtask rmall after do_rm_work | 25 | do_rm_work_all () { |
22 | do_rmall[recrdeptask] = "do_rm_work" | 26 | : |
23 | do_rmall() { | ||
24 | : | ||
25 | } | 27 | } |
26 | 28 | do_rm_work_all[recrdeptask] = "do_rm_work" | |
27 | 29 | addtask rm_work_all after do_rm_work | |
28 | addtask rm_work before do_build | ||
29 | addtask rm_work after do_populate_staging | ||