All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Martin Jansa <martin.jansa@gmail.com>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-handheld][PATCH] meta-handheld: append to BBPATH instead of prepend so order of bblayers.conf is respected
Date: Sun, 17 Jun 2012 21:54:46 +0100	[thread overview]
Message-ID: <2772761.yp5Fv9bbrf@helios> (raw)
In-Reply-To: <20120616194018.GF3178@jama.jama.net>

On Saturday 16 June 2012 21:40:18 Martin Jansa wrote:
> On Sat, Jun 16, 2012 at 09:37:56PM +0200, Martin Jansa wrote:
> > On Sat, Jun 16, 2012 at 08:28:28PM +0100, Paul Eggleton wrote:
> > > On Saturday 16 June 2012 09:01:17 Martin Jansa wrote:
> > > > On Wed, May 23, 2012 at 05:50:37PM +0200, Martin Jansa wrote:
> > > > > Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
> > > > 
> > > > ping
> > > > 
> > > > > ---
> > > > > 
> > > > >  conf/layer.conf |   11 ++++++++---
> > > > >  1 files changed, 8 insertions(+), 3 deletions(-)
> > > > > 
> > > > > diff --git a/conf/layer.conf b/conf/layer.conf
> > > > > index 7a2441b..31dcb16 100644
> > > > > --- a/conf/layer.conf
> > > > > +++ b/conf/layer.conf
> > > > > @@ -1,13 +1,18 @@
> > > > > 
> > > > >  # Layer configuration for meta-handheld layer
> > > > >  # Copyright 2011 Intel Corporation
> > > > > 
> > > > > -# We have a conf and classes directory, prepend to BBPATH to prefer
> > > > > our
> > > > > versions -BBPATH := "${LAYERDIR}:${BBPATH}"
> > > > > +# We have a conf and classes directory, append to BBPATH
> > > > > +BBPATH .= ":${LAYERDIR}"
> > > > > 
> > > > >  # We have a recipes directory, add to BBFILES
> > > > > 
> > > > > -BBFILES := "${BBFILES} ${LAYERDIR}/recipes-*/*/*.bb
> > > > > ${LAYERDIR}/recipes-*/*/*.bbappend"
> > > > > +BBFILES +=
> > > > > "${LAYERDIR}/recipes-*/*/*.bb ${LAYERDIR}/recipes-*/*/*.bbappend">
> > > > > 
> > > > >  BBFILE_COLLECTIONS += "meta-handheld"
> > > > >  BBFILE_PATTERN_meta-handheld := "^${LAYERDIR}/"
> > > 
> > > I was all set to apply this now (sorry for the delay) and then I noticed
> > > you changed the above without comment - why was that?
> > 
> > Just to match what other layers do, or is there some advantage of using
> > 
> > := instead of += in BBFILES?
> 
> And IIRC there was some discussion about BBFILES :=/+= on ML before
> ba31e4eabd31af63eb0244096c8bcdcac185fac6 changed it in other layers.

Hmm, I couldn't find that discussion, but it doesn't seem to behave any 
differently; but looking at BitBake's layer.conf handling code we explicitly 
expand the LAYERDIR reference immediately anyway, so immediate expansion (:=) 
doesn't do anything. I guess this means the += form is perhaps preferred since 
it makes what we are trying to do more obvious.

Now I've understood the above I've merged this patch, thanks.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



      reply	other threads:[~2012-06-17 21:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-23 15:50 [meta-handheld][PATCH] meta-handheld: append to BBPATH instead of prepend so order of bblayers.conf is respected Martin Jansa
2012-06-16  7:01 ` Martin Jansa
2012-06-16 19:28   ` Paul Eggleton
2012-06-16 19:37     ` Martin Jansa
2012-06-16 19:40       ` Martin Jansa
2012-06-17 20:54         ` Paul Eggleton [this message]

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=2772761.yp5Fv9bbrf@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=martin.jansa@gmail.com \
    --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.