mirror of
https://git.yoctoproject.org/poky
synced 2026-04-21 12:32:15 +02:00
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. (From OE-Core rev: 7ce42a30a7508e8fcb496ba05cf6967dc04a988e) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 0af4dae84099e8632a9ea6a4afdbea2f232bb170) Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user