diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-06-16 15:02:07 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-28 20:55:08 +0100 |
commit | 6fa6099b493f9fb164bda5f66e678984da83989e (patch) | |
tree | 284b1ddcfe92f34f1e313861f103677595d8f19f | |
parent | f93d58378fb4095a18c1403de03ca0e13ce465cd (diff) | |
download | poky-6fa6099b493f9fb164bda5f66e678984da83989e.tar.gz |
image.bbclass: use prependVarFlag for postfuncs
It would be possible to achieve any order of calling functions if
prefuncs are added with appendVarFlag and postfuncs with prependVarFlag.
Then image_X.bbclass can add code with either pre/post-funcs or
do_image_x_append or _prepend.
The execution order would be:
image_X prefuncs
image prefuncs
do_image_X_prepend from image_X.bbclass
do_image_X from image.bbclass
do_image_X_append from image_X.bbclass
image postfuncs
image_X postfuncs
[YOCTO #11372]
Thanks to Ola Nillsson for the idea.
(From OE-Core rev: c5fa6034708b344e184bb6fa361d5ea41371008f)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/image.bbclass | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index d806f7ea45..6e30b96745 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -497,7 +497,7 @@ python () { | |||
497 | d.setVarFlag(task, 'fakeroot', '1') | 497 | d.setVarFlag(task, 'fakeroot', '1') |
498 | 498 | ||
499 | d.appendVarFlag(task, 'prefuncs', ' ' + debug + ' set_image_size') | 499 | d.appendVarFlag(task, 'prefuncs', ' ' + debug + ' set_image_size') |
500 | d.appendVarFlag(task, 'postfuncs', ' create_symlinks') | 500 | d.prependVarFlag(task, 'postfuncs', ' create_symlinks') |
501 | d.appendVarFlag(task, 'subimages', ' ' + ' '.join(subimages)) | 501 | d.appendVarFlag(task, 'subimages', ' ' + ' '.join(subimages)) |
502 | d.appendVarFlag(task, 'vardeps', ' ' + ' '.join(vardeps)) | 502 | d.appendVarFlag(task, 'vardeps', ' ' + ' '.join(vardeps)) |
503 | d.appendVarFlag(task, 'vardepsexclude', 'DATETIME') | 503 | d.appendVarFlag(task, 'vardepsexclude', 'DATETIME') |