Skip to contentSkip to conversation

Append to bblayers.conf and local.conf

DISCUSSION Olsson Rikard (RBSN/ESW1) 4 participants 7 messages Apr 1, 2016 – Apr 4, 2016

lore
Share & tools
lore
#0 lore raw

Hello Yocto team,

We are receiving bblayer.conf and local.conf from external supplier which already have layers/configuration added. Now we want to add our own layers/configuration by appending to these files this to avoid manual merge work each time a delivery from external supplier is made.

Question:
How do I append layers/configuration to bblayer.conf and local.conf?

Best regards
Rikard Olsson

#1 lore raw
Quoted 9 lines · On Apr 1, 2016, at 5:59 AM, Olsson Rikard (RBSN/ESW1)…

Hello Yocto team,

We are receiving bblayer.conf and local.conf from external supplier which already have layers/configuration added. Now we want to add our own layers/configuration by appending to these files this to avoid manual merge work each time a delivery from external supplier is made.

Question:
How do I append layers/configuration to bblayer.conf and local.conf?

look at bitbake-layers tool

bitbake-layers add-layer <your-layer>

might be helpful.

Quoted 9 lines

Best regards
Rikard Olsson

--
_______________________________________________
yocto mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/yocto

#2 lore raw
In reply to Olsson Rikard (RBSN/ESW1)

Hi Rikard,

Quoted 9 lines · On Fri, 01 Apr 2016 12:59:08 Olsson Rikard wrote:

Hello Yocto team,

We are receiving bblayer.conf and local.conf from external supplier which already have layers/configuration added. Now we want to add our own layers/configuration by appending to these files this to avoid manual merge work each time a delivery from external supplier is made.

Question:
How do I append layers/configuration to bblayer.conf and local.conf?

The best answer I can give is these files aren't really meant to be distributed. If you have too much specific stuff in these files (particularly local.conf) then I would say it's possible your supplier has put things in the wrong place.

The way it ought to work is, you add the needed layers to your bblayers.conf, then go to your local.conf and set DISTRO and MACHINE and anything you need for *local* configuration (e.g. local paths) and that's pretty much it. If you have to include a whole bunch of extra lines in local.conf, those lines really should be elsewhere (e.g. custom distro config, or the machine .conf file if they are specific to the machine.)

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
#3 lore raw
Quoted 13 lines · Paul Eggleton
Quoted 7 lines

We are receiving bblayer.conf and local.conf from external supplier which already have layers/configuration added. Now we want to add our own layers/configuration by appending to these files this to avoid manual merge work each time a delivery from external supplier is made.

Question:
How do I append layers/configuration to bblayer.conf and local.conf?

The best answer I can give is these files aren't really meant to be distributed. If you have too much specific stuff in these files (particularly local.conf) then I would say it's possible your supplier has put things in the wrong place.

Quoted 6 lines

The way it ought to work is, you add the needed layers to your bblayers.conf, then go to your local.conf and set DISTRO and MACHINE and anything you need for *local* configuration (e.g. local paths) and that's pretty much it. If you have to include a whole bunch of extra lines in local.conf, those lines really should be elsewhere (e.g. custom distro config, or the machine .conf file if they are specific to the machine.)

Note that you can use conf/auto.conf and conf/site.conf as well, these files are parsed at the same time as conf/local.conf, so if you really cannot change local.conf, you can use the one of the other ones.

#4 lore raw

Hello Nicolas,

Thanks for your answer. Will these two files conf/auto.conf and conf/site.conf be able to handle changes for bblayers.conf as well?

For example we need to add meta-qt5 but would prefer to append to the layers already there and not add our changes into bblayers.conf to avoid merge work.

Best regards
Rikard Olsson

Quoted 35 lines

-----Original Message-----
From: Nicolas Dechesne [mailto:[email protected]]
Sent: den 4 april 2016 11:30
To: Paul Eggleton <[email protected]>
Cc: Olsson Rikard (RBSN/ESW1) <[email protected]>; Yocto list discussion <[email protected]>
Subject: Re: [yocto] Append to bblayers.conf and local.conf

Quoted 14 lines · Paul Eggleton
Quoted 7 lines

We are receiving bblayer.conf and local.conf from external supplier which already have layers/configuration added. Now we want to add our own layers/configuration by appending to these files this to avoid manual merge work each time a delivery from external supplier is made.

Question:
How do I append layers/configuration to bblayer.conf and local.conf?

The best answer I can give is these files aren't really meant to be distributed. If you have too much specific stuff in these files (particularly
local.conf) then I would say it's possible your supplier has put things in the wrong place.

Quoted 7 lines

The way it ought to work is, you add the needed layers to your bblayers.conf, then go to your local.conf and set DISTRO and MACHINE and anything you need for *local* configuration (e.g. local paths) and that's pretty much it. If you have to include a whole bunch of extra lines in local.conf, those lines really should be elsewhere (e.g. custom distro config, or the machine .conf file if they are specific to the machine.)

Note that you can use conf/auto.conf and conf/site.conf as well, these files are parsed at the same time as conf/local.conf, so if you really cannot change local.conf, you can use the one of the other ones.

#5 lore raw
Quoted 1 line · On Mon, Apr 4, 2016 at 2:43 PM, Olsson Rikard (RBSN/ESW1)…

Thanks for your answer. Will these two files conf/auto.conf and conf/site.conf be able to handle changes for bblayers.conf as well?

no.

Quoted 3 lines

For example we need to add meta-qt5 but would prefer to append to the layers already there and not add our changes into bblayers.conf to avoid merge work.

bblayers.conf is parsed by bitbake directly, and i don't think you can use another file for it. Khem's suggestion to use "bitbake-layer add-layer" would let you override bblayers.conf 'dynamically' without having to archive it..

#6 lore raw
Quoted 8 lines · On Mon, 04 Apr 2016 14:57:06 Nicolas Dechesne wrote:

On Mon, Apr 4, 2016 at 2:43 PM, Olsson Rikard (RBSN/ESW1)

Quoted 2 lines · <[email protected]> wrote:

Thanks for your answer. Will these two files conf/auto.conf and conf/site.conf be able to handle changes for bblayers.conf as well?

no.

Quoted 8 lines
Quoted 3 lines

For example we need to add meta-qt5 but would prefer to append to the layers already there and not add our changes into bblayers.conf to avoid merge work.

bblayers.conf is parsed by bitbake directly, and i don't think you can use another file for it. Khem's suggestion to use "bitbake-layer add-layer" would let you override bblayers.conf 'dynamically' without having to archive it..

In case it's not clear, all bitbake-layers add-layer does is provide you with an easy way to modify bblayers.conf.

Cheers,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre