diff options
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 | ||