summaryrefslogtreecommitdiffstats
path: root/meta/classes/rm_work.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-10-12 15:52:07 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-10-12 15:52:07 +0100
commit99c0cbd6d6ab0d0130c251ad89b114a09c6df1c4 (patch)
tree51e4bc4b060d2aa13f2d0ff97b86059fc51ce4ad /meta/classes/rm_work.bbclass
parent1958497f00d0cac11f624ea3e1ac5e54be0014b7 (diff)
downloadpoky-99c0cbd6d6ab0d0130c251ad89b114a09c6df1c4.tar.gz
rm_work: Fix interaction issues with pseudo
This class needs to wipe out the contents of the pseudo database but also ensure the pseudo directory exists for any subsequent tasks and also ensure any pseudo server has shut down before removing the database. This patch does all of these things. [BUGID #222] Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/rm_work.bbclass')
-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