summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-24 15:14:31 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-10-30 13:01:21 +0000
commit6476f0bf3dc189948fafedf6be112f875e42225f (patch)
tree1f53dd43c4827612cbf655776a95e0ff816f14b9 /meta/classes
parent678e8798ebe0f4fd1bd347db136f1499b8fe00c9 (diff)
downloadpoky-6476f0bf3dc189948fafedf6be112f875e42225f.tar.gz
rm_work: Speed up rootfs/populate_sdk removal
Commands like bitbake X -c rootfs or bitbake X -c populate_sdk do not trigger rm_work to clean up the directories afterwards since it traditionally hooks onto do_build. This change means those two tasks now clean up after themselves. We use the cleandirs function attribute to handle this. [YOCTO #6413] (From OE-Core rev: 6bf06d80c2ce03dfdedac5ad8cf42ef8e36b0ecb) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/rm_work.bbclass13
1 files changed, 13 insertions, 0 deletions
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass
index f0f6d18249..7b1ec17205 100644
--- a/meta/classes/rm_work.bbclass
+++ b/meta/classes/rm_work.bbclass
@@ -97,3 +97,16 @@ do_rm_work_all () {
97} 97}
98do_rm_work_all[recrdeptask] = "do_rm_work" 98do_rm_work_all[recrdeptask] = "do_rm_work"
99addtask rm_work_all after do_rm_work 99addtask rm_work_all after do_rm_work
100
101do_populate_sdk[postfuncs] += "rm_work_populatesdk"
102rm_work_populatesdk () {
103 :
104}
105rm_work_populatesdk[cleandirs] = "${WORKDIR}/sdk"
106
107do_rootfs[postfuncs] += "rm_work_rootfs"
108rm_work_rootfs () {
109 :
110}
111rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs"
112