From: Hongxu Jia Date: Mon, 8 Sep 2014 11:58:20 +0000 (+0100) Subject: sstate: Add extra intercept functions SSTATEPOSTCREATEFUNCS X-Git-Tag: 2015-4~1608 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=ed5fb9c69fcf0f6e8e98f72ac753c66119468ea5;p=openembedded-core.git sstate: Add extra intercept functions SSTATEPOSTCREATEFUNCS In some cases we do either need to add extra sstate manipulation functions, or change the existing modification functions. This patch parametrizes it to SSTATEPOSTCREATEFUNCS after sstate_create_package Signed-off-by: Hongxu Jia Signed-off-by: Saul Wold Signed-off-by: Ross Burton Signed-off-by: Richard Purdie --- diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass index ead829efa0..67e0c1d13a 100644 --- a/meta/classes/sstate.bbclass +++ b/meta/classes/sstate.bbclass @@ -33,6 +33,7 @@ BB_HASHFILENAME = "${SSTATE_EXTRAPATH} ${SSTATE_PKGSPEC} ${SSTATE_SWSPEC}" SSTATE_MANMACH ?= "${SSTATE_PKGARCH}" SSTATECREATEFUNCS = "sstate_hardcode_path" +SSTATEPOSTCREATEFUNCS = "" SSTATEPREINSTFUNCS = "" SSTATEPOSTUNPACKFUNCS = "sstate_hardcode_path_unpack" SSTATEPOSTINSTFUNCS = "" @@ -512,7 +513,8 @@ def sstate_package(ss, d): d.setVar('SSTATE_BUILDDIR', sstatebuild) d.setVar('SSTATE_PKG', sstatepkg) - for f in (d.getVar('SSTATECREATEFUNCS', True) or '').split() + ['sstate_create_package']: + for f in (d.getVar('SSTATECREATEFUNCS', True) or '').split() + ['sstate_create_package'] + \ + (d.getVar('SSTATEPOSTCREATEFUNCS', True) or '').split(): bb.build.exec_func(f, d) bb.siggen.dump_this_task(sstatepkg + ".siginfo", d)