[gnome-continuous-yocto/gnomeostree-3.28-rocko: 6563/8267] image.bbclass: use prependVarFlag for postfuncs



commit 6fa6099b493f9fb164bda5f66e678984da83989e
Author: Ed Bartosh <ed bartosh linux intel com>
Date:   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.
    
    (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>

 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 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')


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]