Atlas - Kstr

Home / ext / kconfiglib / tests Lines: 1 | Size: 4256 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)]
[FILE BEGIN]
1if UNDEFINED 2endif 3 4config NO_TYPE 5 6config BASIC_NO_PROMPT 7 bool 8 help 9 blah blah 10 11 blah blah blah 12 13 blah 14 15config BASIC_PROMPT 16 bool "basic" 17 18config ADVANCED 19 tristate "prompt" if DEP 20 default DEFAULT_1 21 default DEFAULT_2 if DEP 22 select SELECTED_1 23 select SELECTED_2 if DEP 24 imply IMPLIED_1 25 imply IMPLIED_2 if DEP 26 help 27 first help text 28 29config ADVANCED 30 prompt "prompt 2" 31 32menuconfig ADVANCED 33 prompt "prompt 3" 34 35if DEP3 36 37menu "foo" 38 depends on DEP4 39 visible if VIS 40 41config ADVANCED 42 help 43 second help text 44 depends on A || !B || (C && D) || !(E && F) || G = H || \ 45 (I && !J && (K || L) && !(M || N) && O = P) 46 47config ADVANCED 48 # Used to verify that the direct dependencies appear to the right of VIS 49 prompt "prompt 4" 50 51endmenu 52 53endif 54 55config ONLY_DIRECT_DEPS 56 int 57 depends on DEP1 58 depends on DEP2 59 60config STRING 61 def_string "foo" 62 default "bar" if DEP 63 default STRING2 64 default STRING3 if DEP 65 66config INT 67 def_int 7 if DEP 68 range 1 2 69 range FOO BAR 70 range BAZ QAZ if DEP 71 72config HEX 73 def_hex 0x123 74 range 0x100 0x200 75 range FOO BAR 76 range BAZ QAZ if DEP 77 78config MODULES 79 bool "MODULES" 80 option modules 81 82config OPTIONS 83 option allnoconfig_y 84 option defconfig_list 85 option env="ENV" 86 87if LOC_1 88config CORRECT_PROP_LOCS_BOOL 89 prompt "prompt 1" 90 default DEFAULT_1 91 default DEFAULT_2 92 select SELECT_1 93 select SELECT_2 94 imply IMPLY_1 95 imply IMPLY_2 96 help 97 help 1 98endif 99 100if LOC_2 101menuconfig CORRECT_PROP_LOCS_BOOL 102 bool "prompt 2" 103 default DEFAULT_3 104 default DEFAULT_4 105 select SELECT_3 106 select SELECT_4 107 imply IMPLY_3 108 imply IMPLY_4 109 help 110 help 2 111endif 112 113if LOC_3 114config CORRECT_PROP_LOCS_BOOL 115 prompt "prompt 3" 116 default DEFAULT_5 117 default DEFAULT_6 118 select SELECT_5 119 select SELECT_6 120 imply IMPLY_5 121 imply IMPLY_6 122 help 123 help 2 124endif 125 126if LOC_1 127config CORRECT_PROP_LOCS_INT 128 int 129 range 1 2 130 range 3 4 131endif 132 133if LOC_2 134config CORRECT_PROP_LOCS_INT 135 range 5 6 136 range 7 8 137endif 138 139choice CHOICE 140 tristate "foo" 141 default CHOICE_1 142 default CHOICE_2 if dep 143 144config CHOICE_1 145 tristate "choice 1" 146 147config CHOICE_2 148 tristate "choice 2" 149 150endchoice 151 152choice 153 tristate "no name" 154 optional 155endchoice 156 157if LOC_1 158choice CORRECT_PROP_LOCS_CHOICE 159 bool 160 default CHOICE_3 161 162config CHOICE_3 163 bool "choice 3" 164 165config CHOICE_4 166 bool "choice 3" 167 168config CHOICE_5 169 bool "choice 3" 170 171endchoice 172endif 173 174if LOC_2 175choice CORRECT_PROP_LOCS_CHOICE 176 default CHOICE_4 177endchoice 178endif 179 180if LOC_3 181choice CORRECT_PROP_LOCS_CHOICE 182 default CHOICE_5 183endchoice 184endif 185 186config SIMPLE_MENU_HOOK 187menu "simple menu" 188endmenu 189 190config ADVANCED_MENU_HOOK 191menu "advanced menu" 192 depends on A 193 visible if B 194 visible if C || D 195endmenu 196 197config SIMPLE_COMMENT_HOOK 198comment "simple comment" 199 200config ADVANCED_COMMENT_HOOK 201comment "advanced comment" 202 depends on A 203 depends on B 204 205# Corner cases when removing direct dependencies 206 207config DEP_REM_CORNER_CASES 208 bool 209 default A 210 depends on n 211 212config DEP_REM_CORNER_CASES 213 default B if n 214 215config DEP_REM_CORNER_CASES 216 default C 217 depends on m 218 219config DEP_REM_CORNER_CASES 220 default D if A && y 221 depends on y 222 223config DEP_REM_CORNER_CASES 224 default E if !E1 225 default F if F1 = F2 226 default G if G1 || H1 227 depends on !H 228 229config DEP_REM_CORNER_CASES 230 default H 231 depends on "foo" = "bar" 232 233menu "menu" 234 visible if FOO || BAR 235 236config DEP_REM_CORNER_CASES 237 prompt "prompt" 238 depends on BAZ && QAZ 239 240endmenu 241 242# Only prompt, no type 243config PROMPT_ONLY 244 prompt "prompt only" 245 246# {Symbol,Choice}.orig_* 247 248if BASE_DEP 249 250config BOOL_SYM_ORIG 251 bool 252 default D1 if DEP 253 default D2 254 select S1 255 select S2 if DEP 256 imply I1 257 imply I1 258 259config BOOL_SYM_ORIG 260 default D3 261 select S3 262 imply I3 if DEP 263 264config INT_SYM_ORIG 265 int 266 range 1 2 if DEP 267 range 3 4 268 269config INT_SYM_ORIG 270 range 5 6 if DEP 271 272choice CHOICE_ORIG 273 bool "choice orig" 274 default A 275 default B if DEP 276 277config A 278 bool 279 280config B 281 bool 282 283endchoice 284 285choice CHOICE_ORIG 286 default C if DEP 287 288config C 289 bool 290 291endchoice 292 293endif 294
[FILE END]
(C) 2025 0x4248 (C) 2025 4248 Media and 4248 Systems, All part of 0x4248 See LICENCE files for more information. Not all files are by 0x4248 always check Licencing.