[oe] [oe-core] THISDIR usage

Gary Thomas gary at mlbassoc.com
Wed Apr 11 11:05:41 UTC 2012


On 2012-04-11 04:52, Giuseppe Condorelli wrote:
> Many thanks for the reply, I tried the suggestion but I obtained this:
>
> "Unable to fetch URL file://myfile.tar.gz from any source"
>
> What's happening?

Does your layer look like the pseudo tree quoted below?  Can you send the
results of 'tree meta-giuseppe'?

One way to get a glimpse of where bitbake is looking for your file is to
use strace (GIANT hammer) like this:
   % strace -o /tmp/xx.bb -f bitbake some-recipe
   % grep myfile.tar.gz /tmp/xx.bb
This way you can see the paths being searched.

> Il giorno mercoledì 11 aprile 2012, Gary Thomas ha scritto:
>
>> On 2012-04-11 04:23, Giuseppe Condorelli wrote:
>>
>>> Hi, I moved to OE-Core (working on stable version dowloaded as tar file
>>> from cgit.openembedded.org).
>>> I'm in trouble trying to include a source through .bbappend file, located
>>> under my meta-<personal>   subtree.
>>>
>>> FILESPATHBASE_prepend := "${THISDIR}/files:"
>>> SRC_URI += "file://myfile.tar.gz"
>>>
>>> results in a no such file or directory. Please can you tell me if I'm
>>> missing anything?
>>>
>>
>> Assuming your tree looks something like this [partial]:
>>
>>   meta-giuseppe:
>>     recipes:
>>       some-recipe:
>>         some-recipe_1.2.3.bbappend
>>         files:
>>           myfile.tar.gz
>>
>> Try using this instead
>>   FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

-- 
------------------------------------------------------------
Gary Thomas                 |  Consulting for the
MLB Associates              |    Embedded world
------------------------------------------------------------




More information about the Openembedded-devel mailing list