summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-26 14:40:56 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-27 09:40:07 +0000
commit9a58e312ef596739923f4bc44ff8ecadaa88ddd9 (patch)
tree2a619255344a8d322ba2e95a36b54a87cc2c6f3d /meta/classes/sstate.bbclass
parentde7a6ab1bab97f60be1f0670d9ba6a41e9e67753 (diff)
downloadpoky-9a58e312ef596739923f4bc44ff8ecadaa88ddd9.tar.gz
sstate.bbclass: Add support for sstate preinst functions
(From OE-Core rev: f2b0a71b3100a0d2ceb80300d7f3823a31eb907a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
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