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

Robert P. J. Day rpjday at crashcourse.ca
Thu Dec 6 15:16:24 PST 2012


On Thu, 6 Dec 2012, Chris Larson wrote:

>
>
> 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

  ok, that's just silly (but that could be the 9% quebec beer
talking).  if i'm working with just one layer, then this:

FILESEXTRAPATHS_prepend := "rday"

works fine:

FILESPATH="rday/linux-gnueabi:rday/arm:rday/build-linux:rday/pn-netbase:...

if that fails with more than one layer, then that is, quite simply,
asinine.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================


More information about the yocto mailing list