From: Ole Schuerks <ole0811sch@gmail.com>
To: masahiroy@kernel.org
Cc: deltaone@debian.org, jan.sollmann@rub.de, jude.gyimah@rub.de,
linux-kbuild@vger.kernel.org, linux-kernel@vger.kernel.org,
mcgrof@kernel.org, nathan@kernel.org, nicolas@fjasle.eu,
ole0811sch@gmail.com, thorsten.berger@rub.de
Subject: Re: [PATCH v7 00/11] kconfig: Add support for conflict resolution
Date: Wed, 9 Apr 2025 20:08:46 +0200 [thread overview]
Message-ID: <20250409180846.23742-1-ole0811sch@gmail.com> (raw)
In-Reply-To: <CAK7LNAT48101gZzcHF3U-VL1i0Ekns6zXKpNDb3MnScoSNr-kw@mail.gmail.com>
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2269 bytes --]
On Feb 11, 2025 at 01:46 AM, Masahiro Yamada wrote:
> On Tue, Feb 11, 2025 at 12:43 AM Luis Chamberlain <mcgrof@kernel.org> wrote:
>>
>> On Mon, Feb 10, 2025 at 02:00:52PM +0900, Masahiro Yamada wrote:
>>> Thanks for this, but I have no plans to merge the SAT solver.
>>>
>>> The reason is that my future plan is to move toolchain selection
>>> to the Kconfig stage instead of specifying it statically from the command line.
>>
>> That makes sense.
>>
>>> This approach was suggested by Linus [1], and to achieve that,
>>> the shell evaluation must be dynamically re-evaluated [2].
>>
>> Sure.
>>
>>> The SAT solver would likely conflict with this plan. At least due to the
>>> significant amount of additional code, which would be an obstacle.
>>
>> I can't see how the toolchain selection, if set on Kconfig can't be
>> leveraged later to enable / disable the SAT solver, however I can
>> see the amount of code shuffling incurred to be an extra hurdle to
>> address and a preference to leave that for later.
>>
>> In other words, I susepct it is still possible to evaluate to
>> add support for the SAT solver post toolchain kconfig integration.
>>
>> Thoughts?
>
>
> It depends on how the dynamic shell evaluation is implemented.
> This is not limited to bool/tristate, but SAT solver only works for
> those two types.
I just wanted to clarify, configfix already supports string/int/hex values.
Configfix uses SAT-variables that correspond to a kconfig-symbol being set
to a specific value (e.g., one such variable would be `NR_CPUS=1`). The
sample values for which such a variable is created are currently collected
from default and range properties.
This collecting of sample values is going to be the main challenge of
integrating configfix with dynamic shell evaluations. I believe the
integration is feasible, but even if serious problems should arise, a
decent alternative is to have configfix simply ignore the possibility of
changing the symbol values that are inputs to or results of dynamic shell
evaluations. That should amount to roughly the same capabilities as the
current version without dynamic shell evaluations.
Best regards,
Ole Schuerks
prev parent reply other threads:[~2025-04-09 18:09 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-02-08 16:39 [PATCH v7 00/11] kconfig: Add support for conflict resolution Ole Schuerks
2025-02-08 16:39 ` [PATCH v7 01/11] kconfig: Add PicoSAT interface Ole Schuerks
2025-02-10 15:37 ` Luis Chamberlain
2025-02-08 16:39 ` [PATCH v7 02/11] kconfig: Add definitions Ole Schuerks
2025-02-08 16:39 ` [PATCH v7 03/11] kbuild: Add list_count_nodes and list_for_each_entry_from Ole Schuerks
2025-02-10 15:36 ` Luis Chamberlain
2025-02-08 16:39 ` [PATCH v7 04/11] kconfig: Add files for building constraints Ole Schuerks
2025-02-08 16:39 ` [PATCH v7 05/11] kconfig: Add files for handling expressions Ole Schuerks
2025-02-08 16:39 ` [PATCH v7 06/11] kconfig: Add files for fix generation Ole Schuerks
2025-02-08 16:39 ` [PATCH v7 07/11] kconfig: Add files with utility functions Ole Schuerks
2025-02-08 16:39 ` [PATCH v7 08/11] kconfig: Add tools Ole Schuerks
2025-02-08 16:39 ` [PATCH v7 09/11] kconfig: Add xconfig-modifications Ole Schuerks
2025-02-08 16:39 ` [PATCH v7 10/11] kconfig: Add loader.gif Ole Schuerks
2025-02-08 16:39 ` [PATCH v7 11/11] kconfig: Add documentation for the conflict resolver Ole Schuerks
2025-02-10 5:00 ` [PATCH v7 00/11] kconfig: Add support for conflict resolution Masahiro Yamada
2025-02-10 15:43 ` Luis Chamberlain
2025-02-11 0:46 ` Masahiro Yamada
2025-02-21 3:16 ` Jude Gyimah
[not found] ` <ac98e417-1587-4806-9576-7661acc6bf6e@ruhr-uni-bochum.de>
2025-03-02 16:56 ` Masahiro Yamada
2025-03-23 8:40 ` Luis Chamberlain
2025-03-23 8:55 ` Luis Chamberlain
2025-04-09 18:08 ` Ole Schuerks [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=20250409180846.23742-1-ole0811sch@gmail.com \
--to=ole0811sch@gmail.com \
--cc=deltaone@debian.org \
--cc=jan.sollmann@rub.de \
--cc=jude.gyimah@rub.de \
--cc=linux-kbuild@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=masahiroy@kernel.org \
--cc=mcgrof@kernel.org \
--cc=nathan@kernel.org \
--cc=nicolas@fjasle.eu \
--cc=thorsten.berger@rub.de \
/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