<html><head></head><body><div style="font-family: Verdana;font-size: 12.0px;"><div>Hello,</div>

<div> </div>

<div>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:</div>

<div> </div>

<div>
<div>config FOO<br/>
        tristate<br/>
        prompt "FOO"</div>

<div>config BAR<br/>
        tristate "BAR" if FOO<br/>
        default y</div>

<div> </div>

<div>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.</div>

<div> </div>

<div>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.</div>

<div> </div>

<div>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?</div>

<div> </div>

<div> </div>

<div>Thank you,</div>

<div> </div>

<div>Martin</div>
</div></div></body></html>