mirror of
https://git.yoctoproject.org/poky
synced 2026-04-22 06:32:12 +02:00
image.bbclass: Sorted ctypes to avoid basehash error
When selected multiple subimages a similar error could happend:
Variable do_image_cpio[subimages] value changed \
from 'cpio.gz.u-boot cpio.gz' to 'cpio.gz cpio.gz.u-boot'
To avoid this, 'ctypes' should be sorted at 'gen_conversion_cmds'.
This garantee that 'CONVERSION_CMD_xxx' are always written in tha same
order and consequently 'do_image_cpio' have the same hash.
(From OE-Core rev: 271f1a5f65b8685a1e3645026876251122ef3974)
(From OE-Core rev: 404a04a862a71a5a0fb1c20b6bc9fc9c8b2bb98c)
Signed-off-by: Gerson Fernando Budke <nandojve@gmail.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
30613467d8
commit
717303e6fb
@@ -453,7 +453,7 @@ python () {
|
||||
|
||||
rm_tmp_images = set()
|
||||
def gen_conversion_cmds(bt):
|
||||
for ctype in ctypes:
|
||||
for ctype in sorted(ctypes):
|
||||
if bt.endswith("." + ctype):
|
||||
type = bt[0:-len(ctype) - 1]
|
||||
if type.startswith("debugfs_"):
|
||||
|
||||
Reference in New Issue
Block a user