* 2.6: kconfig handling of recursive dependencies could be improved
@ 2003-08-08 14:57 Adrian Bunk
2003-08-08 15:30 ` Roman Zippel
0 siblings, 1 reply; 2+ messages in thread
From: Adrian Bunk @ 2003-08-08 14:57 UTC (permalink / raw)
To: Roman Zippel; +Cc: linux-kernel
Hi Roman,
I tried to implement a "select at least one of these options" using the
following Kconfig snippet:
config A
bool "a"
config B
bool "b"
config C
bool
default y if A=n && B=n
select A
select B
"make *config" says
Warning! Found recursive dependency: A C A
Warning! Found recursive dependency: C A C B
and handles it a bit strange.
Yes, there is a limited recursion, but it's a finite recursion and I
don't know of any other way to express this in the current kconfig
language.
cu
Adrian
--
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: 2.6: kconfig handling of recursive dependencies could be improved
2003-08-08 14:57 2.6: kconfig handling of recursive dependencies could be improved Adrian Bunk
@ 2003-08-08 15:30 ` Roman Zippel
0 siblings, 0 replies; 2+ messages in thread
From: Roman Zippel @ 2003-08-08 15:30 UTC (permalink / raw)
To: Adrian Bunk; +Cc: linux-kernel
Hi,
On Fri, 8 Aug 2003, Adrian Bunk wrote:
> I tried to implement a "select at least one of these options" using the
> following Kconfig snippet:
>
> config A
> bool "a"
>
> config B
> bool "b"
>
> config C
> bool
> default y if A=n && B=n
> select A
> select B
This sort of dependency would be better handled with another choice
option, but this is not really 2.6 material.
> Yes, there is a limited recursion, but it's a finite recursion and I
> don't know of any other way to express this in the current kconfig
> language.
It's not really possible. You can show a comment if nothing is selected
and use a reasonable default.
bye, Roman
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-08-08 15:30 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-08-08 14:57 2.6: kconfig handling of recursive dependencies could be improved Adrian Bunk
2003-08-08 15:30 ` Roman Zippel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®