]> code.ossystems Code Review - openembedded-core.git/commit
image.bbclass: use prependVarFlag for postfuncs
authorEd Bartosh <ed.bartosh@linux.intel.com>
Fri, 16 Jun 2017 12:02:07 +0000 (15:02 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 28 Jun 2017 19:54:54 +0000 (20:54 +0100)
commitc5fa6034708b344e184bb6fa361d5ea41371008f
tree294ec24bc5ef1bf2cdd3b620617158eeaf6fb8d9
parentc5f33d466122e53be910fa448af60ef3937eb828
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>
meta/classes/image.bbclass