summaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/tests/choice/Kconfig
blob: 0930eb65e932835e0987b998ddb9026c74b23359 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# SPDX-License-Identifier: GPL-2.0

config MODULES
	bool "Enable loadable module support"
	modules
	default y

choice
	prompt "boolean choice"
	default BOOL_CHOICE1

config BOOL_CHOICE0
	bool "choice 0"

config BOOL_CHOICE1
	bool "choice 1"

endchoice

choice
	prompt "optional boolean choice"
	optional
	default OPT_BOOL_CHOICE1

config OPT_BOOL_CHOICE0
	bool "choice 0"

config OPT_BOOL_CHOICE1
	bool "choice 1"

endchoice

choice
	prompt "tristate choice"
	default TRI_CHOICE1

config TRI_CHOICE0
	tristate "choice 0"

config TRI_CHOICE1
	tristate "choice 1"

endchoice

choice
	prompt "optional tristate choice"
	optional
	default OPT_TRI_CHOICE1

config OPT_TRI_CHOICE0
	tristate "choice 0"

config OPT_TRI_CHOICE1
	tristate "choice 1"

endchoice