summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-04 11:27:36 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-02-06 13:12:59 +0000
commit6c6f6b7ffd770418bda92898a5fdf90877e74dde (patch)
tree89eaddee42605845f12d71aa4847e080f96794e1 /meta/classes
parentdd61d225843346f2c4500a54a609e63394f4cc35 (diff)
downloadpoky-6c6f6b7ffd770418bda92898a5fdf90877e74dde.tar.gz
sstate.bbclass: Ensure build directory is cleaned to start with
This directory is cleaned upon completion however if a previous build crashes, it can lead to corrpution, hence ensure its clean at the start too. (From OE-Core rev: 8ef0e59d5a7da3671d1ad9a54fe068ed78f928d5) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/sstate.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 6f77bb9013..118a28a54d 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -444,6 +444,7 @@ def sstate_package(ss, d):
444 444
445 sstatebuild = d.expand("${WORKDIR}/sstate-build-%s/" % ss['name']) 445 sstatebuild = d.expand("${WORKDIR}/sstate-build-%s/" % ss['name'])
446 sstatepkg = d.getVar('SSTATE_PKG', True) + '_'+ ss['name'] + ".tgz" 446 sstatepkg = d.getVar('SSTATE_PKG', True) + '_'+ ss['name'] + ".tgz"
447 bb.utils.remove(sstatebuild, recurse=True)
447 bb.mkdirhier(sstatebuild) 448 bb.mkdirhier(sstatebuild)
448 bb.mkdirhier(os.path.dirname(sstatepkg)) 449 bb.mkdirhier(os.path.dirname(sstatepkg))
449 for state in ss['dirs']: 450 for state in ss['dirs']: