From: Richard Purdie <rpurdie@rpsys.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: RFC: Improve our default conf file setup
Date: Tue, 16 Feb 2010 15:36:44 +0000 [thread overview]
Message-ID: <1266334604.6436.159.camel@rex> (raw)
In-Reply-To: <b6ebd0a51002160616m462683b3nd2f4b17524395ddf@mail.gmail.com>
On Tue, 2010-02-16 at 07:16 -0700, Chris Larson wrote:
> On Tue, Feb 16, 2010 at 4:49 AM, Richard Purdie <rpurdie@rpsys.net> wrote:
>
> > On Tue, 2010-02-16 at 11:58 +0100, Frans Meulenbroeks wrote:
> > > Sounds quite nice.
> > > Didn't study the class code, but it would be nice if within layer.conf
> > > I could use a relative path, which then is turned into an absolute
> > > path when the layer.conf file is read
> >
> > This is what the LAYERDIR variable gives us.
> >
> > Having relative paths would lose all context outside the layer.conf
> > file. We could hardcode a list of variables that needed to be processed
> > and so on but LAYERDIR removes all that complexity whilst still letting
> > you move things around.
> >
> > > That means layer.conf can become very standard wrt BBPATH etc. and you
> > > can even move layers around.
> >
> > You should be able to do that with my proposal, the only file that would
> > need changing is bblayers.conf, not the layers themselves.
>
> Can you explain what the use case is for needing this much control? I find
> it unlikely that it would be problematic to simply add each layer as a full
> path to a list of layers in a single file, and leave it at that (i.e.
> bblayers.conf). If site files aren't in the layer, they won't be used. If
> recipes aren't around, they won't be used. It seems a bit silly if every
> layer.conf ends up being a copy of every other layer.conf. And this sort of
> blind copying tends to lead to problems and cruft (just look at distros that
> copy angstrom).
Several reasons:
a) I like the idea of a given overlay shipping with a description in
some form of what it contains. Its intuitive.
b) I don't want to hardcode behaviour in bitbake (see c/d)
c) Are recipes in a recipes or a packages directory?
d) How deep are the paths to the .bb files?
e) What priority are assigned to the layers?
f) Should a given layer append or prepend to BBPATH?
It also means that if we add some kind of new functionality we have to
update bitbake to add the appropriate variables, or add horrible
anonymous methods to poke around BBLAYERS.
When the alternative is a single .conf file describing a layer, I know
which I prefer even if most might be two lines of boilerplate.
I was also thinking of your recursive bitbake 'abomination' ;-). With
this new functionality, its possible some code in one of the layers
could check ahead and checkout other layers if it noticed they were
missing. We'd need some additional code for that but its an idea in the
back of my mind.
Cheers,
Richard
next prev parent reply other threads:[~2010-02-16 15:39 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-16 10:34 RFC: Improve our default conf file setup Richard Purdie
2010-02-16 10:58 ` Frans Meulenbroeks
2010-02-16 11:00 ` Frans Meulenbroeks
2010-02-16 11:49 ` Richard Purdie
2010-02-16 14:16 ` Chris Larson
2010-02-16 15:36 ` Richard Purdie [this message]
2010-02-18 7:47 ` Frans Meulenbroeks
2010-02-18 9:09 ` Marcin Juszkiewicz
2010-02-18 16:13 ` Chris Larson
2010-02-18 16:58 ` Richard Purdie
2010-02-20 1:39 ` Chris Larson
2010-02-20 22:58 ` Richard Purdie
2010-02-21 1:19 ` Chris Larson
2010-02-23 17:55 ` Richard Purdie
2010-02-23 18:14 ` Chris Larson
2010-02-16 11:15 ` Marco Cavallini
2010-02-16 11:47 ` Richard Purdie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1266334604.6436.159.camel@rex \
--to=rpurdie@rpsys.net \
--cc=openembedded-devel@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.