All of lore.kernel.org
 help / color / mirror / Atom feed
* overwrite LAYERSERIES_COMPAT_ for different layer
@ 2020-05-25 11:17 TRO
  2020-05-25 13:10 ` [yocto] " Martin Jansa
  0 siblings, 1 reply; 5+ messages in thread
From: TRO @ 2020-05-25 11:17 UTC (permalink / raw)
  To: yocto

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

Hi,
have an issue with a layer which doesn't have the current dunfell release in it's LAYERSERIES_COMPAT_
-> can I overwrite it somehow in a different layer or local.conf?
-> can I configure the error "...is not compatible with the core layer..." to a warning?
cheers, Thomas

[-- Attachment #2: Type: text/html, Size: 303 bytes --]

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

* Re: [yocto] overwrite LAYERSERIES_COMPAT_ for different layer
  2020-05-25 11:17 overwrite LAYERSERIES_COMPAT_ for different layer TRO
@ 2020-05-25 13:10 ` Martin Jansa
  2020-05-25 13:28   ` Quentin Schulz
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Jansa @ 2020-05-25 13:10 UTC (permalink / raw)
  To: TRO; +Cc: Yocto-mailing-list

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

You can add a layer which will set LAYERSERIES_COMPAT for another layer,
but it needs to be parsed before the layer you want to change, e.g.:
https://github.com/webosose/meta-webosose/blob/thud/meta-qt5-compat/conf/layer.conf
it's useful to use this layer also to implement whatever modifications are
needed to make the layer to be actually compatible with the release you're
using, like:
https://github.com/webOS-ports/meta-webos-ports/tree/zeus/meta-qt5-compat

On Mon, May 25, 2020 at 1:17 PM TRO <thomas.roos@industronic.de> wrote:

> Hi,
> have an issue with a layer which doesn't have the current dunfell release
> in it's LAYERSERIES_COMPAT_
> -> can I overwrite it somehow in a different layer or local.conf?
> -> can I configure the error "...is not compatible with the core layer..."
> to a warning?
> cheers, Thomas 
>

[-- Attachment #2: Type: text/html, Size: 1374 bytes --]

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

* Re: [yocto] overwrite LAYERSERIES_COMPAT_ for different layer
  2020-05-25 13:10 ` [yocto] " Martin Jansa
@ 2020-05-25 13:28   ` Quentin Schulz
  2020-05-26  6:18     ` TRO
  2020-05-28  0:40     ` [yocto] " Denys Dmytriyenko
  0 siblings, 2 replies; 5+ messages in thread
From: Quentin Schulz @ 2020-05-25 13:28 UTC (permalink / raw)
  To: Martin Jansa; +Cc: TRO, Yocto-mailing-list

On Mon, May 25, 2020 at 03:10:39PM +0200, Martin Jansa wrote:
> You can add a layer which will set LAYERSERIES_COMPAT for another layer,
> but it needs to be parsed before the layer you want to change, e.g.:
> https://github.com/webosose/meta-webosose/blob/thud/meta-qt5-compat/conf/layer.conf
> it's useful to use this layer also to implement whatever modifications are
> needed to make the layer to be actually compatible with the release you're
> using, like:
> https://github.com/webOS-ports/meta-webos-ports/tree/zeus/meta-qt5-compat
> 

FWIW, you could make the parsing order not matter (at least in thud,
from a quick look, master as well). LAYERSERIES_COMPAT is resolved after
all layer.conf have been parsed[1]. I do not know if it's on purpose or
not, meaning it could well disappear in the near future.

So you could override it from anywhere by using __append but it has to
be done before or during the conf/layer.conf parsing. This also makes it
future proof wrt layer priorities and how LAYERSERIES_COMPAT is set (+=,
=, ?= ?).

I personally have it in conf/bblayers.conf (for some reason we "ship"
this one, though it's not best practice IIRC).

[1] https://git.yoctoproject.org/cgit.cgi/poky/tree/bitbake/lib/bb/cookerdata.py?h=thud#n399

Cheers,
Quentin

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

* Re: overwrite LAYERSERIES_COMPAT_ for different layer
  2020-05-25 13:28   ` Quentin Schulz
@ 2020-05-26  6:18     ` TRO
  2020-05-28  0:40     ` [yocto] " Denys Dmytriyenko
  1 sibling, 0 replies; 5+ messages in thread
From: TRO @ 2020-05-26  6:18 UTC (permalink / raw)
  To: yocto

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

Hi,
thanks for the reply - I've put it in the bblayers.conf - working.
cheers, Thomas

[-- Attachment #2: Type: text/html, Size: 104 bytes --]

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

* Re: [yocto] overwrite LAYERSERIES_COMPAT_ for different layer
  2020-05-25 13:28   ` Quentin Schulz
  2020-05-26  6:18     ` TRO
@ 2020-05-28  0:40     ` Denys Dmytriyenko
  1 sibling, 0 replies; 5+ messages in thread
From: Denys Dmytriyenko @ 2020-05-28  0:40 UTC (permalink / raw)
  To: Quentin Schulz; +Cc: Martin Jansa, TRO, Yocto-mailing-list

On Mon, May 25, 2020 at 03:28:52PM +0200, Quentin Schulz wrote:
> On Mon, May 25, 2020 at 03:10:39PM +0200, Martin Jansa wrote:
> > You can add a layer which will set LAYERSERIES_COMPAT for another layer,
> > but it needs to be parsed before the layer you want to change, e.g.:
> > https://github.com/webosose/meta-webosose/blob/thud/meta-qt5-compat/conf/layer.conf
> > it's useful to use this layer also to implement whatever modifications are
> > needed to make the layer to be actually compatible with the release you're
> > using, like:
> > https://github.com/webOS-ports/meta-webos-ports/tree/zeus/meta-qt5-compat
> > 
> 
> FWIW, you could make the parsing order not matter (at least in thud,
> from a quick look, master as well). LAYERSERIES_COMPAT is resolved after
> all layer.conf have been parsed[1]. I do not know if it's on purpose or
> not, meaning it could well disappear in the near future.
> 
> So you could override it from anywhere by using __append but it has to
> be done before or during the conf/layer.conf parsing. This also makes it
> future proof wrt layer priorities and how LAYERSERIES_COMPAT is set (+=,
> =, ?= ?).
> 
> I personally have it in conf/bblayers.conf (for some reason we "ship"
> this one, though it's not best practice IIRC).

Also not recommended, you can put this in your conf/bblayers.conf:

OVERRIDES = "iamgroot"
LAYERSERIES_COMPAT_browser-layer_iamgroot = "zeus"

-- 
Denys

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

end of thread, other threads:[~2020-05-28  0:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-05-25 11:17 overwrite LAYERSERIES_COMPAT_ for different layer TRO
2020-05-25 13:10 ` [yocto] " Martin Jansa
2020-05-25 13:28   ` Quentin Schulz
2020-05-26  6:18     ` TRO
2020-05-28  0:40     ` [yocto] " Denys Dmytriyenko

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.