From: Richard Purdie Date: Fri, 17 Aug 2007 08:43:58 +0000 (+0000) Subject: rm_work: Fix to work with bitbake 1.8. Changes to make this optimal need 1.8.8 so... X-Git-Tag: Release-2010-05/1~8943 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7a8a35bd17dc13b2f0fff11a166f0f19378175ff;p=openembedded.git rm_work: Fix to work with bitbake 1.8. Changes to make this optimal need 1.8.8 so they're in comments for now --- diff --git a/classes/rm_work.bbclass b/classes/rm_work.bbclass index e3c92b8572..0f613b7a95 100644 --- a/classes/rm_work.bbclass +++ b/classes/rm_work.bbclass @@ -6,6 +6,9 @@ # INHERIT += "rm_work" # +RMWORK_ORIG_TASK := "${BB_DEFAULT_TASK}" +BB_DEFAULT_TASK = "rm_work" + do_rm_work () { cd ${WORKDIR} for dir in * @@ -17,13 +20,7 @@ do_rm_work () { fi done } - -addtask rmall after do_rm_work -do_rmall[recrdeptask] = "do_rm_work" -do_rmall() { - : -} - - -addtask rm_work before do_build -addtask rm_work after do_populate_staging +# Uncomment me when we can use bitbake 1.8.8 +#addtask rm_work after do_${RMWORK_ORIG_TASK} +addtask rm_work after do_build +do_rm_work[recrdeptask] = "do_rm_work"