Home | History | Annotate | Download | only in auto_submenu
      1 config A
      2 	bool "A"
      3 	default y
      4 
      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 
     12 config A0_0
     13 	bool "A1_0"
     14 	depends on A0
     15 	help
     16 	  Submenus are created recursively.
     17 	  This should be a submenu of A0.
     18 
     19 config A1
     20 	bool "A1"
     21 	depends on A
     22 	default y
     23 	help
     24 	  This should line up with A0.
     25 
     26 choice
     27 	prompt "choice"
     28 	depends on A1
     29 	help
     30 	  Choice should become a submenu as well.
     31 
     32 config A1_0
     33 	bool "A1_0"
     34 
     35 config A1_1
     36 	bool "A1_1"
     37 
     38 endchoice
     39 
     40 config B
     41 	bool "B"
     42 	help
     43 	  This is independent of A.
     44 
     45 config C
     46 	bool "C"
     47 	depends on A
     48 	help
     49 	  This depends on A, but not a consecutive item, so can/should not
     50 	  be a submenu.
     51