On Thu, Dec 6, 2012 at 3:49 PM, Gary Thomas <g...@mlbassoc.com> wrote:

> On 2012-12-06 15:32, Robert P. J. Day wrote:
>
>> On Thu, 6 Dec 2012, Chris Larson wrote:
>>
>>
>>>
>>> On Thu, Dec 6, 2012 at 2:59 PM, Robert P. J. Day <rpj...@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?
>>
>
> I think Chris means you don't need ":=", you should just use "="
>

No, := is required whenever you use THISDIR in a bbappend, unless you
*really* mean the path to the recipe itself, which is unlikely. THISDIR
evaluates based on FILE, which resolves to the current file being parsed,
at the time it's expanded.

Bottom line, what you are trying to create is something that looks like
> this:
>   FILESEXTRAPATHS = "some_path:some_other_path:**even_another_path:"
> so the ":" at the end of the expression should always be there.


Right :)
-- 
Christopher Larson
_______________________________________________
yocto mailing list
yocto@yoctoproject.org
https://lists.yoctoproject.org/listinfo/yocto

Reply via email to