Skip to contentSkip to conversation

understanding overlays

DISCUSSION Steffen Sledz 3 participants 4 messages Jul 27, 2011 – Jul 30, 2011

lore
Share & tools
lore
#0 lore raw

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

Signature · 7 lines
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:[email protected]
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058
#1 lore raw
Quoted 13 lines · Steffen Sledz

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

Quoted 7 lines

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.

Signature · 5 lines
Christopher Larson
clarson at kergoth dot com
Founder - BitBake, OpenEmbedded, OpenZaurus
Maintainer - Tslib
Senior Software Engineer, Mentor Graphics
#2 lore raw
Quoted 20 lines · Chris Larson
Quoted 19 lines · Steffen Sledz

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

Quoted 6 lines
Quoted 1 line

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?

Signature · 7 lines
DResearch Fahrzeugelektronik GmbH
Otto-Schmirgal-Str. 3, 10319 Berlin, Germany
Tel: +49 30 515932-237 mailto:[email protected]
Fax: +49 30 515932-299
Geschäftsführer: Dr. Michael Weber, Werner Mögle;
Amtsgericht Berlin Charlottenburg; HRB 130120 B;
Ust.-IDNr. DE273952058
#3 lore raw
Quoted 2 lines · Steffen Sledz
Quoted 1 line · Chris Larson

On Wed, Jul 27, 2011 at 7:24 AM, Steffen Sledz <[email protected]>

Quoted 24 lines · wrote:
Quoted 24 lines
Quoted 23 lines

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.

Quoted 7 lines
Quoted 4 lines

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

Signature · 1 line
Khem Raj