summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass5
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 0f88a23ec9..4bd3712e57 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -17,6 +17,7 @@ BB_HASHFILENAME = "${SSTATE_PKGNAME}"
17 17
18SSTATE_MANMACH ?= "${SSTATE_PKGARCH}" 18SSTATE_MANMACH ?= "${SSTATE_PKGARCH}"
19 19
20SSTATEPREINSTFUNCS ?= ""
20SSTATEPOSTINSTFUNCS ?= "" 21SSTATEPOSTINSTFUNCS ?= ""
21 22
22python () { 23python () {
@@ -170,6 +171,10 @@ def sstate_installpkg(ss, d):
170 171
171 d.setVar('SSTATE_INSTDIR', sstateinst) 172 d.setVar('SSTATE_INSTDIR', sstateinst)
172 d.setVar('SSTATE_PKG', sstatepkg) 173 d.setVar('SSTATE_PKG', sstatepkg)
174
175 for preinst in (d.getVar('SSTATEPREINSTFUNCS', True) or '').split():
176 bb.build.exec_func(preinst, d)
177
173 bb.build.exec_func('sstate_unpack_package', d) 178 bb.build.exec_func('sstate_unpack_package', d)
174 179
175 # Fixup hardcoded paths 180 # Fixup hardcoded paths