[oe] [RFC] Local files search in overlay folders first

Denis Dydychkin nyrl at mail.ru
Fri Dec 17 16:38:36 UTC 2010


> Chris Larson clarson at kergoth.com 
> Thu Dec 16 16:26:30 CET 2010 

>> What I generally want is to simply replace defconfig with my own without changing recipe and touching other patches.
>> ....
>> It does not work for release-2010.12 of OE and it does not seems to work in master either.
>> ...
>> I believe that changing FILESPATHBASE so that it will look in "recipes/linux/linux-davinci/omapl137" subfolder
>> for each entry in BBPATH in defined order would solve my problem. For given example having 
>> FILESPATHBASE defines as "<topdir>/overlay/recipes/linux:<topdir>/oe/recipes/linux" would be enough.

> Yes, that's correct, and is a common approach among those utilizing
> collections/layers, but I don't believe it's in OE in any form.  A
> .conf for the user/distro to include would likely be a bit cleaner
> than a bbclass.

Thank you for answer Christopher.

I've changed it to .inc and it seems to work; there was also typo in previous file.
 
I attach localfiles-loopup.inc in case it is handful for OE.
In few words: it picks FILE_DIRNAME, tries to guess prefix based on BBPATH entries, then joins suffix with each BBPATH entry. The result is put into FILESPATHBASE which is used to pick local files. 
At the same time I do not understand how BBFILE_COLLECTIONS works, so there might be problems with it.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: localfiles-lookup.inc
Type: application/octet-stream
Size: 537 bytes
Desc: not available
URL: <http://lists.openembedded.org/pipermail/openembedded-devel/attachments/20101217/9aa9a6b6/attachment-0002.obj>


More information about the Openembedded-devel mailing list