mirror of
https://git.yoctoproject.org/poky
synced 2026-06-01 00:59:48 +00:00
image.bbclass: don't execute compression commands multiple times
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] (From OE-Core rev: 94f61c2682e5cfd819ac84535650c3e0a654415a) Signed-off-by: Alexander D. Kanevskiy <kad@kad.name> 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
57136a613b
commit
d73b756d82
@@ -402,9 +402,13 @@ python () {
|
|||||||
# Create input image first.
|
# Create input image first.
|
||||||
gen_conversion_cmds(type)
|
gen_conversion_cmds(type)
|
||||||
localdata.setVar('type', 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)
|
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:
|
if type not in alltypes:
|
||||||
rm_tmp_images.add(localdata.expand("${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"))
|
rm_tmp_images.add(localdata.expand("${IMAGE_NAME}${IMAGE_NAME_SUFFIX}.${type}"))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user