1comment "Kernel Header Options"
2
3choice
4	prompt "Kernel Headers"
5	default BR2_KERNEL_HEADERS_AS_KERNEL if BR2_LINUX_KERNEL
6	default BR2_KERNEL_HEADERS_6_8
7	help
8	  Select the kernel version to get headers from.
9
10	  The kernel headers must be at least as old as the oldest
11	  kernel you intend to run on your target.
12
13	  If you use Buildroot to build a kernel, then you can use
14	  the sources from that kernel as source for the headers.
15
16	  If you choose a custom version of the kernel headers, or
17	  choose to use the same sources as the kernel, you'll have to
18	  select (below) the series of that kernel, so that Buildroot
19	  can show or hide packages that have strong requirements on the
20	  kernel headers.
21
22config BR2_KERNEL_HEADERS_AS_KERNEL
23	bool "Same as kernel being built"
24	depends on BR2_LINUX_KERNEL
25	select BR2_KERNEL_HEADERS_LATEST if BR2_LINUX_KERNEL_LATEST_VERSION
26
27config BR2_KERNEL_HEADERS_4_19
28	bool "Linux 4.19.x kernel headers"
29	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
30
31config BR2_KERNEL_HEADERS_5_4
32	bool "Linux 5.4.x kernel headers"
33	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
34
35config BR2_KERNEL_HEADERS_5_10
36	bool "Linux 5.10.x kernel headers"
37	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
38
39config BR2_KERNEL_HEADERS_5_15
40	bool "Linux 5.15.x kernel headers"
41	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15
42
43config BR2_KERNEL_HEADERS_6_1
44	bool "Linux 6.1.x kernel headers"
45	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_1
46
47config BR2_KERNEL_HEADERS_6_6
48	bool "Linux 6.6.x kernel headers"
49	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_6
50
51config BR2_KERNEL_HEADERS_6_8
52	bool "Linux 6.8.x kernel headers"
53	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_8
54	select BR2_KERNEL_HEADERS_LATEST
55
56config BR2_KERNEL_HEADERS_VERSION
57	bool "Manually specified Linux version"
58	help
59	  This option allows you to use a specific official version from
60	  kernel.org, like 2.6.x, 2.6.x.y, 3.x.y, ...
61
62	  Note: you cannot use this option to select a _longterm_ 2.6
63	  kernel, because these kernels are not located at the standard
64	  URL at kernel.org. Instead, select "Custom tarball" and
65	  specify the right URL directly.
66
67config BR2_KERNEL_HEADERS_CUSTOM_TARBALL
68	bool "Custom tarball"
69	help
70	  This option allows you to specify a URL pointing to a kernel
71	  source tarball. This URL can use any protocol recognized by
72	  Buildroot, like http://, ftp://, file:// or scp://.
73
74	  When pointing to a local tarball using file://, you may want
75	  to use a make variable like $(TOPDIR) to reference the root of
76	  the Buildroot tree.
77
78config BR2_KERNEL_HEADERS_CUSTOM_GIT
79	bool "Custom Git repository"
80	help
81	  This option allows Buildroot to get the Linux kernel source
82	  code from a Git repository.
83
84endchoice
85
86# Select this for the latest kernel headers version (for license hashes)
87config BR2_KERNEL_HEADERS_LATEST
88	bool
89
90config BR2_DEFAULT_KERNEL_VERSION
91	string "linux version"
92	depends on BR2_KERNEL_HEADERS_VERSION
93	help
94	  Specify the version you want to use.
95	  E.G.: 3.6.10
96
97config BR2_KERNEL_HEADERS_CUSTOM_TARBALL_LOCATION
98	string "URL of custom kernel tarball"
99	depends on BR2_KERNEL_HEADERS_CUSTOM_TARBALL
100
101if BR2_KERNEL_HEADERS_CUSTOM_GIT
102
103config BR2_KERNEL_HEADERS_CUSTOM_REPO_URL
104	string "URL of custom repository"
105
106config BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION
107	string "Custom repository version"
108	help
109	  Revision to use in the typical format used by
110	  Git/Mercurial/Subversion E.G. a sha id, a tag, branch, ..
111
112endif
113
114choice
115	bool "Custom kernel headers series"
116	depends on !BR2_LINUX_KERNEL_LATEST_VERSION || !BR2_KERNEL_HEADERS_AS_KERNEL
117	depends on !BR2_LINUX_KERNEL_LATEST_CIP_VERSION || !BR2_KERNEL_HEADERS_AS_KERNEL
118	depends on !BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION || !BR2_KERNEL_HEADERS_AS_KERNEL
119	depends on BR2_KERNEL_HEADERS_VERSION || BR2_KERNEL_HEADERS_AS_KERNEL || \
120		   BR2_KERNEL_HEADERS_CUSTOM_TARBALL || BR2_KERNEL_HEADERS_CUSTOM_GIT
121	help
122	  Specify the kernel headers series you manually selected,
123	  above.
124
125	  This is used to hide/show some packages that have strict
126	  requirements on the version of kernel headers.
127
128	  If your kernel headers are more recent than the latest version
129	  in the choice, then select the latest version.
130
131config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_8
132	bool "6.8.x or later"
133	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_8
134
135config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_7
136	bool "6.7.x"
137	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_7
138
139config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_6
140	bool "6.6.x"
141	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_6
142
143config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_5
144	bool "6.5.x"
145	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_5
146
147config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_4
148	bool "6.4.x"
149	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_4
150
151config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_3
152	bool "6.3.x"
153	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_3
154
155config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_2
156	bool "6.2.x"
157	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_2
158
159config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_1
160	bool "6.1.x"
161	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_1
162
163config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_6_0
164	bool "6.0.x"
165	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_0
166
167config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_19
168	bool "5.19.x"
169	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_19
170
171config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_18
172	bool "5.18.x"
173	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_18
174
175config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_17
176	bool "5.17.x"
177	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_17
178
179config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_16
180	bool "5.16.x"
181	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_16
182
183config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15
184	bool "5.15.x"
185	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15
186
187config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_14
188	bool "5.14.x"
189	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_14
190
191config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_13
192	bool "5.13.x"
193	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_13
194
195config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_12
196	bool "5.12.x"
197	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
198
199config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_11
200	bool "5.11.x"
201	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
202
203config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10
204	bool "5.10.x"
205	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
206
207config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_9
208	bool "5.9.x"
209	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
210
211config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_8
212	bool "5.8.x"
213	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_8
214
215config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_7
216	bool "5.7.x"
217	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
218
219config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_6
220	bool "5.6.x"
221	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
222
223config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_5
224	bool "5.5.x"
225	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
226
227config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4
228	bool "5.4.x"
229	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
230
231config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_3
232	bool "5.3.x"
233	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3
234
235config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_2
236	bool "5.2.x"
237	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
238
239config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_1
240	bool "5.1.x"
241	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
242
243config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0
244	bool "5.0.x"
245	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
246
247config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_20
248	bool "4.20.x"
249	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
250
251config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19
252	bool "4.19.x"
253	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
254
255config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_18
256	bool "4.18.x"
257	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18
258
259config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_17
260	bool "4.17.x"
261	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
262
263config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_16
264	bool "4.16.x"
265	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
266
267config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_15
268	bool "4.15.x"
269	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
270
271config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14
272	bool "4.14.x"
273	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
274
275config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_13
276	bool "4.13.x"
277	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
278
279config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_12
280	bool "4.12.x"
281	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
282
283config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11
284	bool "4.11.x"
285	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
286
287config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_10
288	bool "4.10.x"
289	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
290
291config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9
292	bool "4.9.x"
293	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
294
295config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_8
296	bool "4.8.x"
297	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
298
299config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_7
300	bool "4.7.x"
301	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
302
303config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_6
304	bool "4.6.x"
305	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
306
307config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_5
308	bool "4.5.x"
309	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
310
311config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4
312	bool "4.4.x"
313	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
314
315config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_3
316	bool "4.3.x"
317	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
318
319config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_2
320	bool "4.2.x"
321	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
322
323config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1
324	bool "4.1.x"
325	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
326
327config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_0
328	bool "4.0.x"
329	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
330
331config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_19
332	bool "3.19.x"
333	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
334
335config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18
336	bool "3.18.x"
337	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
338
339config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_17
340	bool "3.17.x"
341	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
342
343config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_16
344	bool "3.16.x"
345	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
346
347config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_15
348	bool "3.15.x"
349	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
350
351config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_14
352	bool "3.14.x"
353	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
354
355config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_13
356	bool "3.13.x"
357	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
358
359config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_12
360	bool "3.12.x"
361	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
362
363config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_11
364	bool "3.11.x"
365	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
366
367config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_10
368	bool "3.10.x"
369	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
370
371config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_9
372	bool "3.9.x"
373	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
374
375config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_8
376	bool "3.8.x"
377	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
378
379config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_7
380	bool "3.7.x"
381	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
382
383config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_6
384	bool "3.6.x"
385	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
386
387config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_5
388	bool "3.5.x"
389	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
390
391config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_4
392	bool "3.4.x"
393	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
394
395config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_3
396	bool "3.3.x"
397	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
398
399config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_2
400	bool "3.2.x"
401	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
402
403config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_1
404	bool "3.1.x"
405	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
406
407config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_0
408	bool "3.0.x"
409	select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
410
411config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_REALLY_OLD
412	bool "2.6.x"
413
414endchoice
415
416config BR2_DEFAULT_KERNEL_HEADERS
417	string
418	default "4.19.315"	if BR2_KERNEL_HEADERS_4_19
419	default "5.4.277"	if BR2_KERNEL_HEADERS_5_4
420	default "5.10.218"	if BR2_KERNEL_HEADERS_5_10
421	default "5.15.160"	if BR2_KERNEL_HEADERS_5_15
422	default "6.1.92"	if BR2_KERNEL_HEADERS_6_1
423	default "6.6.32"	if BR2_KERNEL_HEADERS_6_6
424	default "6.8.12"	if BR2_KERNEL_HEADERS_6_8
425	default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
426	default "custom"	if BR2_KERNEL_HEADERS_CUSTOM_TARBALL
427	default BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION \
428		if BR2_KERNEL_HEADERS_CUSTOM_GIT
429