Bug 3061 - meta-yocto BBPATH modification makes it difficult use Poky with BSP layers
Summary: meta-yocto BBPATH modification makes it difficult use Poky with BSP layers
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Undecided major
Target Milestone: ---
Assignee: Richard Purdie
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-09-05 10:18 UTC by tf
Modified: 2012-09-05 16:45 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tf 2012-09-05 10:18:59 UTC
meta-yocto preppends itself to BBPATH; seemingly there is a long standing convention in OE that layers should append to the BBPATH, and it seems to be followed by most layers (including oe-core and meta-intel). Breaking this convention makes it difficult to include meta-yocto with other layers, such as BSP layers, because no layer that follows this convention can override config files contained in meta-yocto.

For example, if meta-yocto and meta-ti are included in a project, the beagleboard.conf that is part of meta-yocto will always be used regardless of the order in which the layers are included.

In the absence of any other provision for prioritization of conf files than the ordering of the BBPATH, it is fairly essential that a convention of some sort is followed and meta-yocto seems to be the odd one out here.

Fixing this requires only a small change in the layer.conf and the Yocto bblayers sample file (plus regeneration of bblayers at the user end).

I would be nice if this could be fixed for the 1.4 release.
Comment 1 Richard Purdie 2012-09-05 12:21:17 UTC
Timely as I'm in the middle of some patches which should fix this problem although not the way you're expecting ;-)
Comment 2 tf 2012-09-05 12:45:21 UTC
Excellent, and if fixed in a more robust way than having a 'convention', even better. :)
Comment 3 Richard Purdie 2012-09-05 16:45:44 UTC
Fixed in: http://git.yoctoproject.org/cgit.cgi/poky/commit/?id=2000698b17011bbde1c3e5bb01a7d6763316db5a

You can now select the meta-yocto-bsp and meta-yocto distro policy layers separately. The BSP layer now appends to BBPATH so should resolve this issue. I think its reasonable for the distro policy to prepend which it continues to do so.