Atlas - Kimply
Home / ext / kconfiglib / tests Lines: 1 | Size: 2056 bytes [Download] [Show on GitHub] [Search similar files] [Raw] [Raw (proxy)][FILE BEGIN]1config MODULES 2 def_bool y 3 option modules 4 5# 6# Implied symbols with unmet and met direct dependencies 7# 8 9config IMPLY_DIRECT_DEPS 10 def_tristate y 11 imply UNMET_DIRECT_1 12 imply UNMET_DIRECT_2 13 imply UNMET_DIRECT_3 14 imply MET_DIRECT_1 15 imply MET_DIRECT_2 16 imply MET_DIRECT_3 17 imply MET_DIRECT_4 18 19config UNMET_DIRECT_1 20 tristate 21 depends on n 22 23if n 24config UNMET_DIRECT_2 25 tristate 26endif 27 28menu "menu" 29 depends on n 30 31config UNMET_DIRECT_3 32 tristate 33 34endmenu 35 36config MET_DIRECT_1 37 tristate 38 39config MET_DIRECT_2 40 depends on y 41 tristate 42 43if y 44config MET_DIRECT_3 45 tristate 46endif 47 48menu "menu" 49 depends on y 50 51config MET_DIRECT_4 52 tristate 53 54endmenu 55 56# 57# 'imply' with condition 58# 59 60config IMPLY_COND 61 def_tristate y 62 tristate 63 imply IMPLIED_N_COND if n 64 imply IMPLIED_M_COND if m 65 imply IMPLIED_Y_COND if y 66 67config IMPLIED_N_COND 68 tristate 69 70config IMPLIED_M_COND 71 tristate 72 73config IMPLIED_Y_COND 74 tristate 75 76# 77# Implying from symbol with value n 78# 79 80# Will default to 'n' 81config IMPLY_N_1 82 tristate 83 imply IMPLIED_FROM_N_1 84 85# This test also disables the imply, so it's kinda redundant, but why not 86if n 87config IMPLY_N_2 88 tristate 89 imply IMPLIED_FROM_N_2 90endif 91 92config IMPLIED_FROM_N_1 93 tristate 94 95config IMPLIED_FROM_N_2 96 tristate 97 98# 99# Implying from symbol with value m 100# 101 102config IMPLY_M 103 def_tristate m 104 imply IMPLIED_M 105 # Implying a bool to 'm' makes it default to 'y' 106 imply IMPLIED_M_BOOL 107 108config IMPLIED_M 109 tristate 110 111config IMPLIED_M_BOOL 112 bool 113 114# 115# 'imply' which should raise an 'm' default to 'y' 116# 117 118config IMPLY_M_TO_Y 119 tristate 120 default y 121 imply IMPLIED_M_TO_Y 122 123config IMPLIED_M_TO_Y 124 tristate 125 default m 126 127# 128# Used for testing user values 129# 130 131config DIRECT_DEP 132 tristate "direct dep" 133 134config IMPLY 135 tristate "imply" 136 imply IMPLIED_TRISTATE 137 imply IMPLIED_BOOL 138 139config IMPLIED_TRISTATE 140 tristate "implied tristate" 141 depends on DIRECT_DEP 142 143config IMPLIED_BOOL 144 bool "implied bool" 145 depends on DIRECT_DEP 146[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.