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

* Re: [image_types_uboot] getdepends for ext2.gz.u-boot
  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
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2012-03-02 12:34 UTC (permalink / raw)
  To: niqingliang, Patches and discussions about the oe-core layer

On Fri, 2012-03-02 at 16:08 +0800, Ni Qingliang wrote:
> 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?

Does
http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=78ae63423f123f89a5c72c85539e6ed71bd2653d fix the problem for you?

Cheers,

Richard




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

* Re: [image_types_uboot] getdepends for ext2.gz.u-boot
  2012-03-02 12:34 ` Richard Purdie
@ 2012-03-02 13:39   ` Gary Thomas
  2012-03-02 13:53     ` Richard Purdie
  0 siblings, 1 reply; 5+ messages in thread
From: Gary Thomas @ 2012-03-02 13:39 UTC (permalink / raw)
  To: openembedded-core

On 2012-03-02 05:34, Richard Purdie wrote:
> On Fri, 2012-03-02 at 16:08 +0800, Ni Qingliang wrote:
>> 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?
>
> Does
> http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=78ae63423f123f89a5c72c85539e6ed71bd2653d fix the problem for you?

This looks like what I'm doing with my own generator.  I tried
it, with & without this patch, and I don't get a ext2.gz.u-boot
image, only a broken link.

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



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

* Re: [image_types_uboot] getdepends for ext2.gz.u-boot
  2012-03-02 13:39   ` Gary Thomas
@ 2012-03-02 13:53     ` Richard Purdie
  2012-03-02 14:24       ` Gary Thomas
  0 siblings, 1 reply; 5+ messages in thread
From: Richard Purdie @ 2012-03-02 13:53 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Fri, 2012-03-02 at 06:39 -0700, Gary Thomas wrote:
> On 2012-03-02 05:34, Richard Purdie wrote:
> > On Fri, 2012-03-02 at 16:08 +0800, Ni Qingliang wrote:
> >> 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?
> >
> > Does
> > http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=78ae63423f123f89a5c72c85539e6ed71bd2653d fix the problem for you?
> 
> This looks like what I'm doing with my own generator.  I tried
> it, with & without this patch, and I don't get a ext2.gz.u-boot
> image, only a broken link.

That sounds like what happens if you don't inherit image_types_uboot

Cheers,

Richard





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

* Re: [image_types_uboot] getdepends for ext2.gz.u-boot
  2012-03-02 13:53     ` Richard Purdie
@ 2012-03-02 14:24       ` Gary Thomas
  0 siblings, 0 replies; 5+ messages in thread
From: Gary Thomas @ 2012-03-02 14:24 UTC (permalink / raw)
  To: openembedded-core

On 2012-03-02 06:53, Richard Purdie wrote:
> On Fri, 2012-03-02 at 06:39 -0700, Gary Thomas wrote:
>> On 2012-03-02 05:34, Richard Purdie wrote:
>>> On Fri, 2012-03-02 at 16:08 +0800, Ni Qingliang wrote:
>>>> 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?
>>>
>>> Does
>>> http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=78ae63423f123f89a5c72c85539e6ed71bd2653d fix the problem for you?
>>
>> This looks like what I'm doing with my own generator.  I tried
>> it, with&  without this patch, and I don't get a ext2.gz.u-boot
>> image, only a broken link.
>
> That sounds like what happens if you don't inherit image_types_uboot

Indeed.  This method also works perfectly, thanks!

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------



^ 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