diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-04 11:27:36 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-02-06 13:12:59 +0000 |
commit | 6c6f6b7ffd770418bda92898a5fdf90877e74dde (patch) | |
tree | 89eaddee42605845f12d71aa4847e080f96794e1 /meta/classes | |
parent | dd61d225843346f2c4500a54a609e63394f4cc35 (diff) | |
download | ast2050-yocto-poky-6c6f6b7ffd770418bda92898a5fdf90877e74dde.zip ast2050-yocto-poky-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.bbclass | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 6f77bb9..118a28a 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']: |