[OE-core] [image_types_uboot] getdepends for ext2.gz.u-boot

Ni Qingliang niqingliang at insigma.com.cn
Fri Mar 2 08:08:59 UTC 2012


Hello,

when using ext2.gz.u-boot as IMAGE_FSTYPES, I got error when doing
rootfs with error info:
genext2fs: command not found

after checked fuction imagetypes_getdepends, I guess the ext2's
dependency is not considered. maybe we should assign 'ext2' to
'basetype', but not 'type' directly.

Any idea?

def imagetypes_getdepends(d):
    ...
    for type in (d.getVar('IMAGE_FSTYPES', True) or "").split():
        ...
        basetype = type		# ??????????????????
        for ctype in ctypes:
            if type.endswith("." + ctype):
                basetype = type.rsplit(".", 1)[0]
                adddep(d.getVar("COMPRESS_DEPENDS_%s" % ctype, True),
deps)
                break
        adddep(d.getVar('IMAGE_DEPENDS_%s' % basetype, True) , deps)

    depstr = ""
    for dep in deps:
        depstr += " " + dep + ":do_populate_sysroot"
    return depstr


-- 
Yi Qingliang
niqingliang at insigma.com.cn
https://niqingliang2003.wordpress.com





More information about the Openembedded-core mailing list