Hello,
I am trying to learn more about the kernel build system and due to that I tried the following in the top level Kconfig file right at the beginning:
config FOO
tristate
prompt "FOO"
tristate
prompt "FOO"
config BAR
tristate "BAR" if FOO
default y
tristate "BAR" if FOO
default y
Then I do a make menuconfig and choose the config option FOO with "m" then the config option BAR shows up with "y". if I exit and save this constellation m/y shows up in the .config file. But as I understand the logic the value of the config option FOO defines the upper level for the value of the config option BAR.
When I do just a make menuconfig again both options show up as m even though in the .config file they are still saved as y/m.
Is that a problem with the default value of BAR? Am I not supposed to give it a default value out of range when FOO is m?
Thank you,
Martin
_______________________________________________ Kernelnewbies mailing list Kernelnewbies@xxxxxxxxxxxxxxxxx https://lists.kernelnewbies.org/mailman/listinfo/kernelnewbies