Skip to contentSkip to conversation

2.6: kconfig handling of recursive dependencies could be improved

DISCUSSION Adrian Bunk 2 participants 2 messages Aug 8, 2003

lore
Share & tools
lore
#0 lore raw

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

Signature · 4 lines
       "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
#1 lore raw

Hi,

Quoted 6 lines · Adrian Bunk

I tried to implement a "select at least one of these options" using the following Kconfig snippet:

config A
bool "a"

Quoted 8 lines

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.

Quoted 3 lines

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