summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-06-14 12:07:05 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-14 14:44:59 +0100
commit6690f3ab43c04fa7cff7215d4a5d8d639e41aed8 (patch)
tree4002187a0cbbd6c58323381abe09e1ee7ed589ff
parentd24dd95f2c1c7f773875454bee3f2016c4e7553c (diff)
downloadopenembedded-core-contrib-6690f3ab43c04fa7cff7215d4a5d8d639e41aed8.tar.gz
openembedded-core-contrib-6690f3ab43c04fa7cff7215d4a5d8d639e41aed8.tar.bz2
openembedded-core-contrib-6690f3ab43c04fa7cff7215d4a5d8d639e41aed8.zip
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] 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.bbclass7
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 () {
d.setVar(task, '\n'.join(cmds))
d.setVarFlag(task, 'func', '1')
d.setVarFlag(task, 'fakeroot', '1')
- d.setVarFlag(task, 'prefuncs', debug + 'set_image_size')
- d.setVarFlag(task, 'postfuncs', 'create_symlinks')
- d.setVarFlag(task, 'subimages', ' '.join(subimages))
+
+ d.appendVarFlag(task, 'prefuncs', ' ' + debug + ' set_image_size')
+ d.appendVarFlag(task, 'postfuncs', ' create_symlinks')
+ d.appendVarFlag(task, 'subimages', ' ' + ' '.join(subimages))
d.appendVarFlag(task, 'vardeps', ' '.join(vardeps))
d.appendVarFlag(task, 'vardepsexclude', 'DATETIME')