From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Gary Thomas <gary@mlbassoc.com>
Cc: openembedded-core@lists.openembedded.org
Subject: Re: [PATCH 1/1] insane: add checking to standardize how .bbappend files do FILESEXTRAPATHS
Date: Fri, 25 Jul 2014 19:35:25 +0100 [thread overview]
Message-ID: <1406313325.27697.42.camel@ted> (raw)
In-Reply-To: <53D2930C.8090709@mlbassoc.com>
On Fri, 2014-07-25 at 11:25 -0600, Gary Thomas wrote:
> On 2014-07-22 21:33, Hongxu Jia wrote:
> > When adding patches or config files from bbappend files, it requires
> > the use of FILESEXTRAPATHS, which has been an issue and failure point
> > for people starting to work with bitbake and oe-core.
> >
> > We add checking to standardize how to use FILESEXTRAPATHS. Only the
> > format of:
> > FILESEXTRAPATHS_append := ":${THISDIR}/Your_Files_Path" or
> > FILESEXTRAPATHS_prepend := "${THISDIR}/Your_Files_Path:"
> > is acceptable.
> >
> > [YOCTO #5412]
> >
> > Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
> > ---
> > meta/classes/insane.bbclass | 13 +++++++++++++
> > meta/classes/utils.bbclass | 2 ++
> > meta/conf/bitbake.conf | 2 ++
> > 3 files changed, 17 insertions(+)
> >
> > diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
> > index b26216e..6b1c9ad 100644
> > --- a/meta/classes/insane.bbclass
> > +++ b/meta/classes/insane.bbclass
> > @@ -1022,6 +1022,19 @@ python () {
> > # Check various variables
> > ###########################################################################
> >
> > + # Checking ${FILESEXTRAPATHS}
> > + extrapaths = (d.getVar("FILESEXTRAPATHS", True) or "")
> > + if '__default' not in extrapaths.split(":"):
> > + msg = "FILESEXTRAPATHS-variable, must always use _prepend (or _append)\n"
> > + msg += "type of assignment, and don't forget the colon.\n"
> > + msg += "Please assign it with the format of:\n"
> > + msg += " FILESEXTRAPATHS_append := \":${THISDIR}/Your_Files_Path\" or\n"
> > + msg += " FILESEXTRAPATHS_prepend := \"${THISDIR}/Your_Files_Path:\"\n"
> > + msg += "in your bbappend file\n\n"
> > + msg += "Your incorrect assignment is:\n"
> > + msg += "%s\n" % extrapaths
> > + bb.fatal(msg)
>
> It sure would have been nice (even polite?) to make this a warning when first
> added. As is, it's going to break a lot of builds and it will be very tedious
> to fix since the parser will die on the first one it finds :-(
Agreed, I'll change this to a warning.
Cheers,
Richard
next prev parent reply other threads:[~2014-07-25 18:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-23 3:33 [PATCH V3 0/1] insane: add checking to standardize how .bbappend files do FILESEXTRAPATHS Hongxu Jia
2014-07-23 3:33 ` [PATCH 1/1] " Hongxu Jia
2014-07-25 17:25 ` Gary Thomas
2014-07-25 18:35 ` Richard Purdie [this message]
2014-07-25 19:02 ` Gary Thomas
2014-07-25 8:22 ` [PATCH V3 0/1] " Hongxu Jia
-- strict thread matches above, loose matches on Subject: below --
2014-07-21 6:17 [PATCH V2 " Hongxu Jia
2014-07-21 6:17 ` [PATCH 1/1] " Hongxu Jia
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=1406313325.27697.42.camel@ted \
--to=richard.purdie@linuxfoundation.org \
--cc=gary@mlbassoc.com \
--cc=openembedded-core@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox