* invisible choices in kconfig
@ 2015-09-03 10:40 Jonas Gorski
0 siblings, 0 replies; only message in thread
From: Jonas Gorski @ 2015-09-03 10:40 UTC (permalink / raw)
To: linux-kbuild; +Cc: Yann E. MORIN
Hi,
I'm trying to add* an "conditionally invisible choice" to kconfig, but
it seems like visibility is treated like a dependency in contrast to
"normal" prompt-less or invisible menu options.
Is this intentional?
A simplified version of what I'm trying to have is
config FOO
bool "Foo"
choice
prompt "Baz" if FOO
default BAZ_A
config BAZ_A
bool "Baz A"
config BAZ_B
bool "Baz B"
endchoice
But unless FOO is set, neither BAZ_A nor BAZ_B will appear in .config or
will be set.
The obvious workaround is to define a duplicate set of hidden BAZ config
values that will get selected by the BAZ choice values. But then they
also need to copy the defaults from the choice and this gets dirty really
fast and easily out of sync, in addition of introducing twice as many
config symbols.
Regards
Jonas
* actually I already added one in the expectation that it works that way.
The default non prompt value isn't checked anywhere, only the non-default
options are, so it "worked" as expected, so I didn't noticed it was
broken.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-09-03 10:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-03 10:40 invisible choices in kconfig Jonas Gorski
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).