xref: /linux/scripts/kconfig/tests/auto_submenu/Kconfig (revision 597473720f4dc69749542bfcfed4a927a43d935e)
1*0c874100SMasahiro Yamada# SPDX-License-Identifier: GPL-2.0
2*0c874100SMasahiro Yamada
349ac3c0cSMasahiro Yamadaconfig A
449ac3c0cSMasahiro Yamada	bool "A"
549ac3c0cSMasahiro Yamada	default y
649ac3c0cSMasahiro Yamada
749ac3c0cSMasahiro Yamadaconfig A0
849ac3c0cSMasahiro Yamada	bool "A0"
949ac3c0cSMasahiro Yamada	depends on A
1049ac3c0cSMasahiro Yamada	default y
1149ac3c0cSMasahiro Yamada	help
1249ac3c0cSMasahiro Yamada	  This depends on A, so should be a submenu of A.
1349ac3c0cSMasahiro Yamada
1449ac3c0cSMasahiro Yamadaconfig A0_0
1549ac3c0cSMasahiro Yamada	bool "A1_0"
1649ac3c0cSMasahiro Yamada	depends on A0
1749ac3c0cSMasahiro Yamada	help
1849ac3c0cSMasahiro Yamada	  Submenus are created recursively.
1949ac3c0cSMasahiro Yamada	  This should be a submenu of A0.
2049ac3c0cSMasahiro Yamada
2149ac3c0cSMasahiro Yamadaconfig A1
2249ac3c0cSMasahiro Yamada	bool "A1"
2349ac3c0cSMasahiro Yamada	depends on A
2449ac3c0cSMasahiro Yamada	default y
2549ac3c0cSMasahiro Yamada	help
2649ac3c0cSMasahiro Yamada	  This should line up with A0.
2749ac3c0cSMasahiro Yamada
2849ac3c0cSMasahiro Yamadachoice
2949ac3c0cSMasahiro Yamada	prompt "choice"
3049ac3c0cSMasahiro Yamada	depends on A1
3149ac3c0cSMasahiro Yamada	help
3249ac3c0cSMasahiro Yamada	  Choice should become a submenu as well.
3349ac3c0cSMasahiro Yamada
3449ac3c0cSMasahiro Yamadaconfig A1_0
3549ac3c0cSMasahiro Yamada	bool "A1_0"
3649ac3c0cSMasahiro Yamada
3749ac3c0cSMasahiro Yamadaconfig A1_1
3849ac3c0cSMasahiro Yamada	bool "A1_1"
3949ac3c0cSMasahiro Yamada
4049ac3c0cSMasahiro Yamadaendchoice
4149ac3c0cSMasahiro Yamada
4249ac3c0cSMasahiro Yamadaconfig B
4349ac3c0cSMasahiro Yamada	bool "B"
4449ac3c0cSMasahiro Yamada	help
4549ac3c0cSMasahiro Yamada	  This is independent of A.
4649ac3c0cSMasahiro Yamada
4749ac3c0cSMasahiro Yamadaconfig C
4849ac3c0cSMasahiro Yamada	bool "C"
4949ac3c0cSMasahiro Yamada	depends on A
5049ac3c0cSMasahiro Yamada	help
5149ac3c0cSMasahiro Yamada	  This depends on A, but not a consecutive item, so can/should not
5249ac3c0cSMasahiro Yamada	  be a submenu.
53