Openembedded Core Discussions
 help / color / mirror / Atom feed
* [image_types_uboot] getdepends for ext2.gz.u-boot
@ 2012-03-02  8:08 Ni Qingliang
  2012-03-02 12:34 ` Richard Purdie
  0 siblings, 1 reply; 5+ messages in thread
From: Ni Qingliang @ 2012-03-02  8:08 UTC (permalink / raw)
  To: openembedded-core

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@insigma.com.cn
https://niqingliang2003.wordpress.com




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-03-02 14:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-02  8:08 [image_types_uboot] getdepends for ext2.gz.u-boot Ni Qingliang
2012-03-02 12:34 ` Richard Purdie
2012-03-02 13:39   ` Gary Thomas
2012-03-02 13:53     ` Richard Purdie
2012-03-02 14:24       ` Gary Thomas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox