Kconfig 670 B

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