aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/image.bbclass
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-06-16 15:02:07 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-28 20:54:54 +0100
commitc5fa6034708b344e184bb6fa361d5ea41371008f (patch)
tree294ec24bc5ef1bf2cdd3b620617158eeaf6fb8d9 /meta/classes/image.bbclass
parentc5f33d466122e53be910fa448af60ef3937eb828 (diff)
downloadopenembedded-core-contrib-c5fa6034708b344e184bb6fa361d5ea41371008f.tar.gz
openembedded-core-contrib-c5fa6034708b344e184bb6fa361d5ea41371008f.tar.bz2
openembedded-core-contrib-c5fa6034708b344e184bb6fa361d5ea41371008f.zip
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@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/classes/image.bbclass')
-rw-r--r--meta/classes/image.bbclass2
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 () {
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')