* [PATCH] sstate.bbclass: Add support for sstate preinst functions
@ 2012-01-26 14:40 Richard Purdie
0 siblings, 0 replies; only message in thread
From: Richard Purdie @ 2012-01-26 14:40 UTC (permalink / raw)
To: openembedded-core
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
---
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2012-01-26 14:48 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-26 14:40 [PATCH] sstate.bbclass: Add support for sstate preinst functions Richard Purdie
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox