summaryrefslogtreecommitdiffstats
path: root/meta/classes
diff options
context:
space:
mode:
authorZhenhua Luo <zhenhua.luo@nxp.com>2016-06-13 19:47:34 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-06-15 08:35:02 +0100
commit7028192246552fd9e4aa3674da9c30670fd4ec86 (patch)
tree37c9e3770087bb2088077db2f0a55d648f90aeb0 /meta/classes
parent672c024e81108516647b816b0f169740c068d57b (diff)
downloadopenembedded-core-contrib-7028192246552fd9e4aa3674da9c30670fd4ec86.tar.gz
openembedded-core-contrib-7028192246552fd9e4aa3674da9c30670fd4ec86.tar.bz2
openembedded-core-contrib-7028192246552fd9e4aa3674da9c30670fd4ec86.zip
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-<machine>-<yyyymmddhhmmss>.rootfs.ext2.gz: No such file or directory (From OE-Core rev: 46bc438374de74af76d288520c6252c9b7840767) Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r--meta/classes/image.bbclass2
1 files changed, 1 insertions, 1 deletions
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:]