From 9a58e312ef596739923f4bc44ff8ecadaa88ddd9 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Thu, 26 Jan 2012 14:40:56 +0000 Subject: sstate.bbclass: Add support for sstate preinst functions (From OE-Core rev: f2b0a71b3100a0d2ceb80300d7f3823a31eb907a) Signed-off-by: Richard Purdie --- meta/classes/sstate.bbclass | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'meta/classes') 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 -- cgit v1.2.3-54-g00ecf