if d.getVar('SSTATE_SKIP_CREATION') == '1':
return
- sstate_create_package = ['sstate_report_unihash', 'sstate_create_package']
+ sstate_create_package = ['sstate_report_unihash', 'sstate_create_pkgdirs', 'sstate_create_package']
if d.getVar('SSTATE_SIG_KEY'):
sstate_create_package.append('sstate_sign_package')
}
sstate_task_postfunc[dirs] = "${WORKDIR}"
+python sstate_create_pkgdirs () {
+ # report_unihash can change SSTATE_PKG and mkdir -p in shell doesn't own intermediate directories
+ # correctly so do this in an intermediate python task
+ with bb.utils.umask(0o002):
+ bb.utils.mkdirhier(os.path.dirname(d.getVar('SSTATE_PKG')))
+}
#
# Shell function to generate a sstate package from a directory
return
fi
- mkdir --mode=0775 -p `dirname ${SSTATE_PKG}`
TFILE=`mktemp ${SSTATE_PKG}.XXXXXXXX`
OPT="-cS"