Bug 790 - Layer dependency support
Summary: Layer dependency support
Status: RESOLVED FIXED
Alias: None
Product: Other YP Layers
Classification: Build System, Metadata & Runtime
Component: layers (show other bugs)
Version: unspecified
Hardware: x86 Multiple
: Low enhancement
Target Milestone: 1.1
Assignee: Paul Eggleton
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2011-03-02 08:24 UTC by Jonathan Dahan
Modified: 2011-07-08 15:46 UTC (History)
4 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 Jonathan Dahan 2011-03-02 08:24:54 UTC
It would be useful to have one BSP layer depend on N other layers, probably set in layer.conf .

It seems WR's build system already had layer information, but it did not guarantee ordering. It does guarantee all the necessary layers are available on the local machine, which is a good start.

BSP layers already include priority information, so it shouldn't be too much of a stretch to have implicit priority set by the BSP layer dependency resolver.

This would allow foo-1.23::meta-bar to have priority over foo-1.24::meta-baz if meta-bar depends on meta-baz. This behavior should be overridable but I do believe it encourages de-duplication of effort.
Comment 1 Joshua Lock - Disabled 2011-05-02 21:06:05 UTC
I wonder how much extra work it would be to enable dependencies on single recipes, or sets of recipes, from a layer. I think this would be really useful (I want my layer to use a couple of recipes from meta-openembedded but not have to parse every recipe in there).

I guess this should be reasonably easy using similar notation to BBFILE_PATTERN
Comment 2 Paul Eggleton 2011-07-06 08:11:21 UTC
I've now implemented layer dependencies, and the patch has now been merged into bitbake/poky. You can set a layer to be dependent on another, with optional versioning. The priority can be set manually as previously, or left unset and dependencies will be used to work out the appropriate priority value.

See here for further details:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=3bf2d2103e4b600b01ef99dca7ba1a47bd4438f1
Comment 3 Saul Wold 2011-07-08 15:46:47 UTC
See commit meesage above