diff options
author | Hongxu Jia <hongxu.jia@windriver.com> | 2014-09-08 12:58:20 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-09-10 11:33:23 +0100 |
commit | 5f26c0292bdb7b8b3286567f42e697c17a09bbc1 (patch) | |
tree | 753a224e0c501a0ba85dfc5a3456d1a5d17bd431 /meta/classes/sstate.bbclass | |
parent | d06839e7ddb51c83dfdf831e4473254b16be5f22 (diff) | |
download | poky-5f26c0292bdb7b8b3286567f42e697c17a09bbc1.tar.gz |
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
(From OE-Core rev: ed5fb9c69fcf0f6e8e98f72ac753c66119468ea5)
Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r-- | meta/classes/sstate.bbclass | 4 |
1 files changed, 3 insertions, 1 deletions
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}" | |||
33 | SSTATE_MANMACH ?= "${SSTATE_PKGARCH}" | 33 | SSTATE_MANMACH ?= "${SSTATE_PKGARCH}" |
34 | 34 | ||
35 | SSTATECREATEFUNCS = "sstate_hardcode_path" | 35 | SSTATECREATEFUNCS = "sstate_hardcode_path" |
36 | SSTATEPOSTCREATEFUNCS = "" | ||
36 | SSTATEPREINSTFUNCS = "" | 37 | SSTATEPREINSTFUNCS = "" |
37 | SSTATEPOSTUNPACKFUNCS = "sstate_hardcode_path_unpack" | 38 | SSTATEPOSTUNPACKFUNCS = "sstate_hardcode_path_unpack" |
38 | SSTATEPOSTINSTFUNCS = "" | 39 | SSTATEPOSTINSTFUNCS = "" |
@@ -512,7 +513,8 @@ def sstate_package(ss, d): | |||
512 | d.setVar('SSTATE_BUILDDIR', sstatebuild) | 513 | d.setVar('SSTATE_BUILDDIR', sstatebuild) |
513 | d.setVar('SSTATE_PKG', sstatepkg) | 514 | d.setVar('SSTATE_PKG', sstatepkg) |
514 | 515 | ||
515 | for f in (d.getVar('SSTATECREATEFUNCS', True) or '').split() + ['sstate_create_package']: | 516 | for f in (d.getVar('SSTATECREATEFUNCS', True) or '').split() + ['sstate_create_package'] + \ |
517 | (d.getVar('SSTATEPOSTCREATEFUNCS', True) or '').split(): | ||
516 | bb.build.exec_func(f, d) | 518 | bb.build.exec_func(f, d) |
517 | 519 | ||
518 | bb.siggen.dump_this_task(sstatepkg + ".siginfo", d) | 520 | bb.siggen.dump_this_task(sstatepkg + ".siginfo", d) |