Kconfig 706 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. # SPDX-License-Identifier: GPL-2.0
  2. config A
  3. bool "A"
  4. default y
  5. config A0
  6. bool "A0"
  7. depends on A
  8. default y
  9. help
  10. This depends on A, so should be a submenu of A.
  11. config A0_0
  12. bool "A1_0"
  13. depends on A0
  14. help
  15. Submenus are created recursively.
  16. This should be a submenu of A0.
  17. config A1
  18. bool "A1"
  19. depends on A
  20. default y
  21. help
  22. This should line up with A0.
  23. choice
  24. prompt "choice"
  25. depends on A1
  26. help
  27. Choice should become a submenu as well.
  28. config A1_0
  29. bool "A1_0"
  30. config A1_1
  31. bool "A1_1"
  32. endchoice
  33. config B
  34. bool "B"
  35. help
  36. This is independent of A.
  37. config C
  38. bool "C"
  39. depends on A
  40. help
  41. This depends on A, but not a consecutive item, so can/should not
  42. be a submenu.