[OE-core] argh ... "_append" versus "+=" and IMAGE_INSTALL confusion

Robert P. J. Day rpjday at crashcourse.ca
Thu Mar 29 19:49:46 UTC 2012


On Thu, 29 Mar 2012, Chris Larson wrote:

> On Thu, Mar 29, 2012 at 12:35 PM, Robert P. J. Day
> <rpjday at crashcourse.ca> wrote:
> > On Thu, 29 Mar 2012, Eric Bénard wrote:
> >
> >> Le Thu, 29 Mar 2012 15:23:20 -0400 (EDT),
> >> "Robert P. J. Day" <rpjday at crashcourse.ca> a écrit :
> >> >   so what is best practise here?
> >> >
> >> for this one you have an answer on OE's wiki :
> >> http://www.openembedded.org/wiki/I_want_an_image_with_package_XYZ_installed
> >
> >  despite the fact that the current reference manual *explicitly*
> > says this?
> >
> > "Using IMAGE_INSTALL with the += operator from the /conf/local.conf
> > file or from within an image recipe is not recommended as it can cause
> > ordering issues."
> >
> >  i actually did my research before i asked that question, you know.
>
> The two aren't conflicting. The wiki page talks about creating an
> image or using bbappend, where += works fine. You have to use _append
> in local.conf because it's postponed, occurs at the end of the parse.
> If you use += there, the recipe will then set IMAGE_INSTALL, blowing
> away the global value you +='d to.

  i'm confused ... the current ref manual specifically (as you can
read above) discourages the use of += "from within an image recipe",
which is *precisely* what the wiki page is advocating.  so, yes, it
*is* conflicting advice.

rday

-- 

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

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


More information about the Openembedded-core mailing list