summaryrefslogtreecommitdiff
path: root/classes/rm_work.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@rpsys.net>2007-08-17 08:43:58 +0000
committerRichard Purdie <rpurdie@rpsys.net>2007-08-17 08:43:58 +0000
commit7a8a35bd17dc13b2f0fff11a166f0f19378175ff (patch)
tree38d84ad1a0678f06597e72346e18def805b95612 /classes/rm_work.bbclass
parent1321ab4eccfd223715f616395500e6fc34252c9c (diff)
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
Diffstat (limited to 'classes/rm_work.bbclass')
-rw-r--r--classes/rm_work.bbclass17
1 files changed, 7 insertions, 10 deletions
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"