Yocto Project Discussions
 help / color / mirror / Atom feed
From: "Denys Dmytriyenko" <denis@denix.org>
To: Quentin Schulz <quentin.schulz@streamunlimited.com>
Cc: Martin Jansa <Martin.Jansa@gmail.com>,
	TRO <thomas.roos@industronic.de>,
	Yocto-mailing-list <yocto@lists.yoctoproject.org>
Subject: Re: [yocto] overwrite LAYERSERIES_COMPAT_ for different layer
Date: Wed, 27 May 2020 20:40:55 -0400	[thread overview]
Message-ID: <20200528004055.GP17660@denix.org> (raw)
In-Reply-To: <20200525132852.e2vefssv7gaqbc5u@qschulz>

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

      parent reply	other threads:[~2020-05-28  0:41 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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     ` Denys Dmytriyenko [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200528004055.GP17660@denix.org \
    --to=denis@denix.org \
    --cc=Martin.Jansa@gmail.com \
    --cc=quentin.schulz@streamunlimited.com \
    --cc=thomas.roos@industronic.de \
    --cc=yocto@lists.yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox