From: Luis Chamberlain <mcgrof@kernel.org>
To: Daniel Gomez <da.gomez@kernel.org>
Cc: Masahiro Yamada <masahiroy@kernel.org>,
kdevops@lists.linux.dev, Daniel Gomez <da.gomez@samsung.com>
Subject: Re: [PATCH RFC 6/6] playbooks: add kconfig support
Date: Sun, 6 Apr 2025 21:03:38 -0700 [thread overview]
Message-ID: <Z_NOmi2LpXQORC4D@bombadil.infradead.org> (raw)
In-Reply-To: <uwaul4tfglnuxwjzpokfqhxk3ut23wpkswz4p6i4lyu6ipm24k@dv3tmuesszdx>
On Fri, Apr 04, 2025 at 10:33:07PM +0200, Daniel Gomez wrote:
> On Tue, Apr 01, 2025 at 02:02:23PM +0100, Luis Chamberlain wrote:
> > I think this usecase begs for a more basic form of 'make dynconfig', one
> > which we always call.
>
> The only difference I see is that dynconfig generates a full Kconfig file, while
> this one creates a fragment meant to be merged with an existing .config using
> predefined Kconfig options.
The relationship is a requirement to be generated before existing
Kconfig files. The current kconfig fork maintained by linux-kdevops/kconfig [0]
is maintained as a git subtree inside kdevops so to allow us to not require
those odd git submodule strategy, ie, we maintain all history inside git
and for users they just see the git tree one, not two.
And so the common goal is to be able to try to avoid having to modify
things which can make kconfig independent from Linux's version of kconfig.
[0] https://github.com/linux-kdevops/kconfig
> If I understood dynconfig correctly, then I agree with you. There's no reason
> to declare these in the current Kconfig, unless we want to avoid generating them
> every time. Then we'd need the fragment generation -> merge. Also, the fragment
> generation is much simpler to generate than an entire Kconfig file.
Indeed,
> > If we're going to do that then we can kill two birds with one stone by
> > having info-dynconfig and system-info-dynconfig, where the info-dynconfig
> > consists of targets which won't require root or sudo. This is the part
> > that might be useful to Masahiro, things like your compiler. Then the
> > system-info-dynconfig target can be targets which require sudo or root.
> > In that way, if a user does not want to have local playbooks run sudo
> > they can simply describe their environment with a yaml file as input.
>
> This works with either option, since both are Ansible playbooks anyway.
Sure.
> > Nix users can also then just describe their system info and and be happy
> > with calling qemu in a simple way, if they don't want libvirt to manage
> > crap for you.
>
> I'm not sure about this. Can you ellaborate?
OK so for example kdevops today aims to try infer tons of information
from a user's system for libvirt uses. For debian based systems we go so
far as having to use sudo to query the libvirt pools that exist. To many
this is a security push they wish they could avoid. So an alternative to
this is to instruct users by defaul to write down their systems's
information about storage pool information. For nix users the same might
apply so we do not repeat the same history. Instead of "requiring" to
run sudo to check a system's virsh pool, we just go the other way with
nix, and just have the user write down on a file manually where their
virtpool stuff is. Only if they user a special command do we do the
inference hoop which may require sudo. This sort of informaiton is
needed before kconfig starts processign Kconfig files, and so we have
two parts to this, a) new featuers b) existing features. The b) featuers
are like the libvirt pool stuff. While an example of a) is nix OS
suport.
Luis
next prev parent reply other threads:[~2025-04-07 4:03 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-28 20:56 [PATCH RFC 0/6] Generate Kconfig environment in Ansible Daniel Gomez
2025-03-28 20:56 ` [PATCH RFC 1/6] merge_config: add fragment support from kernel Daniel Gomez
2025-03-28 20:56 ` [PATCH RFC 2/6] scripts/kconfig/kconfig.Makefile: extend simple-targets Daniel Gomez
2025-03-28 20:56 ` [PATCH RFC 3/6] kconfig-fragments: add docs and fragments folder Daniel Gomez
2025-03-28 20:56 ` [PATCH RFC 4/6] kconfig-env: generate kconfig environment Daniel Gomez
2025-03-28 20:56 ` [PATCH RFC 5/6] kconfig: env: add support Daniel Gomez
2025-03-28 20:56 ` [PATCH RFC 6/6] playbooks: add kconfig support Daniel Gomez
2025-03-28 22:58 ` Luis Chamberlain
2025-03-31 6:54 ` Daniel Gomez
2025-03-31 7:32 ` Luis Chamberlain
2025-03-31 18:31 ` Daniel Gomez
2025-04-01 21:02 ` Luis Chamberlain
2025-04-04 20:33 ` Daniel Gomez
2025-04-07 4:03 ` Luis Chamberlain [this message]
2025-04-14 10:58 ` Daniel Gomez
2025-04-23 6:01 ` Luis Chamberlain
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=Z_NOmi2LpXQORC4D@bombadil.infradead.org \
--to=mcgrof@kernel.org \
--cc=da.gomez@kernel.org \
--cc=da.gomez@samsung.com \
--cc=kdevops@lists.linux.dev \
--cc=masahiroy@kernel.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