From: Zhenhua Luo Date: Mon, 13 Jun 2016 11:47:34 +0000 (+0800) Subject: image.bbclass: do exact match for rootfs type X-Git-Tag: uninative-1.3~663 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=46bc438374de74af76d288520c6252c9b7840767;p=openembedded-core.git image.bbclass: do exact match for rootfs type Do exact match for rootfs type, instead of pattern match, to avoid unexpected build error due to redundant rootfs type build. E.g. when building ext2.gz.u-boot, both .gz.u-boot and .u-boot are matched, the following build error will appear, actually .u-boot is not needed. | mkimage: Can't open .../core-image-minimal--.rootfs.ext2.gz: No such file or directory Signed-off-by: Zhenhua Luo Signed-off-by: Richard Purdie --- diff --git a/meta/classes/image.bbclass b/meta/classes/image.bbclass index 65ce6bb524..2577cca733 100644 --- a/meta/classes/image.bbclass +++ b/meta/classes/image.bbclass @@ -404,7 +404,7 @@ python () { rm_tmp_images = set() def gen_conversion_cmds(bt): for ctype in ctypes: - if bt.endswith("." + ctype): + if bt[bt.find('.') + 1:] == ctype: type = bt[0:-len(ctype) - 1] if type.startswith("debugfs_"): type = type[8:]