Search code examples
linux-kernelbuildrootkbuild

Kconfig choice: non-selected choices shown as new


I have the following Kconfig code:

choice
    prompt "Choice ?"
    config A_CHOSEN
          bool "A"
    config B_CHOSEN
           bool "B"
 endchoice

My problem, everytime i run make oldconfig it says:

*
* Restart config...
*
Choice ?
> 1. A (A_CHOSEN)
  2. B (B_CHOSEN) (NEW)
choice[1-2]:

I checked the config file and it says

A_CHOSEN=y
# B_CHOSEN is not set

Any idea why the not selected option is always shown as new?


Solution

  • The solution:

    For unknown reason, the buildroot maintainers have decided to patch conf to only read in variables prefixed with BR2_