From: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
To: Alexander Kanavin <alex.kanavin@gmail.com>
Cc: Richard Purdie <richard.purdie@linuxfoundation.org>,
OE-core <openembedded-core@lists.openembedded.org>
Subject: RE: [OE-core] [PATCH 2/2] oe-setup-builddir: Do not hardcode invalid paths for templates
Date: Wed, 28 Sep 2022 09:54:31 +0000 [thread overview]
Message-ID: <b1adfa5db65d431a8959e07181bfffa2@axis.com> (raw)
In-Reply-To: <CANNYZj_L2+OJE4TYt4A2QVXjsmSOVWKbWD4EPz=AkQj5snxXgA@mail.gmail.com>
> -----Original Message-----
> From: Alexander Kanavin <alex.kanavin@gmail.com>
> Sent: den 27 september 2022 23:50
> To: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
> Cc: Richard Purdie <richard.purdie@linuxfoundation.org>; OE-core
> <openembedded-core@lists.openembedded.org>
> Subject: Re: [OE-core] [PATCH 2/2] oe-setup-builddir: Do not hardcode
> invalid paths for templates
>
> On Tue, 27 Sept 2022 at 23:31, Peter Kjellerstedt
> <peter.kjellerstedt@axis.com> wrote:
> > I am not too fond of the "writing the config directly" idea. The reason
> > for that is that things change upstream (as you are well aware of, that's
> > after all the whole reason for the discussion). This is why I prefer to
> > go through the templates and basically only provide the list of layers
> > to add. That way when things change upstream in the template files, we
> > automatically follow. (And if it has not been obvious before, our wrapper
> > uses the bblayers.conf.sample file from meta-poky and just replaces the
> > list of layers with our list of layers. Which of course sounds like then
> > we could just write the final config file directly, but we also want to
> > continue to rely on oe-init-build-env for determining _where_ to write
> > the final files.)
>
> Wait, wait, wait. If so, you can initialize using the template from
> poky, then you get BBPATH or BUILDDIR placed in the environment (by
> oe-init-build-env) telling where the config files are. So you can
> write to them directly (e.g. local.conf), or use 'bitbake-layers
> add-layer' (or 'remove-layer') to tweak the list of layers using
> supported tooling - after the initialization, but before any builds.
> No?
>
> Alex
I am not sure if you are suggesting that the user shall run `bitbake-layers
add-layer` after sourcing oe-init-build-env, or if you mean that our wrapper
should do it.
If it is the former, then that is obviously not how we want things to work.
The layers that are fetched shall by default be part of the build. That is
an absolute requirement. There is no expectancy (or want) that the user
shall have to add/remove the layers manually.
If it is the latter, it wouldn't work (unless I yet again duplicate the
code to figure out the build directory before sourcing the real
oe-init-build-env) since before sourcing the real oe-init-build-env I
cannot tell if there already is a bblayers.conf file in which case the
wrapper should not add/remove any layers, and after sourcing the real
oe-init-build-env it is too late as I then cannot distinguish between
this being the first time oe-init-build-env is sourced or just a
reinitialization of an already existing environment.
Our philosophy when we originally set this up was to keep it simple and
as close to how OE/Poky works as possible. That way, if the developers
have any questions and look at the Yocto documentation, the commands
suggested there should work the same for us. And that is what we get
from using the templates and letting the init scripts provided by OE do
the work. The fact that we use the bblayers.conf.sample file from
meta-poky rather than providing our own shouldn't change that. It is
just a way to avoid having to manually keep our sample file in sync
with what happens in OE Core.
//Peter
next prev parent reply other threads:[~2022-09-28 9:54 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-22 12:47 [PATCH 1/2] .templateconf: Mark "meta/conf" as an invalid path for templates Peter Kjellerstedt
2022-09-22 12:47 ` [PATCH 2/2] oe-setup-builddir: Do not hardcode invalid paths " Peter Kjellerstedt
2022-09-22 13:14 ` [OE-core] " Richard Purdie
2022-09-22 13:25 ` Peter Kjellerstedt
2022-09-22 15:52 ` Alexander Kanavin
2022-09-22 19:56 ` Peter Kjellerstedt
2022-09-22 20:32 ` Richard Purdie
2022-09-22 21:53 ` Alexander Kanavin
[not found] ` <17174D5BCC8D1164.8129@lists.openembedded.org>
2022-09-26 17:09 ` Alexander Kanavin
2022-09-27 14:56 ` Peter Kjellerstedt
2022-09-27 15:29 ` Alexander Kanavin
[not found] ` <1718C14CEB633922.9698@lists.openembedded.org>
2022-09-27 15:42 ` Alexander Kanavin
2022-09-27 16:06 ` Peter Kjellerstedt
2022-09-27 16:16 ` Alexander Kanavin
2022-09-27 18:53 ` Peter Kjellerstedt
2022-09-27 19:58 ` Alexander Kanavin
2022-09-27 21:31 ` Peter Kjellerstedt
2022-09-27 21:50 ` Alexander Kanavin
2022-09-28 9:54 ` Peter Kjellerstedt [this message]
2022-09-28 10:59 ` Alexander Kanavin
2022-09-28 12:45 ` Peter Kjellerstedt
2022-09-28 13:24 ` Alexander Kanavin
[not found] ` <17190128C53AF22E.9603@lists.openembedded.org>
2022-09-28 11:05 ` Alexander Kanavin
2022-09-27 17:04 ` Alexander Kanavin
2022-09-27 19:22 ` Peter Kjellerstedt
2022-09-27 20:39 ` Alexander Kanavin
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=b1adfa5db65d431a8959e07181bfffa2@axis.com \
--to=peter.kjellerstedt@axis.com \
--cc=alex.kanavin@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
--cc=richard.purdie@linuxfoundation.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 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.