All of lore.kernel.org
 help / color / mirror / Atom feed
* understanding overlays
@ 2011-07-27 14:24 Steffen Sledz
  2011-07-27 16:12 ` Chris Larson
  0 siblings, 1 reply; 4+ messages in thread
From: Steffen Sledz @ 2011-07-27 14:24 UTC (permalink / raw)
  To: openembedded-devel

I'm not really familiar with the oe/bitbake overlay details. So please forgive me if this is a faq. ;-)

Is the overlay package or file based?

Or in other words is the following scenario possible?

base layer:

  recipes/
    foo/
      foo.inc
      foo_x.y.z.bb

overlay:

  recipes/
    foo/
      foo.inc

And than build foo-x.y.z with the foo.inc from the overlay.

Steffen

-- 
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: understanding overlays
  2011-07-27 14:24 understanding overlays Steffen Sledz
@ 2011-07-27 16:12 ` Chris Larson
  2011-07-28  5:48   ` Steffen Sledz
  0 siblings, 1 reply; 4+ messages in thread
From: Chris Larson @ 2011-07-27 16:12 UTC (permalink / raw)
  To: openembedded-devel

On Wed, Jul 27, 2011 at 7:24 AM, Steffen Sledz <sledz@dresearch-fe.de> wrote:
> I'm not really familiar with the oe/bitbake overlay details. So please forgive me if this is a faq. ;-)
>
> Is the overlay package or file based?
>
> Or in other words is the following scenario possible?
>
> base layer:
>
>  recipes/
>    foo/
>      foo.inc
>      foo_x.y.z.bb
>
> overlay:
>
>  recipes/
>    foo/
>      foo.inc
>
> And than build foo-x.y.z with the foo.inc from the overlay.

That depends. If the .bb does 'require foo.inc', then no, it will use
the local one. If it does 'require recipes/foo/foo.inc', then yes, it
will use the overlay one, assuming the overlay is before the main
layer in your BBLAYERS.
-- 
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: understanding overlays
  2011-07-27 16:12 ` Chris Larson
@ 2011-07-28  5:48   ` Steffen Sledz
  2011-07-30 17:07     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Steffen Sledz @ 2011-07-28  5:48 UTC (permalink / raw)
  To: openembedded-devel; +Cc: Chris Larson

On 27.07.2011 18:12, Chris Larson wrote:
> On Wed, Jul 27, 2011 at 7:24 AM, Steffen Sledz <sledz@dresearch-fe.de> wrote:
>> I'm not really familiar with the oe/bitbake overlay details. So please forgive me if this is a faq. ;-)
>>
>> Is the overlay package or file based?
>>
>> Or in other words is the following scenario possible?
>>
>> base layer:
>>
>>  recipes/
>>    foo/
>>      foo.inc
>>      foo_x.y.z.bb
>>
>> overlay:
>>
>>  recipes/
>>    foo/
>>      foo.inc
>>
>> And than build foo-x.y.z with the foo.inc from the overlay.
> 
> That depends. If the .bb does 'require foo.inc', then no, it will use
> the local one. If it does 'require recipes/foo/foo.inc', then yes, it
> will use the overlay one, assuming the overlay is before the main
> layer in your BBLAYERS.

Thx. What about files referenced e.g. in SRC_URI? I assume that always the ones from the 'highest' layer are used. Right?

-- 
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:sledz@dresearch-fe.de
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: understanding overlays
  2011-07-28  5:48   ` Steffen Sledz
@ 2011-07-30 17:07     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2011-07-30 17:07 UTC (permalink / raw)
  To: openembedded-devel

On Thursday, July 28, 2011 07:48:43 AM Steffen Sledz wrote:
> On 27.07.2011 18:12, Chris Larson wrote:
> > On Wed, Jul 27, 2011 at 7:24 AM, Steffen Sledz <sledz@dresearch-fe.de> 
wrote:
> >> I'm not really familiar with the oe/bitbake overlay details. So please
> >> forgive me if this is a faq. ;-)
> >> 
> >> Is the overlay package or file based?
> >> 
> >> Or in other words is the following scenario possible?
> >> 
> >> base layer:
> >>  recipes/
> >>  
> >>    foo/
> >>    
> >>      foo.inc
> >>      foo_x.y.z.bb
> >> 
> >> overlay:
> >>  recipes/
> >>  
> >>    foo/
> >>    
> >>      foo.inc
> >> 
> >> And than build foo-x.y.z with the foo.inc from the overlay.
> > 
> > That depends. If the .bb does 'require foo.inc', then no, it will use
> > the local one. If it does 'require recipes/foo/foo.inc', then yes, it
> > will use the overlay one, assuming the overlay is before the main
> > layer in your BBLAYERS.
> 
> Thx. What about files referenced e.g. in SRC_URI? I assume that always the
> ones from the 'highest' layer are used. Right?

It will consider the BBFILE_PRIORITY for recipe files. but .inc and other 
metadata are searched in order of paths in BBPATH

-- 
Khem Raj



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-07-30 17:16 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-27 14:24 understanding overlays Steffen Sledz
2011-07-27 16:12 ` Chris Larson
2011-07-28  5:48   ` Steffen Sledz
2011-07-30 17:07     ` Khem Raj

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.