sstate.bbclass: Remove the temp sstate-build-* directories in WORKDIR
authorDongxiao Xu <dongxiao.xu@intel.com>
Thu, 11 Nov 2010 08:27:05 +0000 (16:27 +0800)
committerSaul Wold <sgw@linux.intel.com>
Mon, 15 Nov 2010 05:08:23 +0000 (21:08 -0800)
Remove the temp sstate-build-* directoies.
Take poky-image-minimal as an example, this saves about 17% disk space.

Signed-off-by: Dongxiao Xu <dongxiao.xu@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/sstate.bbclass

index eb003fc..3696a8c 100644 (file)
@@ -358,6 +358,9 @@ sstate_create_package () {
 
        cd ${SSTATE_BUILDDIR}
        tar -cvzf ${SSTATE_PKG} *
+
+       cd ${WORKDIR}
+       rm -rf ${SSTATE_BUILDDIR}
 }
 
 #