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 | |
parent | 0206afd2f88cb4dfb27bdb6b0972829d564ca2df (diff) | |
download | openembedded-core-dfa8101ba0b2191612dd79404581cff07dece60b.tar.gz openembedded-core-dfa8101ba0b2191612dd79404581cff07dece60b.tar.bz2 openembedded-core-dfa8101ba0b2191612dd79404581cff07dece60b.zip |
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
-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 @@ # INHERIT += "rm_work" # +RMWORK_ORIG_TASK := "${BB_DEFAULT_TASK}" +BB_DEFAULT_TASK = "rm_work_all" + do_rm_work () { cd ${WORKDIR} for dir in * do if [ `basename ${S}` = $dir ]; then - rm -rf $dir/* + rm -rf $dir elif [ $dir != 'temp' ]; then rm -rf $dir fi done } +addtask rm_work after do_${RMWORK_ORIG_TASK} -addtask rmall after do_rm_work -do_rmall[recrdeptask] = "do_rm_work" -do_rmall() { - : +do_rm_work_all () { + : } - - -addtask rm_work before do_build -addtask rm_work after do_populate_staging +do_rm_work_all[recrdeptask] = "do_rm_work" +addtask rm_work_all after do_rm_work |