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 | 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 0f88a23ec9..4bd3712e57 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass | |||
| @@ -17,6 +17,7 @@ BB_HASHFILENAME = "${SSTATE_PKGNAME}" | |||
| 17 | 17 | ||
| 18 | SSTATE_MANMACH ?= "${SSTATE_PKGARCH}" | 18 | SSTATE_MANMACH ?= "${SSTATE_PKGARCH}" |
| 19 | 19 | ||
| 20 | SSTATEPREINSTFUNCS ?= "" | ||
| 20 | SSTATEPOSTINSTFUNCS ?= "" | 21 | SSTATEPOSTINSTFUNCS ?= "" |
| 21 | 22 | ||
| 22 | python () { | 23 | python () { |
| @@ -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 |
