xref: /aosp_15_r20/kernel/configs/w/android-6.12/android-base-conditional.xml (revision 1d3556b860e096874ddca674556f5d20fb3a73b0)
1<kernel minlts="6.12.0" />
2
3<!-- KEEP ALPHABETICALLY SORTED -->
4<!-- ARM base requirements -->
5<group>
6	<conditions>
7		<config>
8			<key>CONFIG_ARM</key>
9			<value type="bool">y</value>
10		</config>
11	</conditions>
12	<config>
13		<key>CONFIG_AEABI</key>
14		<value type="bool">y</value>
15	</config>
16	<config>
17		<key>CONFIG_CPU_SW_DOMAIN_PAN</key>
18		<value type="bool">y</value>
19	</config>
20	<config>
21		<key>CONFIG_DEVKMEM</key>
22		<value type="bool">n</value>
23	</config>
24	<config>
25		<key>CONFIG_OABI_COMPAT</key>
26		<value type="bool">n</value>
27	</config>
28</group>
29
30<!-- ARM64 base requirements -->
31<group>
32	<conditions>
33		<config>
34			<key>CONFIG_ARM64</key>
35			<value type="bool">y</value>
36		</config>
37	</conditions>
38	<config>
39		<key>CONFIG_ARM64_PAN</key>
40		<value type="bool">y</value>
41	</config>
42	<config>
43		<key>CONFIG_ARM64_SW_TTBR0_PAN</key>
44		<value type="bool">y</value>
45	</config>
46	<config>
47		<key>CONFIG_ARMV8_DEPRECATED</key>
48		<value type="bool">y</value>
49	</config>
50	<config>
51		<key>CONFIG_CFI_CLANG</key>
52		<value type="bool">y</value>
53	</config>
54	<config>
55		<key>CONFIG_COMPAT</key>
56		<value type="bool">y</value>
57	</config>
58	<config>
59		<key>CONFIG_CP15_BARRIER_EMULATION</key>
60		<value type="bool">y</value>
61	</config>
62	<config>
63		<key>CONFIG_RANDOMIZE_BASE</key>
64		<value type="bool">y</value>
65	</config>
66	<config>
67		<key>CONFIG_SETEND_EMULATION</key>
68		<value type="bool">y</value>
69	</config>
70	<config>
71		<key>CONFIG_SHADOW_CALL_STACK</key>
72		<value type="bool">y</value>
73	</config>
74	<config>
75		<key>CONFIG_SWP_EMULATION</key>
76		<value type="bool">y</value>
77	</config>
78	<config>
79		<key>CONFIG_HAVE_MOVE_PMD</key>
80		<value type="bool">y</value>
81	</config>
82	<config>
83		<key>CONFIG_HAVE_MOVE_PUD</key>
84		<value type="bool">y</value>
85	</config>
86	<config>
87		<key>CONFIG_KFENCE</key>
88		<value type="bool">y</value>
89	</config>
90	<config>
91		<key>CONFIG_USERFAULTFD</key>
92		<value type="bool">y</value>
93	</config>
94</group>
95
96<!-- x86 base requirements -->
97<group>
98	<conditions>
99		<config>
100			<key>CONFIG_X86</key>
101			<value type="bool">y</value>
102		</config>
103	</conditions>
104	<config>
105		<key>CONFIG_DEVKMEM</key>
106		<value type="bool">n</value>
107	</config>
108	<config>
109		<key>CONFIG_KFENCE</key>
110		<value type="bool">y</value>
111	</config>
112	<config>
113		<key>CONFIG_MITIGATION_PAGE_TABLE_ISOLATION</key>
114		<value type="bool">y</value>
115	</config>
116	<config>
117		<key>CONFIG_MITIGATION_RETPOLINE</key>
118		<value type="bool">y</value>
119	</config>
120	<config>
121		<key>CONFIG_HAVE_MOVE_PMD</key>
122		<value type="bool">y</value>
123	</config>
124	<config>
125		<key>CONFIG_HAVE_MOVE_PUD</key>
126		<value type="bool">y</value>
127	</config>
128	<config>
129		<key>CONFIG_RANDOMIZE_BASE</key>
130		<value type="bool">y</value>
131	</config>
132	<config>
133		<key>CONFIG_USERFAULTFD</key>
134		<value type="bool">y</value>
135	</config>
136</group>
137
138<!-- x86_64 base requirements -->
139<group>
140	<conditions>
141		<config>
142			<key>CONFIG_X86_64</key>
143			<value type="bool">y</value>
144		</config>
145	</conditions>
146	<config>
147		<key>CONFIG_CFI_CLANG</key>
148		<value type="bool">y</value>
149	</config>
150</group>
151
152<!-- CONFIG_ACPI || CONFIG_OF -->
153<group>
154	<conditions>
155		<config>
156			<key>CONFIG_ACPI</key>
157			<value type="bool">n</value>
158		</config>
159	</conditions>
160	<config>
161		<key>CONFIG_OF</key>
162		<value type="bool">y</value>
163	</config>
164</group>
165<group>
166	<conditions>
167		<config>
168			<key>CONFIG_OF</key>
169			<value type="bool">n</value>
170		</config>
171	</conditions>
172	<config>
173		<key>CONFIG_ACPI</key>
174		<value type="bool">y</value>
175	</config>
176</group>
177
178<!-- EXT4 requirements -->
179<group>
180	<conditions>
181		<config>
182			<key>CONFIG_EXT4_FS</key>
183			<value type="bool">y</value>
184		</config>
185	</conditions>
186	<config>
187		<key>CONFIG_EXT4_FS_POSIX_ACL</key>
188		<value type="bool">y</value>
189	</config>
190</group>
191
192<!-- F2FS requirements -->
193<group>
194	<conditions>
195		<config>
196			<key>CONFIG_F2FS_FS</key>
197			<value type="bool">y</value>
198		</config>
199	</conditions>
200	<config>
201		<key>CONFIG_F2FS_FS_POSIX_ACL</key>
202		<value type="bool">y</value>
203	</config>
204</group>
205
206<!-- CONFIG_VMAP_STACK requirement -->
207<group>
208	<conditions>
209		<config>
210			<key>CONFIG_HAVE_ARCH_VMAP_STACK</key>
211			<value type="bool">y</value>
212		</config>
213		<config>
214			<key>CONFIG_KASAN_SW_TAGS</key>
215			<value type="bool">n</value>
216		</config>
217	</conditions>
218	<config>
219		<key>CONFIG_VMAP_STACK</key>
220		<value type="bool">y</value>
221	</config>
222</group>
223
224<!-- CONFIG_INIT_STACK_ALL_ZERO requirement -->
225<group>
226	<conditions>
227		<config>
228			<key>CONFIG_CC_HAS_AUTO_VAR_INIT_ZERO</key>
229			<value type="bool">y</value>
230		</config>
231	</conditions>
232	<config>
233		<key>CONFIG_INIT_STACK_ALL_ZERO</key>
234		<value type="bool">y</value>
235	</config>
236</group>
237