Openembedded Core Discussions
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Alexander Kanavin <alex.kanavin@gmail.com>,
	Andre McCurdy <armccurdy@gmail.com>,
	Adrian Freihofer <adrian.freihofer@gmail.com>
Cc: OE Core mailing list <openembedded-core@lists.openembedded.org>,
	Alexander Kanavin <alex@linutronix.de>
Subject: Re: [OE-core] [RFC PATCH] bitbake-layers: add layer repositories/revisions save and restore tooling (aka 'layer configuration')
Date: Tue, 05 Jul 2022 09:51:16 +0100	[thread overview]
Message-ID: <481775663c6c797dde9596268fde594bc567a12d.camel@linuxfoundation.org> (raw)
In-Reply-To: <CANNYZj-+2QvuXUT9Vshdq5T6-uLEV5p92QeAqw+kbajPm+UKyQ@mail.gmail.com>

On Tue, 2022-07-05 at 10:34 +0200, Alexander Kanavin wrote:
> On Tue, 5 Jul 2022 at 05:09, Andre McCurdy <armccurdy@gmail.com> wrote:
> > My proposal would be to try to reuse Linux kconfig. Users know how to
> > run "make oldconfig", "make menuconfig", etc and I believe all key
> > distro / machine configuration along with which meta layers should be
> > enabled, which branch to use, etc can all be captured within a kconfig
> > .config file. The task at hand would then become writing a tool to
> > translate from a .config file to a set of distro, machine, local.conf
> > config files (and an image recipe?) + drive whichever tool will be
> > used to fetch meta layer git repos.
> 
> At this point, I have to remind everyone about our harsh reality.
> Which is having lots of core pieces without maintainers:
> https://git.yoctoproject.org/poky/tree/MAINTAINERS.md#n45
> 
> Let's focus on adding foundational pieces of layer and configuration
> management in a controlled, testable and tested manner for now. Which
> is what I am trying to do. I think discussing grandiose designs for
> things that try to please everybody is just a bit premature, honestly.

There is a time and a place for incremental improvement and also a time
and a place where we need to step back, look at the bigger
picture/problem and try and design for that.

It is no secret that I've been avoiding the layer setup issue, I know
it is a painful topic and will be hard to solve. I'm also acutely aware
that we can't ignore it for that much longer, we need to do something
about it.

The challenge with your approach is that it is bolted directly onto
bitbake-layers, which makes it not only OE-Core API but bitbake API
too. There is a standard such changes need to reach and I'm not
convinced that is doesn't tie our hands in future as is.

I suspect in reality, we could probably have the same functionality in
a separate script in OE-Core, maybe improving the APIs/library
functions from bitbake-layers if needed. That would lower the bar and
mean we could have something focused on eSDK needs rather than the
wider problem.

Of course that potentially misses an opportunity to potentially address
the wider issue. I did at least take the time (on a weekend) to write
down my thoughts, which wasn't particularly easy.

As for kconfig, I don't think we need another config file format. I
have proven that json can encapsulate all the complexities of the
configurations of the autobuilder and kas has also proven the same
think with yaml. Yes, the menus are nice but at some point users will
need to see our config files so I don't think its a much of a win as
people think, unless the entire project used it which it doesn't and is
unlikely to.

Cheers,

Richard




  reply	other threads:[~2022-07-05  8:51 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-01 19:24 [RFC PATCH] bitbake-layers: add layer repositories/revisions save and restore tooling (aka 'layer configuration') Alexander Kanavin
2022-07-01 19:46 ` [OE-core] " Joshua Watt
2022-07-01 20:28   ` Alexander Kanavin
2022-07-01 20:44     ` Joshua Watt
2022-07-02  5:58       ` Tim Orling
2022-07-02  7:44         ` Alexander Kanavin
2022-07-02  8:28           ` Tim Orling
2022-07-02 10:22             ` Alexander Kanavin
2022-07-06 18:34             ` Alexander Kanavin
2022-07-08 19:20               ` Alexander Kanavin
2022-07-02 11:13 ` Richard Purdie
2022-07-05  3:09   ` Andre McCurdy
2022-07-05  8:34     ` Alexander Kanavin
2022-07-05  8:51       ` Richard Purdie [this message]
2022-07-05  9:15         ` Alexander Kanavin
2022-07-05 14:28           ` Joshua Watt
2022-07-05 16:04             ` Alexander Kanavin
2022-07-06 19:54               ` Joshua Watt
2022-07-06 20:57                 ` Alexander Kanavin
2022-07-05  9:22         ` Alexander Kanavin
     [not found]     ` <16FEE1E2A731461A.2437@lists.openembedded.org>
2022-07-05  8:39       ` Alexander Kanavin
2022-07-05  8:56         ` Richard Purdie
2022-07-07 12:45     ` Philip Balister
2022-07-04  9:01 ` Adrian Freihofer
2022-07-04  9:59   ` Alexander Kanavin
2022-07-04 21:59     ` Adrian Freihofer
2022-07-04 22:29       ` Alexander Kanavin
2022-07-04  9:59   ` Richard Purdie
2022-07-04 13:20   ` Alexandre Belloni

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=481775663c6c797dde9596268fde594bc567a12d.camel@linuxfoundation.org \
    --to=richard.purdie@linuxfoundation.org \
    --cc=adrian.freihofer@gmail.com \
    --cc=alex.kanavin@gmail.com \
    --cc=alex@linutronix.de \
    --cc=armccurdy@gmail.com \
    --cc=openembedded-core@lists.openembedded.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