[poky] Distro policy ?

Chris Larson clarson at kergoth.com
Thu Apr 14 14:19:32 PDT 2011


On Thu, Apr 14, 2011 at 2:12 PM, Martin Jansa <martin.jansa at gmail.com> wrote:
> On Thu, Apr 14, 2011 at 01:57:16PM -0700, Chris Larson wrote:
>> On Thu, Apr 14, 2011 at 1:28 PM, Saul Wold <saul.wold at intel.com> wrote:
>> >> So, from the policy side I think we should go with our own layer.
>> >> On the technical side I'm disappointed with this 'include' problem: I
>> >> find it rather impractical to copy things we don't want to change and
>> >> just want to use from one layer to another and then having to keep
>> >> these in sync with mainline.
>>
>> There's no reason you should have to copy unmodified files from one
>> layer to another, ever.  Configuration files are found via BBPATH when
>> they're referenced via a relative path, and file:// files via
>> FILESPATH are easily dealt with as well.  The only time you should
>> have to copy is if you have a need to modify them, particularly as
>> there's no "bbappend" that corresponds to recipe .inc files.  Is there
>> a particular case you're thinking of here?
>
> I guess he was talking about
> require/include some.inc
> used in recipe
>
> Then I had to copy some.inc to same folder there my recipe is. Even when
> it's used in same path relative to layer top dir

Change the recipe to use require/include recipes/foo/bar.inc, relative
to the top of the entry in BBPATH.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics



More information about the poky mailing list