All of lore.kernel.org
 help / color / mirror / Atom feed
* Append to bblayers.conf and local.conf
@ 2016-04-01 12:59 Olsson Rikard (RBSN/ESW1)
  2016-04-02  8:04 ` Khem Raj
  2016-04-03 20:54 ` Paul Eggleton
  0 siblings, 2 replies; 7+ messages in thread
From: Olsson Rikard (RBSN/ESW1) @ 2016-04-01 12:59 UTC (permalink / raw)
  To: yocto

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



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

* Re: Append to bblayers.conf and local.conf
  2016-04-01 12:59 Append to bblayers.conf and local.conf Olsson Rikard (RBSN/ESW1)
@ 2016-04-02  8:04 ` Khem Raj
  2016-04-03 20:54 ` Paul Eggleton
  1 sibling, 0 replies; 7+ messages in thread
From: Khem Raj @ 2016-04-02  8:04 UTC (permalink / raw)
  To: Olsson Rikard (RBSN/ESW1); +Cc: yocto

[-- Attachment #1: Type: text/plain, Size: 784 bytes --]


> On Apr 1, 2016, at 5:59 AM, Olsson Rikard (RBSN/ESW1) <Rikard.Olsson@se.bosch.com> 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?

look at bitbake-layers tool

bitbake-layers add-layer <your-layer>

might be helpful.

> 
> Best regards
> Rikard Olsson
> 
> --
> _______________________________________________
> yocto mailing list
> yocto@yoctoproject.org
> https://lists.yoctoproject.org/listinfo/yocto


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

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

* Re: Append to bblayers.conf and local.conf
  2016-04-01 12:59 Append to bblayers.conf and local.conf Olsson Rikard (RBSN/ESW1)
  2016-04-02  8:04 ` Khem Raj
@ 2016-04-03 20:54 ` Paul Eggleton
  2016-04-04  9:30   ` Nicolas Dechesne
  1 sibling, 1 reply; 7+ messages in thread
From: Paul Eggleton @ 2016-04-03 20:54 UTC (permalink / raw)
  To: Olsson Rikard (RBSN/ESW1); +Cc: yocto

Hi Rikard,

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

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

* Re: Append to bblayers.conf and local.conf
  2016-04-03 20:54 ` Paul Eggleton
@ 2016-04-04  9:30   ` Nicolas Dechesne
  2016-04-04 12:43     ` Olsson Rikard (RBSN/ESW1)
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Dechesne @ 2016-04-04  9:30 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: Yocto list discussion

On Sun, Apr 3, 2016 at 10:54 PM, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
>> 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.)

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.


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

* Re: Append to bblayers.conf and local.conf
  2016-04-04  9:30   ` Nicolas Dechesne
@ 2016-04-04 12:43     ` Olsson Rikard (RBSN/ESW1)
  2016-04-04 12:57       ` Nicolas Dechesne
  0 siblings, 1 reply; 7+ messages in thread
From: Olsson Rikard (RBSN/ESW1) @ 2016-04-04 12:43 UTC (permalink / raw)
  To: Nicolas Dechesne, Paul Eggleton; +Cc: Yocto list discussion

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




> -----Original Message-----
> From: Nicolas Dechesne [mailto:nicolas.dechesne@linaro.org]
> Sent: den 4 april 2016 11:30
> To: Paul Eggleton <paul.eggleton@linux.intel.com>
> Cc: Olsson Rikard (RBSN/ESW1) <Rikard.Olsson@se.bosch.com>; Yocto list
> discussion <yocto@yoctoproject.org>
> Subject: Re: [yocto] Append to bblayers.conf and local.conf
> 
> On Sun, Apr 3, 2016 at 10:54 PM, Paul Eggleton <paul.eggleton@linux.intel.com>
> wrote:
> >> 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.)
> 
> 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.

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

* Re: Append to bblayers.conf and local.conf
  2016-04-04 12:43     ` Olsson Rikard (RBSN/ESW1)
@ 2016-04-04 12:57       ` Nicolas Dechesne
  2016-04-04 20:26         ` Paul Eggleton
  0 siblings, 1 reply; 7+ messages in thread
From: Nicolas Dechesne @ 2016-04-04 12:57 UTC (permalink / raw)
  To: Olsson Rikard (RBSN/ESW1); +Cc: Paul Eggleton, Yocto list discussion

On Mon, Apr 4, 2016 at 2:43 PM, Olsson Rikard (RBSN/ESW1)
<Rikard.Olsson@se.bosch.com> 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.

>
> 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..


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

* Re: Append to bblayers.conf and local.conf
  2016-04-04 12:57       ` Nicolas Dechesne
@ 2016-04-04 20:26         ` Paul Eggleton
  0 siblings, 0 replies; 7+ messages in thread
From: Paul Eggleton @ 2016-04-04 20:26 UTC (permalink / raw)
  To: Olsson Rikard (RBSN/ESW1); +Cc: Yocto list discussion

On Mon, 04 Apr 2016 14:57:06 Nicolas Dechesne wrote:
> On Mon, Apr 4, 2016 at 2:43 PM, Olsson Rikard (RBSN/ESW1)
> 
> <Rikard.Olsson@se.bosch.com> 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.
> 
> > 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

-- 

Paul Eggleton
Intel Open Source Technology Centre


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

end of thread, other threads:[~2016-04-04 20:26 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-01 12:59 Append to bblayers.conf and local.conf Olsson Rikard (RBSN/ESW1)
2016-04-02  8:04 ` Khem Raj
2016-04-03 20:54 ` Paul Eggleton
2016-04-04  9:30   ` Nicolas Dechesne
2016-04-04 12:43     ` Olsson Rikard (RBSN/ESW1)
2016-04-04 12:57       ` Nicolas Dechesne
2016-04-04 20:26         ` Paul Eggleton

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.