Debian Codegraph @

tests/Kimply

raw
1 config MODULES
2 def_bool y
3 option modules
4
5 #
6 # Implied symbols with unmet and met direct dependencies
7 #
8
9 config 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
19 config UNMET_DIRECT_1
20 tristate
21 depends on n
22
23 if n
24 config UNMET_DIRECT_2
25 tristate
26 endif
27
28 menu "menu"
29 depends on n
30
31 config UNMET_DIRECT_3
32 tristate
33
34 endmenu
35
36 config MET_DIRECT_1
37 tristate
38
39 config MET_DIRECT_2
40 depends on y
41 tristate
42
43 if y
44 config MET_DIRECT_3
45 tristate
46 endif
47
48 menu "menu"
49 depends on y
50
51 config MET_DIRECT_4
52 tristate
53
54 endmenu
55
56 #
57 # 'imply' with condition
58 #
59
60 config 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
67 config IMPLIED_N_COND
68 tristate
69
70 config IMPLIED_M_COND
71 tristate
72
73 config IMPLIED_Y_COND
74 tristate
75
76 #
77 # Implying from symbol with value n
78 #
79
80 # Will default to 'n'
81 config 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
86 if n
87 config IMPLY_N_2
88 tristate
89 imply IMPLIED_FROM_N_2
90 endif
91
92 config IMPLIED_FROM_N_1
93 tristate
94
95 config IMPLIED_FROM_N_2
96 tristate
97
98 #
99 # Implying from symbol with value m
100 #
101
102 config 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
108 config IMPLIED_M
109 tristate
110
111 config IMPLIED_M_BOOL
112 bool
113
114 #
115 # 'imply' which should raise an 'm' default to 'y'
116 #
117
118 config IMPLY_M_TO_Y
119 tristate
120 default y
121 imply IMPLIED_M_TO_Y
122
123 config IMPLIED_M_TO_Y
124 tristate
125 default m
126
127 #
128 # Used for testing user values
129 #
130
131 config DIRECT_DEP
132 tristate "direct dep"
133
134 config IMPLY
135 tristate "imply"
136 imply IMPLIED_TRISTATE
137 imply IMPLIED_BOOL
138
139 config IMPLIED_TRISTATE
140 tristate "implied tristate"
141 depends on DIRECT_DEP
142
143 config IMPLIED_BOOL
144 bool "implied bool"
145 depends on DIRECT_DEP