Openembedded Core Discussions
 help / color / mirror / Atom feed
* proper use of CORE_IMAGE_EXTRA_INSTALL?
@ 2012-06-19 17:05 Robert P. J. Day
  2012-06-19 17:44 ` Paul Eggleton
  0 siblings, 1 reply; 3+ messages in thread
From: Robert P. J. Day @ 2012-06-19 17:05 UTC (permalink / raw)
  To: OE Core mailing list


  followup to earlier post, it's easy enough to see the point of this
code from core-image.bbclass:

... snip ...

CORE_IMAGE_BASE_INSTALL = '\
    task-core-boot \
    task-base-extended \
    \
    ${CORE_IMAGE_EXTRA_INSTALL} \
    '

CORE_IMAGE_EXTRA_INSTALL ?= ""

IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}"

... snip ...

  but i can see this snippet from
meta/recipes-graphics/images/core-image-gtk-directfb.bb:

... snip ...

inherit core-image

IMAGE_INSTALL += "\
        ${CORE_IMAGE_BASE_INSTALL} \
        task-core-basic \
        task-core-gtk-directfb-base \
"

... snip ...

  now this would seem to be exactly what the variable
CORE_IMAGE_EXTRA_INSTALL was invented for, no?  certainly the above
will work but then what's the point of having
CORE_IMAGE_EXTRA_INSTALL?

  however, if one used that, it's obvious that one would leave the
line "inherit core-image" to near the bottom of the .bb file, but
returning to my earlier question, what is the proper ordering of
setting CORE_IMAGE_EXTRA_INSTALL and inheriting core-image.  it's
clear "inherit core-image" would always work *after*, but what about
before?

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: proper use of CORE_IMAGE_EXTRA_INSTALL?
  2012-06-19 17:05 proper use of CORE_IMAGE_EXTRA_INSTALL? Robert P. J. Day
@ 2012-06-19 17:44 ` Paul Eggleton
  2012-06-19 17:52   ` Robert P. J. Day
  0 siblings, 1 reply; 3+ messages in thread
From: Paul Eggleton @ 2012-06-19 17:44 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: openembedded-core

On Tuesday 19 June 2012 13:05:35 Robert P. J. Day wrote:
>   followup to earlier post, it's easy enough to see the point of this
> code from core-image.bbclass:
> 
> ... snip ...
> 
> CORE_IMAGE_BASE_INSTALL = '\
>     task-core-boot \
>     task-base-extended \
>     \
>     ${CORE_IMAGE_EXTRA_INSTALL} \
>     '
> 
> CORE_IMAGE_EXTRA_INSTALL ?= ""
> 
> IMAGE_INSTALL ?= "${CORE_IMAGE_BASE_INSTALL}"
> 
> ... snip ...
> 
>   but i can see this snippet from
> meta/recipes-graphics/images/core-image-gtk-directfb.bb:
> 
> ... snip ...
> 
> inherit core-image
> 
> IMAGE_INSTALL += "\
>         ${CORE_IMAGE_BASE_INSTALL} \
>         task-core-basic \
>         task-core-gtk-directfb-base \
> "
> 
> ... snip ...
> 
>   now this would seem to be exactly what the variable
> CORE_IMAGE_EXTRA_INSTALL was invented for, no?  certainly the above
> will work but then what's the point of having
> CORE_IMAGE_EXTRA_INSTALL?
> 
>   however, if one used that, it's obvious that one would leave the
> line "inherit core-image" to near the bottom of the .bb file, but
> returning to my earlier question, what is the proper ordering of
> setting CORE_IMAGE_EXTRA_INSTALL and inheriting core-image.  it's
> clear "inherit core-image" would always work *after*, but what about
> before?

I feel like we've gone over this ground quite a lot; but I guess that's 
because our documentation and examples still aren't clear, so fair enough.

There's nothing forcing you into a specific usage here, however we might make 
some recommendations. My recommendation would be to leave 
CORE_IMAGE_EXTRA_INSTALL for use from local.conf - i.e. don't use it in your 
own image recipe; if you want to add things there use IMAGE_INSTALL += or 
IMAGE_INSTALL_append (see other thread).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



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

* Re: proper use of CORE_IMAGE_EXTRA_INSTALL?
  2012-06-19 17:44 ` Paul Eggleton
@ 2012-06-19 17:52   ` Robert P. J. Day
  0 siblings, 0 replies; 3+ messages in thread
From: Robert P. J. Day @ 2012-06-19 17:52 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: openembedded-core

On Tue, 19 Jun 2012, Paul Eggleton wrote:

> On Tuesday 19 June 2012 13:05:35 Robert P. J. Day wrote:
... snip ...
> >
> >   now this would seem to be exactly what the variable
> > CORE_IMAGE_EXTRA_INSTALL was invented for, no?  certainly the above
> > will work but then what's the point of having
> > CORE_IMAGE_EXTRA_INSTALL?
> >
> >   however, if one used that, it's obvious that one would leave the
> > line "inherit core-image" to near the bottom of the .bb file, but
> > returning to my earlier question, what is the proper ordering of
> > setting CORE_IMAGE_EXTRA_INSTALL and inheriting core-image.  it's
> > clear "inherit core-image" would always work *after*, but what about
> > before?
>
> I feel like we've gone over this ground quite a lot; but I guess
> that's because our documentation and examples still aren't clear, so
> fair enough.
>
> There's nothing forcing you into a specific usage here, however we
> might make some recommendations. My recommendation would be to leave
> CORE_IMAGE_EXTRA_INSTALL for use from local.conf - i.e. don't use it
> in your own image recipe; if you want to add things there use
> IMAGE_INSTALL += or IMAGE_INSTALL_append (see other thread).

  and i apologize for beating this so thoroughly -- i'm actually not
suggesting any fundamental changes to the code base; rather, i'm
currently designing an intro course in oe-core/yocto and if i'm going
to use actual recipe files out of oe-core, there's no question i'm
going to have to explain why some of them simply look a bit weird.

  i'm just trying to codify some "best practices".

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:[~2012-06-19 18:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-06-19 17:05 proper use of CORE_IMAGE_EXTRA_INSTALL? Robert P. J. Day
2012-06-19 17:44 ` Paul Eggleton
2012-06-19 17:52   ` 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