Openembedded Core Discussions
 help / color / mirror / Atom feed
* any value in keeping INITRAMFS_TASK?
@ 2015-02-26 20:59 Robert P. J. Day
  2015-02-27  8:27 ` Andrea Adami
  0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2015-02-26 20:59 UTC (permalink / raw)
  To: OE Core mailing list


  just tripped over INITRAMFS_TASK in kernel.bbclass, which claims to
be only for backward compatibility and should be replaced by
INITRAMFS_IMAGE:

    # NOTE: setting INITRAMFS_TASK is for backward compatibility
    #       The preferred method is to set INITRAMFS_IMAGE, because
    #       this INITRAMFS_TASK has circular dependency problems
    #       if the initramfs requires kernel modules

but i still see usage over in
meta-openembedded/meta-initramfs/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.1[07].bb:

INITRAMFS_IMAGE = "initramfs-kexecboot-klibc-image"
INITRAMFS_TASK = "${INITRAMFS_IMAGE}:do_rootfs"

should that be updated, and INITRAMFS_TASK tossed?

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


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

* Re: any value in keeping INITRAMFS_TASK?
  2015-02-26 20:59 any value in keeping INITRAMFS_TASK? Robert P. J. Day
@ 2015-02-27  8:27 ` Andrea Adami
  2015-02-27  8:40   ` Robert P. J. Day
  0 siblings, 1 reply; 3+ messages in thread
From: Andrea Adami @ 2015-02-27  8:27 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: OE Core mailing list

On Thu, Feb 26, 2015 at 9:59 PM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
>
>   just tripped over INITRAMFS_TASK in kernel.bbclass, which claims to
> be only for backward compatibility and should be replaced by
> INITRAMFS_IMAGE:
>
>     # NOTE: setting INITRAMFS_TASK is for backward compatibility
>     #       The preferred method is to set INITRAMFS_IMAGE, because
>     #       this INITRAMFS_TASK has circular dependency problems
>     #       if the initramfs requires kernel modules
>
> but i still see usage over in
> meta-openembedded/meta-initramfs/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.1[07].bb:
>
> INITRAMFS_IMAGE = "initramfs-kexecboot-klibc-image"
> INITRAMFS_TASK = "${INITRAMFS_IMAGE}:do_rootfs"
>
> should that be updated, and INITRAMFS_TASK tossed?
>
> rday
>
> --
>
> ========================================================================
> Robert P. J. Day                                 Ottawa, Ontario, CANADA
>                         http://crashcourse.ca
>
> Twitter:                                       http://twitter.com/rpjday
> LinkedIn:                               http://ca.linkedin.com/in/rpjday
> ========================================================================
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


Robert,

this is is an unobvious way to allow the build in one pass of:
- a standard kernel (without initramfs)
- a second kernel embedding an initramfs

The 'preferred method' does inject the initramfs in any recipe using
kernel.bbclass so to keep the old behavior (selectively add the
initramfs) we can circumvent it using INITRAMFS_TASK.

So no, please, don't toss it ;)

Cheers

Andrea


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

* Re: any value in keeping INITRAMFS_TASK?
  2015-02-27  8:27 ` Andrea Adami
@ 2015-02-27  8:40   ` Robert P. J. Day
  0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2015-02-27  8:40 UTC (permalink / raw)
  To: Andrea Adami; +Cc: OE Core mailing list

On Fri, 27 Feb 2015, Andrea Adami wrote:

> On Thu, Feb 26, 2015 at 9:59 PM, Robert P. J. Day <rpjday@crashcourse.ca> wrote:
> >
> >   just tripped over INITRAMFS_TASK in kernel.bbclass, which claims to
> > be only for backward compatibility and should be replaced by
> > INITRAMFS_IMAGE:
> >
> >     # NOTE: setting INITRAMFS_TASK is for backward compatibility
> >     #       The preferred method is to set INITRAMFS_IMAGE, because
> >     #       this INITRAMFS_TASK has circular dependency problems
> >     #       if the initramfs requires kernel modules
> >
> > but i still see usage over in
> > meta-openembedded/meta-initramfs/recipes-kernel/linux/linux-yocto-tiny-kexecboot_3.1[07].bb:
> >
> > INITRAMFS_IMAGE = "initramfs-kexecboot-klibc-image"
> > INITRAMFS_TASK = "${INITRAMFS_IMAGE}:do_rootfs"
> >
> > should that be updated, and INITRAMFS_TASK tossed?

> Robert,
>
> this is is an unobvious way to allow the build in one pass of:
> - a standard kernel (without initramfs)
> - a second kernel embedding an initramfs
>
> The 'preferred method' does inject the initramfs in any recipe using
> kernel.bbclass so to keep the old behavior (selectively add the
> initramfs) we can circumvent it using INITRAMFS_TASK.
>
> So no, please, don't toss it ;)

  which is fine, but then it shouldn't be described as discouraged or
only for backward compatibility. and perhaps it should be listed in
the YP reference manual in the variable glossary as well.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


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

end of thread, other threads:[~2015-02-27  8:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-26 20:59 any value in keeping INITRAMFS_TASK? Robert P. J. Day
2015-02-27  8:27 ` Andrea Adami
2015-02-27  8:40   ` Robert P. J. Day

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