[oe-commits] [openembedded-core] 15/28: image.bbclass: use prependVarFlag for postfuncs

git at git.openembedded.org git at git.openembedded.org
Wed Jun 28 19:56:19 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master
in repository openembedded-core.

commit c5fa6034708b344e184bb6fa361d5ea41371008f
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Fri Jun 16 15:02:07 2017 +0300

    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.
    
    Signed-off-by: Ed Bartosh <ed.bartosh at linux.intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/classes/image.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass
index d806f7e..6e30b96 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -497,7 +497,7 @@ python () {
         d.setVarFlag(task, 'fakeroot', '1')
 
         d.appendVarFlag(task, 'prefuncs', ' ' + debug + ' set_image_size')
-        d.appendVarFlag(task, 'postfuncs', ' create_symlinks')
+        d.prependVarFlag(task, 'postfuncs', ' create_symlinks')
         d.appendVarFlag(task, 'subimages', ' ' + ' '.join(subimages))
         d.appendVarFlag(task, 'vardeps', ' ' + ' '.join(vardeps))
         d.appendVarFlag(task, 'vardepsexclude', 'DATETIME')

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list