[oe] [RFC] recipes/images/${distro}

Tom Rini tom_rini at mentor.com
Mon Mar 1 16:05:05 UTC 2010


On Sun, 2010-02-28 at 21:09 +0100, k.kooia wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On 27-02-10 22:27, Tom Rini wrote:
> > On Sat, 2010-02-27 at 20:46 +0000, Phil Blundell wrote:
> >> On Sat, 2010-02-27 at 16:56 +0000, Graeme Gregory wrote:
> >>> NAK on creating extra levels.
> >>>
> >>> Changing the level where recipes are held is not an option do to the way
> >>> you tell bitbake how to find them.
> >>>
> >>> BBFILES = "${OE}/org.openembedded.dev/recipes/*/*.bb"
> >>
> >> Is that really such a big deal?  We seemed to manage to switch BBFILES
> >> from /packages/ to /recipes/ without any major casualties, and I would
> >> have thought that adding an extra level in there would be equally
> >> straightforward.  Or of course, even better, the distro-specific recipes
> >> could go in an overlay which the distro config would select.
> > 
> > I think you've just hit on a potentially great idea.  Say that
> > 'openembedded' supports 'micro' and 'minimal' as two example
> > distributions.  Move everyone else into their own distro overlay.  The
> > only problem with this, perhaps, is easily adding the distro overlay
> > itself into the right env vars. :(
> 
> Move every distro out of OE, that way people need to set the overlays
> correctly.
> 
> This does mean that we abandon the "sharing" aspect that started OE
> since every little "improvement" will be done in the distro overlay
> instead of OE.

Outside of the OE repo, no.  Outside of "conf/" yes.  And yes, this
would require some re-org, perhaps.  Or perhaps not (and we make
something like contrib/ but, I don't know, I suck at naming).  And yes,
with an updated local.conf.sample, getting the overlay stuff right is
trivial.

But yes, not generically done at all improvements would end up in the
distro overlay until someone wanted to fix it generically.

Think of it this way, it would also make it easier to show how to make a
"custom Angstrom" the right way, rather than cp
conf/distro/angstrom-2008.1.conf conf/distro/mydistro.conf which I have
gathered would be a good thing.

-- 
Tom Rini <tom_rini at mentor.com>
Mentor Graphics Corporation




More information about the Openembedded-devel mailing list