Linux Audio

Check our new training course

Linux kernel drivers training

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