aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2012-01-26 14:40:56 +0000
committerJoshua Lock <josh@linux.intel.com>2012-05-21 22:14:07 -0700
commit8ca7387ff2dd788221a16021ec98b4aee946a187 (patch)
tree2714a6568671bd7f098437c8be8139575847e75a
parentc6148b8dde3e0fddc4135b48fd6d01e2de662919 (diff)
downloadopenembedded-core-8ca7387ff2dd788221a16021ec98b4aee946a187.zip
openembedded-core-8ca7387ff2dd788221a16021ec98b4aee946a187.tar.gz
openembedded-core-8ca7387ff2dd788221a16021ec98b4aee946a187.tar.bz2
sstate.bbclass: Add support for sstate preinst functions
(From OE-Core rev: f2b0a71b3100a0d2ceb80300d7f3823a31eb907a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Joshua Lock <josh@linux.intel.com>
-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 25cea26..e86085e 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):
bb.data.setVar('SSTATE_INSTDIR', sstateinst, d)
bb.data.setVar('SSTATE_PKG', sstatepkg, d)
+
+ 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