summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-11 10:08:58 +0000
committerArmin Kuster <akuster808@gmail.com>2020-01-02 19:23:58 -0800
commit7ce42a30a7508e8fcb496ba05cf6967dc04a988e (patch)
treed925ae366b8a5b36134d9158d31e951191de52bd
parentbfed8be91525478ecdf6b64e6308958b3271c8cc (diff)
downloadopenembedded-core-contrib-7ce42a30a7508e8fcb496ba05cf6967dc04a988e.tar.gz
sstate: Ensure target sstate directory exists if unihash changes
The previous patches meant the mkdir might no longer match the final target directory. Fix this. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 0af4dae84099e8632a9ea6a4afdbea2f232bb170) Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta/classes/sstate.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index a46dd2e210..79ae392116 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -613,10 +613,8 @@ def sstate_package(ss, d):
sstatebuild = d.expand("${WORKDIR}/sstate-build-%s/" % ss['task'])
d.appendVar('SSTATE_PKG', '_'+ ss['task'] + ".tgz")
- sstatepkg = d.getVar('SSTATE_PKG')
bb.utils.remove(sstatebuild, recurse=True)
bb.utils.mkdirhier(sstatebuild)
- bb.utils.mkdirhier(os.path.dirname(sstatepkg))
for state in ss['dirs']:
if not os.path.exists(state[1]):
continue
@@ -756,6 +754,8 @@ sstate_create_package () {
return
fi
+ mkdir -p `dirname ${SSTATE_PKG}`
+
# Use pigz if available
OPT="-czS"
if [ -x "$(command -v pigz)" ]; then