diff options
Diffstat (limited to 'meta/classes/rm_work.bbclass')
-rw-r--r-- | meta/classes/rm_work.bbclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass index 998172e0c0..1600fc8177 100644 --- a/meta/classes/rm_work.bbclass +++ b/meta/classes/rm_work.bbclass | |||
@@ -10,15 +10,20 @@ RMWORK_ORIG_TASK := "${BB_DEFAULT_TASK}" | |||
10 | BB_DEFAULT_TASK = "rm_work_all" | 10 | BB_DEFAULT_TASK = "rm_work_all" |
11 | 11 | ||
12 | do_rm_work () { | 12 | do_rm_work () { |
13 | # Ensure pseudo is no longer active | ||
14 | ${FAKEROOT} -S | ||
13 | cd ${WORKDIR} | 15 | cd ${WORKDIR} |
14 | for dir in * | 16 | for dir in * |
15 | do | 17 | do |
16 | if [ `basename ${S}` = $dir ]; then | 18 | if [ `basename ${S}` = $dir ]; then |
17 | rm -rf $dir | 19 | rm -rf $dir |
18 | elif [ $dir != 'temp' -a $dir != 'pseudo' ]; then | 20 | elif [ $dir != 'temp' ]; then |
19 | rm -rf $dir | 21 | rm -rf $dir |
20 | fi | 22 | fi |
21 | done | 23 | done |
24 | # Need to add pseudo back or subsqeuent work in this workdir | ||
25 | # might fail since setscene may not rerun to recreate it | ||
26 | mkdir ${WORKDIR}/pseudo/ | ||
22 | } | 27 | } |
23 | addtask rm_work after do_${RMWORK_ORIG_TASK} | 28 | addtask rm_work after do_${RMWORK_ORIG_TASK} |
24 | 29 | ||