summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/rm_work.bbclass7
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}"
10BB_DEFAULT_TASK = "rm_work_all" 10BB_DEFAULT_TASK = "rm_work_all"
11 11
12do_rm_work () { 12do_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}
23addtask rm_work after do_${RMWORK_ORIG_TASK} 28addtask rm_work after do_${RMWORK_ORIG_TASK}
24 29