diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-26 14:40:56 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-01-27 09:40:07 +0000 |
commit | 9a58e312ef596739923f4bc44ff8ecadaa88ddd9 (patch) | |
tree | 2a619255344a8d322ba2e95a36b54a87cc2c6f3d | |
parent | de7a6ab1bab97f60be1f0670d9ba6a41e9e67753 (diff) | |
download | ast2050-yocto-poky-9a58e312ef596739923f4bc44ff8ecadaa88ddd9.zip ast2050-yocto-poky-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>
-rw-r--r-- | meta/classes/sstate.bbclass | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index 0f88a23..4bd3712 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 |