mirror of
https://git.yoctoproject.org/poky
synced 2026-04-23 09:32:17 +02:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
f93d58378f
commit
6fa6099b49
@@ -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')
|
||||
|
||||
Reference in New Issue
Block a user