summaryrefslogtreecommitdiffstats
path: root/meta
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-29 19:37:19 +0100
commitf7b994b75261550faa3ccf9005fc174950c7bee9 (patch)
treee021e2abb8b71f236188a1ba3d13a3de190277f1 /meta
parent720ae184031db33049f9be6326f9735224183492 (diff)
downloadpoky-f7b994b75261550faa3ccf9005fc174950c7bee9.tar.gz
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) (From OE-Core rev: 1d0ea655e266e7c5acc9c282fa91406fbe9bfb85) Signed-off-by: Zhenhua Luo <zhenhua.luo@nxp.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 6b9f9798db..64eb845fbe 100644
--- a/meta/classes/image.bbclass
+++ b/meta/classes/image.bbclass
@@ -395,7 +395,7 @@ python () {
395 rm_tmp_images = set() 395 rm_tmp_images = set()
396 def gen_conversion_cmds(bt): 396 def gen_conversion_cmds(bt):
397 for ctype in ctypes: 397 for ctype in ctypes:
398 if bt.endswith("." + ctype): 398 if bt[bt.find('.') + 1:] == ctype:
399 type = bt[0:-len(ctype) - 1] 399 type = bt[0:-len(ctype) - 1]
400 if type.startswith("debugfs_"): 400 if type.startswith("debugfs_"):
401 type = type[8:] 401 type = type[8:]