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