]> code.ossystems Code Review - openembedded-core.git/commitdiff
kernel: Clean DEPLOYDIR before do_deploy runs
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jan 2016 15:07:34 +0000 (15:07 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 25 Jan 2016 15:10:49 +0000 (15:10 +0000)
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>
meta/classes/kernel.bbclass

index dee6f7db24333b56db495322169b28f22acce1a5..f37affc6a9112ebae281aecef93e71aef84a4425 100644 (file)
@@ -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"