summaryrefslogtreecommitdiff
path: root/meta
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-12-31 10:17:00 +0000
commit38b1f9d8e4fa9afb8644e4be55191fbe5cfd99a1 (patch)
tree987e3775925d4bd3d2cf63e394911e53cc83f18a /meta
parent2defde75799c669d531fddee005758ec13884aab (diff)
downloadopenembedded-core-38b1f9d8e4fa9afb8644e4be55191fbe5cfd99a1.tar.gz
openembedded-core-38b1f9d8e4fa9afb8644e4be55191fbe5cfd99a1.tar.bz2
openembedded-core-38b1f9d8e4fa9afb8644e4be55191fbe5cfd99a1.zip
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> Signed-off-by: Armin Kuster <akuster808@gmail.com>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/rm_work.bbclass12
1 files changed, 12 insertions, 0 deletions
diff --git a/meta/classes/rm_work.bbclass b/meta/classes/rm_work.bbclass
index f0f6d18249..7979a53a38 100644
--- a/meta/classes/rm_work.bbclass
+++ b/meta/classes/rm_work.bbclass
@@ -97,3 +97,15 @@ do_rm_work_all () {
}
do_rm_work_all[recrdeptask] = "do_rm_work"
addtask rm_work_all after do_rm_work
+
+do_populate_sdk[postfuncs] += "rm_work_populatesdk"
+rm_work_populatesdk () {
+ :
+}
+rm_work_populatesdk[cleandirs] = "${WORKDIR}/sdk"
+
+do_rootfs[postfuncs] += "rm_work_rootfs"
+rm_work_rootfs () {
+ :
+}
+rm_work_rootfs[cleandirs] = "${WORKDIR}/rootfs"