Config.in.host 10 KB

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