summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-25 15:07:34 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-01-25 15:10:49 +0000
commit3ac195bbd4ced24e6a132cfbe5e175b95fc4664b (patch)
treee0a1670d7e4c90d4d85da739a6c63178123761bc
parent77fcdfdc83f01f1ff0ae310ebb7bffbdb4330156 (diff)
downloadopenembedded-core-3ac195bbd4ced24e6a132cfbe5e175b95fc4664b.tar.gz
openembedded-core-3ac195bbd4ced24e6a132cfbe5e175b95fc4664b.tar.bz2
openembedded-core-3ac195bbd4ced24e6a132cfbe5e175b95fc4664b.zip
kernel: Clean DEPLOYDIR before do_deploy runs
If we don't do this, the deploy sstate object contains an every increasing number of modules tarballs and kernel images, one per execution of "-c deploy -f". Cleaning the directory before we start makes things much tidier. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/classes/kernel.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/kernel.bbclass b/meta/classes/kernel.bbclass
index dee6f7db24..f37affc6a9 100644
--- a/meta/classes/kernel.bbclass
+++ b/meta/classes/kernel.bbclass
@@ -511,6 +511,7 @@ kernel_do_deploy() {
ln -sf ${initramfs_base_name}.bin ${initramfs_symlink_name}.bin
fi
}
+do_deploy[cleandirs] = "${DEPLOYDIR}"
do_deploy[dirs] = "${DEPLOYDIR} ${B}"
do_deploy[prefuncs] += "package_get_auto_pr"