Config.in.host 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. comment "Kernel Header Options"
  2. config BR2_PACKAGE_HOST_LINUX_HEADERS
  3. bool
  4. choice
  5. prompt "Kernel Headers"
  6. default BR2_KERNEL_HEADERS_AS_KERNEL if BR2_LINUX_KERNEL
  7. default BR2_KERNEL_HEADERS_5_17
  8. help
  9. Select the kernel version to get headers from.
  10. The kernel headers must be at least as old as the oldest
  11. kernel you intend to run on your target.
  12. If you use Buildroot to build a kernel, then you can use
  13. the sources from that kernel as source for the headers.
  14. If you choose a custom version of the kernel headers, or
  15. choose to use the same sources as the kernel, you'll have to
  16. select (below) the series of that kernel, so that Buildroot
  17. can show or hide packages that have strong requirements on the
  18. kernel headers.
  19. config BR2_KERNEL_HEADERS_AS_KERNEL
  20. bool "Same as kernel being built"
  21. depends on BR2_LINUX_KERNEL
  22. select BR2_KERNEL_HEADERS_LATEST if BR2_LINUX_KERNEL_LATEST_VERSION
  23. config BR2_KERNEL_HEADERS_4_9
  24. bool "Linux 4.9.x kernel headers"
  25. depends on !BR2_riscv
  26. depends on !BR2_csky
  27. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
  28. config BR2_KERNEL_HEADERS_4_14
  29. bool "Linux 4.14.x kernel headers"
  30. depends on !BR2_riscv
  31. depends on !BR2_csky
  32. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
  33. config BR2_KERNEL_HEADERS_4_19
  34. bool "Linux 4.19.x kernel headers"
  35. depends on !BR2_csky
  36. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
  37. config BR2_KERNEL_HEADERS_5_4
  38. bool "Linux 5.4.x kernel headers"
  39. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
  40. config BR2_KERNEL_HEADERS_5_10
  41. bool "Linux 5.10.x kernel headers"
  42. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
  43. config BR2_KERNEL_HEADERS_5_15
  44. bool "Linux 5.15.x kernel headers"
  45. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15
  46. config BR2_KERNEL_HEADERS_5_17
  47. bool "Linux 5.17.x kernel headers"
  48. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_17
  49. select BR2_KERNEL_HEADERS_LATEST
  50. config BR2_KERNEL_HEADERS_VERSION
  51. bool "Manually specified Linux version"
  52. help
  53. This option allows you to use a specific official version from
  54. kernel.org, like 2.6.x, 2.6.x.y, 3.x.y, ...
  55. Note: you cannot use this option to select a _longterm_ 2.6
  56. kernel, because these kernels are not located at the standard
  57. URL at kernel.org. Instead, select "Custom tarball" and
  58. specify the right URL directly.
  59. config BR2_KERNEL_HEADERS_CUSTOM_TARBALL
  60. bool "Custom tarball"
  61. help
  62. This option allows you to specify a URL pointing to a kernel
  63. source tarball. This URL can use any protocol recognized by
  64. Buildroot, like http://, ftp://, file:// or scp://.
  65. When pointing to a local tarball using file://, you may want
  66. to use a make variable like $(TOPDIR) to reference the root of
  67. the Buildroot tree.
  68. config BR2_KERNEL_HEADERS_CUSTOM_GIT
  69. bool "Custom Git repository"
  70. help
  71. This option allows Buildroot to get the Linux kernel source
  72. code from a Git repository.
  73. endchoice
  74. # Select this for the latest kernel headers version (for license hashes)
  75. config BR2_KERNEL_HEADERS_LATEST
  76. bool
  77. config BR2_DEFAULT_KERNEL_VERSION
  78. string "linux version"
  79. depends on BR2_KERNEL_HEADERS_VERSION
  80. help
  81. Specify the version you want to use.
  82. E.G.: 3.6.10
  83. config BR2_KERNEL_HEADERS_CUSTOM_TARBALL_LOCATION
  84. string "URL of custom kernel tarball"
  85. depends on BR2_KERNEL_HEADERS_CUSTOM_TARBALL
  86. if BR2_KERNEL_HEADERS_CUSTOM_GIT
  87. config BR2_KERNEL_HEADERS_CUSTOM_REPO_URL
  88. string "URL of custom repository"
  89. config BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION
  90. string "Custom repository version"
  91. help
  92. Revision to use in the typical format used by
  93. Git/Mercurial/Subversion E.G. a sha id, a tag, branch, ..
  94. endif
  95. choice
  96. bool "Custom kernel headers series"
  97. depends on !BR2_LINUX_KERNEL_LATEST_VERSION || !BR2_KERNEL_HEADERS_AS_KERNEL
  98. depends on !BR2_LINUX_KERNEL_LATEST_CIP_VERSION || !BR2_KERNEL_HEADERS_AS_KERNEL
  99. depends on !BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION || !BR2_KERNEL_HEADERS_AS_KERNEL
  100. depends on BR2_KERNEL_HEADERS_VERSION || BR2_KERNEL_HEADERS_AS_KERNEL || \
  101. BR2_KERNEL_HEADERS_CUSTOM_TARBALL || BR2_KERNEL_HEADERS_CUSTOM_GIT
  102. help
  103. Specify the kernel headers series you manually selected,
  104. above.
  105. This is used to hide/show some packages that have strict
  106. requirements on the version of kernel headers.
  107. If your kernel headers are more recent than the latest version
  108. in the choice, then select the latest version.
  109. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_17
  110. bool "5.17.x or later"
  111. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_17
  112. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_16
  113. bool "5.16.x"
  114. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_16
  115. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_15
  116. bool "5.15.x"
  117. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_15
  118. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_14
  119. bool "5.14.x"
  120. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_14
  121. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_13
  122. bool "5.13.x"
  123. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_13
  124. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_12
  125. bool "5.12.x"
  126. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_12
  127. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_11
  128. bool "5.11.x"
  129. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_11
  130. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_10
  131. bool "5.10.x"
  132. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10
  133. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_9
  134. bool "5.9.x"
  135. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_9
  136. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_8
  137. bool "5.8.x"
  138. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_8
  139. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_7
  140. bool "5.7.x"
  141. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_7
  142. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_6
  143. bool "5.6.x"
  144. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_6
  145. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_5
  146. bool "5.5.x"
  147. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_5
  148. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_4
  149. bool "5.4.x"
  150. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_4
  151. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_3
  152. bool "5.3.x"
  153. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_3
  154. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_2
  155. bool "5.2.x"
  156. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_2
  157. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_1
  158. bool "5.1.x"
  159. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_1
  160. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_5_0
  161. bool "5.0.x"
  162. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_0
  163. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_20
  164. bool "4.20.x"
  165. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_20
  166. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_19
  167. bool "4.19.x"
  168. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_19
  169. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_18
  170. bool "4.18.x"
  171. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_18
  172. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_17
  173. bool "4.17.x"
  174. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_17
  175. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_16
  176. bool "4.16.x"
  177. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_16
  178. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_15
  179. bool "4.15.x"
  180. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
  181. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_14
  182. bool "4.14.x"
  183. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_14
  184. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_13
  185. bool "4.13.x"
  186. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_13
  187. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_12
  188. bool "4.12.x"
  189. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_12
  190. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_11
  191. bool "4.11.x"
  192. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_11
  193. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_10
  194. bool "4.10.x"
  195. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_10
  196. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_9
  197. bool "4.9.x"
  198. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_9
  199. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_8
  200. bool "4.8.x"
  201. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_8
  202. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_7
  203. bool "4.7.x"
  204. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_7
  205. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_6
  206. bool "4.6.x"
  207. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_6
  208. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_5
  209. bool "4.5.x"
  210. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5
  211. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_4
  212. bool "4.4.x"
  213. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_4
  214. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_3
  215. bool "4.3.x"
  216. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_3
  217. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_2
  218. bool "4.2.x"
  219. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_2
  220. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_1
  221. bool "4.1.x"
  222. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_1
  223. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_4_0
  224. bool "4.0.x"
  225. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_0
  226. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_19
  227. bool "3.19.x"
  228. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_19
  229. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_18
  230. bool "3.18.x"
  231. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_18
  232. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_17
  233. bool "3.17.x"
  234. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_17
  235. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_16
  236. bool "3.16.x"
  237. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_16
  238. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_15
  239. bool "3.15.x"
  240. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_15
  241. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_14
  242. bool "3.14.x"
  243. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_14
  244. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_13
  245. bool "3.13.x"
  246. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_13
  247. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_12
  248. bool "3.12.x"
  249. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_12
  250. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_11
  251. bool "3.11.x"
  252. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_11
  253. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_10
  254. bool "3.10.x"
  255. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_10
  256. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_9
  257. bool "3.9.x"
  258. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_9
  259. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_8
  260. bool "3.8.x"
  261. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_8
  262. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_7
  263. bool "3.7.x"
  264. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_7
  265. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_6
  266. bool "3.6.x"
  267. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_6
  268. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_5
  269. bool "3.5.x"
  270. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_5
  271. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_4
  272. bool "3.4.x"
  273. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_4
  274. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_3
  275. bool "3.3.x"
  276. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_3
  277. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_2
  278. bool "3.2.x"
  279. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2
  280. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_1
  281. bool "3.1.x"
  282. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_1
  283. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_3_0
  284. bool "3.0.x"
  285. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_0
  286. config BR2_PACKAGE_HOST_LINUX_HEADERS_CUSTOM_REALLY_OLD
  287. bool "2.6.x"
  288. endchoice
  289. config BR2_DEFAULT_KERNEL_HEADERS
  290. string
  291. default "4.9.322" if BR2_KERNEL_HEADERS_4_9
  292. default "4.14.287" if BR2_KERNEL_HEADERS_4_14
  293. default "4.19.251" if BR2_KERNEL_HEADERS_4_19
  294. default "5.4.204" if BR2_KERNEL_HEADERS_5_4
  295. default "5.10.129" if BR2_KERNEL_HEADERS_5_10
  296. default "5.15.53" if BR2_KERNEL_HEADERS_5_15
  297. default "5.17.15" if BR2_KERNEL_HEADERS_5_17
  298. default BR2_DEFAULT_KERNEL_VERSION if BR2_KERNEL_HEADERS_VERSION
  299. default "custom" if BR2_KERNEL_HEADERS_CUSTOM_TARBALL
  300. default BR2_KERNEL_HEADERS_CUSTOM_REPO_VERSION \
  301. if BR2_KERNEL_HEADERS_CUSTOM_GIT