| Submitter | Richard Purdie |
|---|---|
| Date | Jan. 26, 2012, 2:40 p.m. |
| Message ID | <1327588856.19643.386.camel@ted> |
| Download | mbox | patch |
| Permalink | /patch/20187/ |
| State | Accepted |
| Commit | f2b0a71b3100a0d2ceb80300d7f3823a31eb907a |
| Headers | show |
Comments
Patch
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
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> ---