Openembedded Core Discussions
 help / color / mirror / Atom feed
* more pedantry: inconsistent presentation of how to introduce layers
@ 2012-07-24  9:04 Robert P. J. Day
  2012-07-24  9:15 ` Paul Eggleton
  0 siblings, 1 reply; 6+ messages in thread
From: Robert P. J. Day @ 2012-07-24  9:04 UTC (permalink / raw)
  To: OE Core mailing list


  i asked about this not that long ago but i'm still a bit puzzled --
what's the best practice for adding new layers in terms of how
bblayers.conf and the various layer.conf files are defined?

  the default layer.conf for oe-core contains:

BBPATH .= ":${LAYERDIR}"
...
BBFILE_PRIORITY_normal = "5"

so, clearly, the oe-core layer is being *appended* to whatever is in
BBPATH.  ok, let's go with that.

  on the other hand, that same file for the meta-yocto layer contains:

BBPATH := "${LAYERDIR}:${BBPATH}"
...
BBFILE_PRIORITY_yocto = "5"

so it's being *prepended*.  is that deliberate?  the end result is
that my BBPATH is:

/home/rpjday/yocto/git/meta-yocto:/home/rpjday/yocto/builds/bbc4:/home/rpjday/yocto/git/meta

which clearly represents:

 * the yocto layer
 * my build layer
 * the oe-core layer

with both the yocto and oe-core layer having priority 5.  is there no
chance of confusion here?

  in addition, the yocto development manual itself, in section 4.1.2
on layers, stresses the use of:

BBPATH := "${LAYERDIR}:${BBPATH}"

but every single meta-openembedded sub-layer uses the *other* form:

BBPATH .= ":${LAYERDIR}"

  anyone reading the manual and trying to match it up to the code is
bound to get confused.  thoughts?

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] 6+ messages in thread

end of thread, other threads:[~2012-07-24  9:54 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-07-24  9:04 more pedantry: inconsistent presentation of how to introduce layers Robert P. J. Day
2012-07-24  9:15 ` Paul Eggleton
2012-07-24  9:20   ` Paul Eggleton
2012-07-24  9:25   ` Robert P. J. Day
2012-07-24  9:29   ` Martin Jansa
2012-07-24  9:43     ` Paul Eggleton

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