In case of chained conversion methods are used via COMPRESS_CMD_* there is chance that some of steps would be executed multiple times.
[YOCTO #9482] Signed-off-by: Alexander D. Kanevskiy <[email protected]> --- meta/classes/image.bbclass | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 8bfd241..5d6f4a3 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -398,9 +398,13 @@ python () { # Create input image first. gen_conversion_cmds(type) localdata.setVar('type', type) - cmds.append("\t" + localdata.getVar("COMPRESS_CMD_" + ctype, True)) + cmd = "\t" + localdata.getVar("COMPRESS_CMD_" + ctype, True) + if cmd not in cmds: + cmds.append(cmd) vardeps.add('COMPRESS_CMD_' + ctype) - subimages.append(type + "." + ctype) + subimage = type + "." + ctype + if subimage not in subimages: + subimages.append(subimage) if type not in alltypes: rm_tmp_images.add(localdata.expand("${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}")) -- 2.8.1 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
