summaryrefslogtreecommitdiff
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:38:23 +0000
commitf2b0a71b3100a0d2ceb80300d7f3823a31eb907a (patch)
treeebfebe64d57b7144e3d08f1d5096561a559a8fe2 /meta/classes/sstate.bbclass
parent6437e7315a0f2e077f9d69e4b65b48280ea8edbc (diff)
downloadopenembedded-core-f2b0a71b3100a0d2ceb80300d7f3823a31eb907a.tar.gz
openembedded-core-f2b0a71b3100a0d2ceb80300d7f3823a31eb907a.tar.bz2
openembedded-core-f2b0a71b3100a0d2ceb80300d7f3823a31eb907a.zip
sstate.bbclass: Add support for sstate preinst functions
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}"
SSTATE_MANMACH ?= "${SSTATE_PKGARCH}"
+SSTATEPREINSTFUNCS ?= ""
SSTATEPOSTINSTFUNCS ?= ""
python () {
@@ -170,6 +171,10 @@ def sstate_installpkg(ss, d):
d.setVar('SSTATE_INSTDIR', sstateinst)
d.setVar('SSTATE_PKG', sstatepkg)
+
+ for preinst in (d.getVar('SSTATEPREINSTFUNCS', True) or '').split():
+ bb.build.exec_func(preinst, d)
+
bb.build.exec_func('sstate_unpack_package', d)
# Fixup hardcoded paths