[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20230311165507.GN3041508@bill-the-cat>
Date: Sat, 11 Mar 2023 11:55:07 -0500
From: Tom Rini <trini@...sulko.com>
To: Randy Dunlap <rdunlap@...radead.org>
Cc: Simon Glass <sjg@...omium.org>,
LKML <linux-kernel@...r.kernel.org>,
U-Boot Custodians <u-boot-custodians@...ts.denx.de>,
Masahiro Yamada <yamada.masahiro@...ionext.com>,
barebox@...ts.infradead.org, Sascha Hauer <s.hauer@...gutronix.de>,
U-Boot Mailing List <u-boot@...ts.denx.de>,
Jonathan Corbet <corbet@....net>,
Masahiro Yamada <masahiroy@...nel.org>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
Nicolas Schier <nicolas@...sle.eu>, linux-doc@...r.kernel.org,
linux-kbuild@...r.kernel.org
Subject: Re: [RESEND PATCH] kconfig: Proposed language extension for multiple
builds
On Fri, Mar 10, 2023 at 09:39:15PM -0800, Randy Dunlap wrote:
> Hi--
>
> On 3/10/23 18:37, Simon Glass wrote:
> > (I am sending this again to get more feedback)
> >
> > In the case of Linux, only one build is produced so there is only a
> > single configuration. For other projects, such as U-Boot and Zephyr, the
> > same code is used to produce multiple builds, each with related (but
> > different) options enabled.
> >
> > This can be handled with the existing kconfig language, but it is quite
> > verbose, somewhat tedious and very error-prone, since there is a lot of
> > duplication. The result is hard to maintain.
> >
> > Describe an extension to the Kconfig language to support easier handling
> > of this use case.
> >
> > Signed-off-by: Simon Glass <sjg@...omium.org>
>
> IMO Masahiro has already answered this multiple times and I agree with his answers.
>
> For others, the full previous thread is at
> https://lore.kernel.org/all/20230219145453.1.Idaaf79c3e768b85750d5a7eb732052576c5e07e5@changeid/
Well, I think what was unclear, or maybe we just wanted to confirm the
answer was "none at all", was this. As good community neighbors, we see
a generic issue in the Kconfig language, a tool used frequently outside
of just the Linux kernel, and would like to contribute back. Ideally
without having first gone off, designed and implemented something, and
then been told it's all wrong and to rewrite it first. So what level of
interest is there in this?
As I pointed out in that thread, I believe barebox has examples where
some keyword like we're proposing here would help them (and yes, there's
only a dozen or so symbols so it's also manageable without anything
special), and Simon believes Zephyr will be in a similar situation soon
enough (which doesn't use the kernel's implementation of the language).
Frankly, I keep going back to "tristate" is just the original example of
what we're talking about here (CONFIG_FOO=n, CONFIG_FOO_MODULE=y), not
that I'm suggesting we would remove the tristate word.
So we would really like to make sure as many people and projects are
aware, as possible.
And as Simon asked in the thread, what about code refactoring that makes
further maintenance easier? Clearly, such patches would need to be
against the current appropriate tree.
--
Tom
Download attachment "signature.asc" of type "application/pgp-signature" (660 bytes)
Powered by blists - more mailing lists