I am writing a kernel module that has two low-level options can be used. Both these 2 options can be select as M/Y/N, but at least one of them must be selected, else the module will not work. Just like below:
[*] Enable FOO support
<M> Back-end A
<M> Back-end B
I write it as below, but both 2 sub-options can be unselected.
config FOO
bool "Enable FOO support"
config BACKEND_A
tristate "Back-end A"
depends on FOO
depends on SUBSYSTEM_X
config BACKEND_B
tristate "Back-end B"
depends on FOO
depends on SUBSYSTEM_Y
How to write such config in kconfig?