diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-06-14 12:07:05 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-14 14:53:57 +0100 |
commit | 201e4acefba2e807ae04b42185cabe7ca7066823 (patch) | |
tree | 4fdb6ee3012cf9fe6f0a06a337038e2ff724b166 | |
parent | daaed7b28ade1dfb9ba96aa73f8bac23f32e1cb5 (diff) | |
download | poky-201e4acefba2e807ae04b42185cabe7ca7066823.tar.gz |
image.bbclass: improve setup of flags
Replaced setVarFlag calls to appendVarFlag to allow
modification of prefuncs, postfuncs and subimages flags
in inherited image classes.
[YOCTO #11372]
(From OE-Core rev: 6690f3ab43c04fa7cff7215d4a5d8d639e41aed8)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | meta/classes/image.bbclass | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index ff4eda19e9..e18ac721c2 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass | |||
@@ -496,9 +496,10 @@ python () { | |||
496 | d.setVar(task, '\n'.join(cmds)) | 496 | d.setVar(task, '\n'.join(cmds)) |
497 | d.setVarFlag(task, 'func', '1') | 497 | d.setVarFlag(task, 'func', '1') |
498 | d.setVarFlag(task, 'fakeroot', '1') | 498 | d.setVarFlag(task, 'fakeroot', '1') |
499 | d.setVarFlag(task, 'prefuncs', debug + 'set_image_size') | 499 | |
500 | d.setVarFlag(task, 'postfuncs', 'create_symlinks') | 500 | d.appendVarFlag(task, 'prefuncs', ' ' + debug + ' set_image_size') |
501 | d.setVarFlag(task, 'subimages', ' '.join(subimages)) | 501 | d.appendVarFlag(task, 'postfuncs', ' create_symlinks') |
502 | d.appendVarFlag(task, 'subimages', ' ' + ' '.join(subimages)) | ||
502 | d.appendVarFlag(task, 'vardeps', ' '.join(vardeps)) | 503 | d.appendVarFlag(task, 'vardeps', ' '.join(vardeps)) |
503 | d.appendVarFlag(task, 'vardepsexclude', 'DATETIME') | 504 | d.appendVarFlag(task, 'vardepsexclude', 'DATETIME') |
504 | 505 | ||