Config.in.host 11 KB

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