From: Gunnar Andersson <gandersson@genivi.org>
To: Bruce Ashfield <bruce.ashfield@windriver.com>, yocto@yoctoproject.org
Cc: "automotive-discussions@lists.linuxfoundation.org"
<automotive-discussions@lists.linuxfoundation.org>
Subject: Re: Idea for bbappend / layer organization and naming convention
Date: Fri, 18 Aug 2017 16:46:19 +0200 [thread overview]
Message-ID: <1503067579.6972.4.camel@genivi.org> (raw)
In-Reply-To: <f75c19c6-e128-5932-fd29-1d3cb92b539d@windriver.com>
On Mon, 2017-08-14 at 23:02 -0400, Bruce Ashfield wrote:
> On 2017-08-14 3:36 PM, Gunnar Andersson wrote:
> >
> > Yocto community,
> >
> > Triggered by the previous email request to yocto@ about best practices
> > for layer organization I'm finally firing off this email for (hopefully)
> > some feedback on an idea we first kicked around, discussed for rough
> > consensus and then decided to implement in the Yocto based GDP project
> > [1]. You can see it as a trial, anything can be changed, but so far so
> > good...
> >
> > We adopted a somewhat novel (but actually not really unique, see inside)
> > naming convention [2] for all modifications to components that belong to
> > other layers.
> >
>
> I've been using a similar naming/sorting mechanism in layers that
> I maintain for several years now.
Great. Is it similar, or /exactly/ like this? I'm only asking because I
think it would be useful to have some written down rules and if there are
additional tweaks that will improve this proposal, I'd like to hear them.
I suspected it might actually be somewhat of a common practice.
> When you have a single layer that is carrying bbappends to many other
> layers, I find that it really helps keep everything separated and aids
> finding the original recipe.
Yes, that is the idea.
>
> (that being said, recent work with layer index, etc, make it
> easier to locate the original recipe and any bbappends .. but that
> doesn't preclude keeping things organized in a layer).
... but I didn't get any more feedback than yours, so I'll just leave it
where it is for now. Maybe this is not something the other Yocto community
cares about, or similar practices are actually done in practice, but not
written down. Or maybe everyone is OK with the state of mixing .bb and
.bbappend files within the layers...
So far I think the initial experience on our side is positive. It's
something that needs to be looked after a bit (we have a few mistakes to
fix). But since some directories will only have .bb files, and others only
.bbappend files, it's therefore easy to script a warning system for anything
that is out of place.
Best Regards
- Gunnar
> Cheers,
>
> Bruce
>
[trimmed]
> > --
> > Gunnar Andersson <gandersson@genivi.org>
> > Development Lead
> > GENIVI Alliance
> >
> > [1] https://github.com/GENIVI/genivi-dev-platform
> > [2] Naming strategy for bitbake extension layers:
> > https://at.projects.genivi.org/wiki/x/w4Xk
next prev parent reply other threads:[~2017-08-18 14:46 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-14 19:36 Idea for bbappend / layer organization and naming convention Gunnar Andersson
2017-08-15 3:02 ` Bruce Ashfield
2017-08-18 14:46 ` Gunnar Andersson [this message]
2017-08-18 18:47 ` Bruce Ashfield
2017-08-18 19:35 ` Mark Hatle
2017-08-20 19:02 ` Stephane Desneux
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=1503067579.6972.4.camel@genivi.org \
--to=gandersson@genivi.org \
--cc=automotive-discussions@lists.linuxfoundation.org \
--cc=bruce.ashfield@windriver.com \
--cc=yocto@yoctoproject.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.