File: Kassignable

package info (click to toggle)
kconfiglib 14.1.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,400 kB
  • sloc: python: 8,498; sh: 34; makefile: 8
file content (230 lines) | stat: -rw-r--r-- 3,586 bytes parent folder | download | duplicates (2)
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
config MODULES
	bool "modules"
	option modules


# Things that should never be .assignable

if UNDEFINED && "const"
endif

config NO_PROMPT
	bool

config STRING
	string "string"

config INT
	int "int"

config HEX
	hex "hex"


# Non-selected symbols

config Y_VIS_BOOL
	bool "y-vis bool"

config M_VIS_BOOL
	bool "m-vis bool" if m

config N_VIS_BOOL
	bool "n-vis bool" if n

config Y_VIS_TRI
	tristate "y-vis tri"

config M_VIS_TRI
	tristate "m-vis tri" if m

config N_VIS_TRI
	tristate "n-vis tri" if n


# Symbols selected to y

config Y_SELECTOR
	def_tristate y

	select Y_SEL_Y_VIS_BOOL
	select Y_SEL_M_VIS_BOOL
	select Y_SEL_N_VIS_BOOL

	select Y_SEL_Y_VIS_TRI
	select Y_SEL_M_VIS_TRI
	select Y_SEL_N_VIS_TRI

config Y_SEL_Y_VIS_BOOL
	bool "y-sel y-vis bool"

config Y_SEL_M_VIS_BOOL
	bool "y-sel m-vis bool" if m

config Y_SEL_N_VIS_BOOL
	bool "y-sel n-vis bool" if n

config Y_SEL_Y_VIS_TRI
	tristate "y-sel y-vis tri"

config Y_SEL_M_VIS_TRI
	tristate "y-sel m-vis tri" if m

config Y_SEL_N_VIS_TRI
	tristate "y-sel n-vis tri" if n


# Symbols selected to m

config M_SELECTOR
	def_tristate m

	select M_SEL_Y_VIS_BOOL
	select M_SEL_M_VIS_BOOL
	select M_SEL_N_VIS_BOOL

	select M_SEL_Y_VIS_TRI
	select M_SEL_M_VIS_TRI
	select M_SEL_N_VIS_TRI

config M_SEL_Y_VIS_BOOL
	bool "m-sel y-vis bool"

config M_SEL_M_VIS_BOOL
	bool "m-sel m-vis bool" if m

config M_SEL_N_VIS_BOOL
	bool "m-sel n-vis bool" if n

config M_SEL_Y_VIS_TRI
	tristate "m-sel y-vis tri"

config M_SEL_M_VIS_TRI
	tristate "m-sel m-vis tri" if m

config M_SEL_N_VIS_TRI
	tristate "m-sel n-vis tri" if n


# Symbols implied to y

config Y_IMPLIER
	def_tristate y

	imply Y_IMP_Y_VIS_BOOL
	imply Y_IMP_M_VIS_BOOL
	imply Y_IMP_N_VIS_BOOL

	imply Y_IMP_Y_VIS_TRI
	imply Y_IMP_M_VIS_TRI
	imply Y_IMP_N_VIS_TRI

config Y_IMP_Y_VIS_BOOL
	bool "y-imp y-vis bool"

config Y_IMP_M_VIS_BOOL
	bool "y-imp m-vis bool" if m

config Y_IMP_N_VIS_BOOL
	bool "y-imp n-vis bool" if n

config Y_IMP_Y_VIS_TRI
	tristate "y-imp y-vis tri"

config Y_IMP_M_VIS_TRI
	tristate "y-imp m-vis tri" if m

config Y_IMP_N_VIS_TRI
	tristate "y-imp n-vis tri" if n


# Symbols implied to m (never affects assignable values)

config M_IMPLIER
	def_tristate m

	imply M_IMP_Y_VIS_BOOL
	imply M_IMP_M_VIS_BOOL
	imply M_IMP_N_VIS_BOOL

	imply M_IMP_Y_VIS_TRI
	imply M_IMP_M_VIS_TRI
	imply M_IMP_N_VIS_TRI

config M_IMP_Y_VIS_BOOL
	bool "m-imp y-vis bool"

config M_IMP_M_VIS_BOOL
	bool "m-imp m-vis bool" if m

config M_IMP_N_VIS_BOOL
	bool "m-imp n-vis bool" if n

config M_IMP_Y_VIS_TRI
	tristate "m-imp y-vis tri"

config M_IMP_M_VIS_TRI
	tristate "m-imp m-vis tri" if m

config M_IMP_N_VIS_TRI
	tristate "m-imp n-vis tri" if n


# Symbols in y-mode choice

choice Y_CHOICE
	bool "y-mode choice"

config Y_CHOICE_BOOL
	bool "y-mode choice bool"

config Y_CHOICE_TRISTATE
	tristate "y-mode choice tristate"

config Y_CHOICE_N_VIS_TRISTATE
	tristate "y-mode choice tristate invisible" if n

endchoice


# Symbols in m/y-mode choice

choice MY_CHOICE
	tristate "m/y-mode choice"

config MY_CHOICE_BOOL
	bool "m/y-mode choice bool"

config MY_CHOICE_TRISTATE
	tristate "m/y-mode choice tristate"

config MY_CHOICE_N_VIS_TRISTATE
	tristate "m/y-mode choice tristate invisible" if n

endchoice


# Choices with some other possible modes

choice NMY_CHOICE
	tristate "n/m/y-mode choice"
	optional
endchoice

choice NY_CHOICE
	bool "n/y-mode choice"
	optional
endchoice

choice NM_CHOICE
	tristate "n/m-mode choice" if m
	optional
endchoice

choice M_CHOICE
	tristate "m-mode choice" if m
endchoice

choice N_CHOICE
	tristate "n-mode choice" if n
endchoice