choice
prompt "choose A or B"
config A
bool "A"
config B
bool "B"
endchoice
prompt "choose X or Y"
depends on B
config X
bool "X"
config Y
bool "Y"