[yocto] FILESEXTRAPATHS needs to be explained *way* better

Chris Larson clarson at kergoth.com
Thu Dec 6 14:35:27 PST 2012


On Thu, Dec 6, 2012 at 3:32 PM, Robert P. J. Day <rpjday at crashcourse.ca>wrote:

> On Thu, 6 Dec 2012, Chris Larson wrote:
>
> >
> >
> > On Thu, Dec 6, 2012 at 2:59 PM, Robert P. J. Day <rpjday at crashcourse.ca>
> wrote:
> >         in addition, there is absolutely no need to add a ":" to the
> value
> >       as the processing adds that for you, so the many, many examples of
> >
> >       FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
> >
> >       is potentially confusing to folks reading the code.  (that trailing
> >       ":" doesn't hurt, but it has no value.)
> >
> >
> > This is wrong. You only don't need the leading : if FILESEXTRAPATHS
> > was empty to begin with, which is only the case if that is the first
> > and only bbappend adding to it. As soon as you get more than one,
> > you'll end up with concatenated values and no separator.
>
>   i'm confused, not sure what this means.  what is the *proper* usage
> of that variable?


As I'm pretty sure you've already been told in one of the other 2 threads
about this, it's a colon separated list of paths. If you go appending to it
without a separator, you're going to end up with something useless.

layer1/.../foo.bbappend
FILESEXTRAPATHS_prepend = "${THISDIR}/foo"

layer2/.../foo.bbappend
FILESEXTRAPATHS_prepend = "${THISDIR}/bar"

resulting FILESEXTRAPATHS: layer1/.../foo/layer2/.../bar
-- 
Christopher Larson
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/yocto/attachments/20121206/fa69e306/attachment.html>


More information about the yocto mailing list