[PATCH 13/18] image.bbclass: cleanup DEPLOYDIR

Ed Bartosh
2016-08-30T09:31:18Z

Make sure DEPLOYDIR doesn't contain images from past deployments
to prevent them to be included into sstate manifests.

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
---
meta/classes/image.bbclass | 1 +
1 file changed, 1 insertion(+)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index 3bfc328..bbdfd8a 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -262,6 +262,7 @@ fakeroot python do_image () {
}
do_image[dirs] = "${TOPDIR}"
do_image[umask] = "022"
+do_image[cleandirs] = "${DEPLOYDIR}"
addtask do_image after do_rootfs before do_build

DEPLOYDIR = "${WORKDIR}/deploy-${PN}"
--
2.1.4