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: Tue, 1 Apr 2025 14:02:23 -0700 [thread overview]
Message-ID: <Z-xUX4jcT2srBY5F@bombadil.infradead.org> (raw)
In-Reply-To: <c7h4w4jwtrf5q3h77tcxsgpiq7x3ij6zcu5qtmf3akyvntuenb@cesvkshy7xvt>
On Mon, Mar 31, 2025 at 08:31:55PM +0200, Daniel Gomez wrote:
> On Mon, Mar 31, 2025 at 12:32:29AM +0100, Luis Chamberlain wrote:
> > On Mon, Mar 31, 2025 at 08:54:59AM +0200, Daniel Gomez wrote:
> > > On Fri, Mar 28, 2025 at 03:58:50PM +0100, Luis Chamberlain wrote:
> > > > On Fri, Mar 28, 2025 at 08:56:19PM +0000, Daniel Gomez wrote:
> > > > > From: Daniel Gomez <da.gomez@samsung.com>
>
> > > I think merging all generated variables into Kconfig makes this a bit easier as
> > > we don't have to deal with another Ansible YAML file. Ideally, we would merge
> > > this new YAML with the Kconfig YAML output. Can this be done? Makes sense?
> >
> > Yes. We have:
> >
> > Kconfig -->
> > .config --> optional output yaml --> 1st.yaml
> > |
> > |
> > v------- what we need -----> 2nd.yaml
> > |
> > |
> > v--------------------------> extra_vars.yaml
> >
> >
> > Is that right?
>
> I was thinking this instead:
>
> What we have (please, correct if it's wrong):
>
> Kconfig --> .config
> --> .extra_vars_auto.yaml --> Makefile --> extra_vars.yaml --> Ansible
>
> What I'm suggesting above:
>
> Makefile --> Ansible --> env.yaml |
> --> env.config (Kconfig fragment) --> Kconfig --> .config v
> --> .extra_vars_auto.yaml --> Makefile --> extra_vars.yaml --> Ansible
>
> But looking at this, do you see a way to simplify this?
Ah yes.
The 'make dynconfig' support already does this but it we currently only
use it it to scrape your PCI tree to support PCI passthrough through
Kconfig support.
It was built to grow, so for example in the future I've hinted before we
could use cloud tools to scrape your cloud options and so to generate
Kconfig files automatically for us, instead of us having to write each
entry.
I think this usecase begs for a more basic form of 'make dynconfig', one
which we always call.
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.
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.
Thoughts?
Luis
next prev parent reply other threads:[~2025-04-01 21:02 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 [this message]
2025-04-04 20:33 ` Daniel Gomez
2025-04-07 4:03 ` Luis Chamberlain
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-xUX4jcT2srBY5F@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