| 1 |
config MODULES |
| 2 |
bool "MODULES" |
| 3 |
option modules |
| 4 |
|
| 5 |
# |
| 6 |
# Symbol visibility |
| 7 |
# |
| 8 |
|
| 9 |
config NO_PROMPT |
| 10 |
bool |
| 11 |
|
| 12 |
# Not rewritten, so MOD will have the value 'y' when running without modules |
| 13 |
config MOD |
| 14 |
def_tristate m |
| 15 |
|
| 16 |
config BOOL_N |
| 17 |
bool "bool n" if n |
| 18 |
|
| 19 |
config BOOL_M |
| 20 |
# Rewritten to m && MODULES |
| 21 |
bool "bool m" if m |
| 22 |
|
| 23 |
config BOOL_MOD |
| 24 |
bool "bool MOD" |
| 25 |
# Not rewritten |
| 26 |
depends on MOD |
| 27 |
|
| 28 |
config BOOL_Y |
| 29 |
bool "bool y" |
| 30 |
# Rewritten to m && MODULES |
| 31 |
depends on y || m |
| 32 |
|
| 33 |
config TRISTATE_N |
| 34 |
tristate "tristate n" if n |
| 35 |
|
| 36 |
config TRISTATE_M |
| 37 |
# Rewritten to m && MODULES |
| 38 |
tristate "tristate m" if m |
| 39 |
|
| 40 |
config TRISTATE_MOD |
| 41 |
tristate "tristate MOD" |
| 42 |
# Not rewritten |
| 43 |
depends on MOD |
| 44 |
|
| 45 |
config TRISTATE_Y |
| 46 |
bool "tristate y" |
| 47 |
# Rewritten to m && MODULES |
| 48 |
depends on y || m |
| 49 |
|
| 50 |
# Symbols nested in 'if' |
| 51 |
|
| 52 |
if n |
| 53 |
|
| 54 |
config BOOL_IF_N |
| 55 |
bool "bool if n" |
| 56 |
|
| 57 |
config TRISTATE_IF_N |
| 58 |
tristate "tristate if n" |
| 59 |
|
| 60 |
endif |
| 61 |
|
| 62 |
if m |
| 63 |
|
| 64 |
config BOOL_IF_M |
| 65 |
bool "bool if m" |
| 66 |
|
| 67 |
config TRISTATE_IF_M |
| 68 |
tristate "tristate if n" |
| 69 |
|
| 70 |
endif |
| 71 |
|
| 72 |
if y |
| 73 |
|
| 74 |
config BOOL_IF_Y |
| 75 |
bool "bool if y" |
| 76 |
|
| 77 |
config TRISTATE_IF_Y |
| 78 |
tristate "tristate if y" |
| 79 |
|
| 80 |
endif |
| 81 |
|
| 82 |
# Symbols nested in 'menu' |
| 83 |
|
| 84 |
menu "menu 1" |
| 85 |
depends on n |
| 86 |
|
| 87 |
config BOOL_MENU_N |
| 88 |
bool "bool menu n" |
| 89 |
|
| 90 |
config TRISTATE_MENU_N |
| 91 |
tristate "tristate menu n" |
| 92 |
|
| 93 |
endmenu |
| 94 |
|
| 95 |
menu "menu 2" |
| 96 |
depends on m |
| 97 |
|
| 98 |
config BOOL_MENU_M |
| 99 |
bool "bool menu m" |
| 100 |
|
| 101 |
config TRISTATE_MENU_M |
| 102 |
tristate "tristate menu n" |
| 103 |
|
| 104 |
endmenu |
| 105 |
|
| 106 |
menu "menu 3" |
| 107 |
depends on y |
| 108 |
|
| 109 |
config BOOL_MENU_Y |
| 110 |
bool "bool menu y" |
| 111 |
|
| 112 |
config TRISTATE_MENU_Y |
| 113 |
tristate "tristate menu y" |
| 114 |
|
| 115 |
endmenu |
| 116 |
|
| 117 |
# Symbols nested in choices |
| 118 |
|
| 119 |
choice C1 |
| 120 |
tristate "choice n" if n |
| 121 |
|
| 122 |
config BOOL_CHOICE_N |
| 123 |
bool "bool choice n" |
| 124 |
|
| 125 |
config TRISTATE_CHOICE_N |
| 126 |
tristate "tristate choice n" |
| 127 |
|
| 128 |
endchoice |
| 129 |
|
| 130 |
choice C2 |
| 131 |
tristate "choice m" if m |
| 132 |
|
| 133 |
config BOOL_CHOICE_M |
| 134 |
bool "bool choice m" |
| 135 |
|
| 136 |
config TRISTATE_CHOICE_M |
| 137 |
tristate "tristate choice n" |
| 138 |
|
| 139 |
endchoice |
| 140 |
|
| 141 |
choice C3 |
| 142 |
tristate "choice y" if y |
| 143 |
|
| 144 |
config BOOL_CHOICE_Y |
| 145 |
bool "bool choice y" |
| 146 |
|
| 147 |
config TRISTATE_CHOICE_Y |
| 148 |
tristate "tristate choice y" |
| 149 |
|
| 150 |
endchoice |
| 151 |
|
| 152 |
# |
| 153 |
# Choice visibility |
| 154 |
# |
| 155 |
|
| 156 |
choice BOOL_CHOICE_N |
| 157 |
bool "bool choice n" if n |
| 158 |
endchoice |
| 159 |
|
| 160 |
choice BOOL_CHOICE_M |
| 161 |
bool "bool choice m" if m |
| 162 |
endchoice |
| 163 |
|
| 164 |
choice BOOL_CHOICE_Y |
| 165 |
bool "bool choice y" if y |
| 166 |
endchoice |
| 167 |
|
| 168 |
choice TRISTATE_CHOICE_N |
| 169 |
tristate "tristate choice n" if n |
| 170 |
endchoice |
| 171 |
|
| 172 |
choice TRISTATE_CHOICE_M |
| 173 |
tristate "tristate choice m" if m |
| 174 |
endchoice |
| 175 |
|
| 176 |
choice TRISTATE_CHOICE_Y |
| 177 |
tristate "tristate choice y" if y |
| 178 |
|
| 179 |
config K |
| 180 |
tristate "K" |
| 181 |
|
| 182 |
config L |
| 183 |
tristate "L" |
| 184 |
|
| 185 |
endchoice |
| 186 |
|
| 187 |
if m |
| 188 |
choice TRISTATE_CHOICE_IF_M_AND_Y |
| 189 |
tristate "tristate choice if m and y" if y |
| 190 |
|
| 191 |
config M |
| 192 |
bool "M" |
| 193 |
|
| 194 |
config N |
| 195 |
bool "N" |
| 196 |
|
| 197 |
endchoice |
| 198 |
endif |
| 199 |
|
| 200 |
menu "choice-containing menu" |
| 201 |
depends on n && y |
| 202 |
|
| 203 |
choice TRISTATE_CHOICE_MENU_N_AND_Y |
| 204 |
tristate "tristate choice if n and y" |
| 205 |
|
| 206 |
config O |
| 207 |
tristate "O" |
| 208 |
|
| 209 |
config P |
| 210 |
tristate "P" |
| 211 |
|
| 212 |
endchoice |
| 213 |
|
| 214 |
endmenu |
| 215 |
|
| 216 |
# |
| 217 |
# Menu visibility |
| 218 |
# |
| 219 |
|
| 220 |
menu "menu n" |
| 221 |
depends on n |
| 222 |
endmenu |
| 223 |
|
| 224 |
menu "menu m" |
| 225 |
depends on m |
| 226 |
endmenu |
| 227 |
|
| 228 |
menu "menu y" |
| 229 |
depends on y |
| 230 |
endmenu |
| 231 |
|
| 232 |
if n |
| 233 |
menu "menu if n" |
| 234 |
endmenu |
| 235 |
endif |
| 236 |
|
| 237 |
if m |
| 238 |
menu "menu if m" |
| 239 |
endmenu |
| 240 |
endif |
| 241 |
|
| 242 |
if y |
| 243 |
menu "menu if y" |
| 244 |
endmenu |
| 245 |
endif |
| 246 |
|
| 247 |
if m |
| 248 |
menu "menu if m and y" |
| 249 |
depends on y |
| 250 |
endmenu |
| 251 |
endif |
| 252 |
|
| 253 |
# |
| 254 |
# Comment visibility |
| 255 |
# |
| 256 |
|
| 257 |
comment "comment n" |
| 258 |
depends on n |
| 259 |
comment "comment m" |
| 260 |
depends on m |
| 261 |
comment "comment y" |
| 262 |
depends on y |
| 263 |
|
| 264 |
if n |
| 265 |
comment "comment if n" |
| 266 |
endif |
| 267 |
|
| 268 |
if m |
| 269 |
comment "comment if m" |
| 270 |
endif |
| 271 |
|
| 272 |
if y |
| 273 |
comment "comment if y" |
| 274 |
endif |
| 275 |
|
| 276 |
if "y" |
| 277 |
|
| 278 |
menu "menu with comment" |
| 279 |
depends on m |
| 280 |
|
| 281 |
comment "double-nested m comment" |
| 282 |
depends on y |
| 283 |
|
| 284 |
endmenu |
| 285 |
|
| 286 |
endif |
| 287 |
|
| 288 |
# Used to verify that string/int/hex symbols with m visibility accept a user |
| 289 |
# value |
| 290 |
|
| 291 |
if m |
| 292 |
|
| 293 |
config STRING_m |
| 294 |
string "string" |
| 295 |
|
| 296 |
config INT_m |
| 297 |
int "int" |
| 298 |
|
| 299 |
config HEX_m |
| 300 |
hex "hex" |
| 301 |
|
| 302 |
endif |
| 303 |
|
| 304 |
# Menu 'visible if' visibility |
| 305 |
|
| 306 |
menu "n-visible menu" |
| 307 |
visible if n |
| 308 |
|
| 309 |
config VISIBLE_IF_N |
| 310 |
tristate "visible if n" |
| 311 |
|
| 312 |
endmenu |
| 313 |
|
| 314 |
menu "m-visible menu" |
| 315 |
visible if m |
| 316 |
|
| 317 |
config VISIBLE_IF_M |
| 318 |
tristate "visible if m" |
| 319 |
|
| 320 |
endmenu |
| 321 |
|
| 322 |
menu "y-visible menu" |
| 323 |
visible if y |
| 324 |
|
| 325 |
config VISIBLE_IF_Y |
| 326 |
tristate "visible if m" |
| 327 |
|
| 328 |
endmenu |
| 329 |
|
| 330 |
menu "m-visible menu 2" |
| 331 |
visible if y || n |
| 332 |
visible if m && y |
| 333 |
visible if y |
| 334 |
|
| 335 |
if y |
| 336 |
|
| 337 |
config VISIBLE_IF_M_2 |
| 338 |
tristate "visible if m 2" |
| 339 |
|
| 340 |
endif |
| 341 |
|
| 342 |
endmenu |