summaryrefslogtreecommitdiff
path: root/meta/classes/sstate.bbclass
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:11:19 +0000
commit8ef0e59d5a7da3671d1ad9a54fe068ed78f928d5 (patch)
tree17652452f0db94240efdc9462ee2b19d18db33a4 /meta/classes/sstate.bbclass
parent8e373e69acac853213a62afb8bbdf0adc0c5045a (diff)
downloadopenembedded-core-8ef0e59d5a7da3671d1ad9a54fe068ed78f928d5.tar.gz
openembedded-core-8ef0e59d5a7da3671d1ad9a54fe068ed78f928d5.tar.bz2
openembedded-core-8ef0e59d5a7da3671d1ad9a54fe068ed78f928d5.zip
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. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-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):
sstatebuild = d.expand("${WORKDIR}/sstate-build-%s/" % ss['name'])
sstatepkg = d.getVar('SSTATE_PKG', True) + '_'+ ss['name'] + ".tgz"
+ bb.utils.remove(sstatebuild, recurse=True)
bb.mkdirhier(sstatebuild)
bb.mkdirhier(os.path.dirname(sstatepkg))
for state in ss['dirs']: