Config.in 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525
  1. menu "Kernel"
  2. config BR2_LINUX_KERNEL
  3. bool "Linux Kernel"
  4. select BR2_PACKAGE_HOST_KMOD # Unconditional, even if modules not enabled
  5. select BR2_PACKAGE_HOST_IMAGEMAGICK if BR2_LINUX_KERNEL_CUSTOM_LOGO_PATH != ""
  6. help
  7. Enable this option if you want to build a Linux kernel for
  8. your embedded device
  9. if BR2_LINUX_KERNEL
  10. # Packages that need to have a kernel with support for loadable modules,
  11. # but do not use the kernel-modules infrastructure, should select that
  12. # option.
  13. config BR2_LINUX_NEEDS_MODULES
  14. bool
  15. #
  16. # Version selection. We provide the choice between:
  17. #
  18. # 1. A single fairly recent stable kernel version
  19. # 2. A custom stable version
  20. # 3. A custom tarball
  21. # 4. A set of custom repository locations
  22. #
  23. choice
  24. prompt "Kernel version"
  25. config BR2_LINUX_KERNEL_LATEST_VERSION
  26. bool "Latest version (6.11)"
  27. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_6_11 if BR2_KERNEL_HEADERS_AS_KERNEL
  28. # mips always generates an ITB image
  29. select BR2_PACKAGE_HOST_UBOOT_TOOLS if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
  30. select BR2_PACKAGE_HOST_UBOOT_TOOLS_FIT_SUPPORT if BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
  31. # nios2 always generates a U-Boot image
  32. select BR2_PACKAGE_HOST_UBOOT_TOOLS if BR2_nios2
  33. config BR2_LINUX_KERNEL_LATEST_CIP_VERSION
  34. bool "Latest CIP SLTS version (5.10.162-cip24)"
  35. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10 if BR2_KERNEL_HEADERS_AS_KERNEL
  36. help
  37. CIP launched in the spring of 2016 to address the needs of
  38. organizations in industries such as power generation and
  39. distribution, water, oil and gas, transportation, building
  40. automation and more for reliable and secure Linux-based
  41. embedded systems that can be sustained over a period of
  42. 10 to as many as 60 years.
  43. The project's goal is to provide an open source base layer
  44. of industrial-grade software that permits the use and
  45. implementation of software building blocks that meet
  46. these requirements.
  47. The CIP community plans to maintain 5.10 for security and
  48. bug fixes for more than 10 years.
  49. https://www.cip-project.org
  50. config BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION
  51. bool "Latest CIP RT SLTS version (5.10.162-cip24-rt10)"
  52. select BR2_TOOLCHAIN_HEADERS_AT_LEAST_5_10 if BR2_KERNEL_HEADERS_AS_KERNEL
  53. help
  54. Same as the CIP version, but this is the PREEMPT_RT realtime
  55. variant.
  56. The CIP community plans to maintain 5.10 for security and
  57. bug fixes for more than 10 years.
  58. https://www.cip-project.org
  59. config BR2_LINUX_KERNEL_CUSTOM_VERSION
  60. bool "Custom version"
  61. help
  62. This option allows to use a specific official version from
  63. kernel.org, like 2.6.x, 2.6.x.y, 3.x.y, ...
  64. Note: you cannot use this option to select a _longterm_ 2.6
  65. kernel, because these kernels are not located at the standard
  66. URL at kernel.org. Instead, select "Custom tarball" and
  67. specify the right URL directly.
  68. config BR2_LINUX_KERNEL_CUSTOM_TARBALL
  69. bool "Custom tarball"
  70. help
  71. This option allows to specify a URL pointing to a kernel
  72. source tarball. This URL can use any protocol recognized by
  73. Buildroot, like http://, ftp://, file:// or scp://.
  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. config BR2_LINUX_KERNEL_CUSTOM_GIT
  78. bool "Custom Git repository"
  79. help
  80. This option allows Buildroot to get the Linux kernel source
  81. code from a Git repository.
  82. config BR2_LINUX_KERNEL_CUSTOM_HG
  83. bool "Custom Mercurial repository"
  84. help
  85. This option allows Buildroot to get the Linux kernel source
  86. code from a Mercurial repository.
  87. config BR2_LINUX_KERNEL_CUSTOM_SVN
  88. bool "Custom Subversion repository"
  89. help
  90. This option allows Buildroot to get the Linux kernel source
  91. code from a Subversion repository.
  92. endchoice
  93. config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
  94. string "Kernel version"
  95. depends on BR2_LINUX_KERNEL_CUSTOM_VERSION
  96. config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
  97. string "URL of custom kernel tarball"
  98. depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL
  99. if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || BR2_LINUX_KERNEL_CUSTOM_SVN
  100. config BR2_LINUX_KERNEL_CUSTOM_REPO_URL
  101. string "URL of custom repository"
  102. config BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION
  103. string "Custom repository version"
  104. help
  105. Revision to use in the typical format used by
  106. Git/Mercurial/Subversion E.G. a sha id, a tag, branch, ..
  107. endif
  108. config BR2_LINUX_KERNEL_CUSTOM_REPO_GIT_SUBMODULES
  109. bool "Download also git submodules"
  110. depends on BR2_LINUX_KERNEL_CUSTOM_GIT
  111. help
  112. Include git submodules in the kernel source tree.
  113. config BR2_LINUX_KERNEL_VERSION
  114. string
  115. default "6.11.11" if BR2_LINUX_KERNEL_LATEST_VERSION
  116. default "5.10.162-cip24" if BR2_LINUX_KERNEL_LATEST_CIP_VERSION
  117. default "5.10.162-cip24-rt10" if BR2_LINUX_KERNEL_LATEST_CIP_RT_VERSION
  118. default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE \
  119. if BR2_LINUX_KERNEL_CUSTOM_VERSION
  120. default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
  121. default BR2_LINUX_KERNEL_CUSTOM_REPO_VERSION \
  122. if BR2_LINUX_KERNEL_CUSTOM_GIT || BR2_LINUX_KERNEL_CUSTOM_HG || BR2_LINUX_KERNEL_CUSTOM_SVN
  123. #
  124. # Patch selection
  125. #
  126. config BR2_LINUX_KERNEL_PATCH
  127. string "Custom kernel patches"
  128. help
  129. A space-separated list of patches to apply to the
  130. kernel. Each patch can be described as an URL, a local file
  131. path, or a directory. In the case of a directory, all files
  132. matching *.patch in the directory will be applied.
  133. #
  134. # Configuration selection
  135. #
  136. choice
  137. prompt "Kernel configuration"
  138. default BR2_LINUX_KERNEL_USE_DEFCONFIG
  139. config BR2_LINUX_KERNEL_USE_DEFCONFIG
  140. bool "Using an in-tree defconfig file"
  141. config BR2_LINUX_KERNEL_USE_ARCH_DEFAULT_CONFIG
  142. bool "Use the architecture default configuration"
  143. # We know that the default configuration on some architectures
  144. # requires host-openssl, so select it for the latest kernel
  145. # version. This is mainly needed to fix autobuilder testing.
  146. select BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL if \
  147. BR2_LINUX_KERNEL_LATEST_VERSION && \
  148. (BR2_aarch64 || BR2_aarch64_be || BR2_arcle || BR2_arceb || BR2_sparc || BR2_x86_64)
  149. help
  150. This option will use the default configuration for the
  151. selected architecture. I.e, it is equivalent to running
  152. "make ARCH=<foo> defconfig". This is useful on architectures
  153. that have a single defconfig file, such as ARM64.
  154. config BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
  155. bool "Using a custom (def)config file"
  156. endchoice
  157. config BR2_LINUX_KERNEL_DEFCONFIG
  158. string "Defconfig name"
  159. depends on BR2_LINUX_KERNEL_USE_DEFCONFIG
  160. help
  161. Name of the kernel defconfig file to use, without the
  162. trailing _defconfig. The defconfig is located in
  163. arch/<arch>/configs in the kernel tree.
  164. config BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE
  165. string "Configuration file path"
  166. depends on BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
  167. help
  168. Path to the kernel configuration file
  169. Note: this can be a defconfig file or a complete .config file,
  170. which can later be saved back with make
  171. linux-update-(def)config.
  172. config BR2_LINUX_KERNEL_CONFIG_FRAGMENT_FILES
  173. string "Additional configuration fragment files"
  174. help
  175. A space-separated list of kernel configuration fragment files,
  176. that will be merged to the main kernel configuration file.
  177. config BR2_LINUX_KERNEL_CUSTOM_LOGO_PATH
  178. string "Custom boot logo file path"
  179. help
  180. Use a custom Linux framebuffer boot logo.
  181. Custom logo should be in PNG or JPEG format, it will be
  182. converted to the linux kernel format (224 colors only)
  183. and copied over the original logo file.
  184. #
  185. # Binary format
  186. #
  187. choice
  188. prompt "Kernel binary format"
  189. default BR2_LINUX_KERNEL_ZIMAGE if BR2_arm || BR2_armeb
  190. config BR2_LINUX_KERNEL_UIMAGE
  191. bool "uImage"
  192. depends on BR2_arc || BR2_arm || BR2_armeb || \
  193. BR2_powerpc || BR2_powerpc64 || BR2_powerpc64le || \
  194. BR2_sh || BR2_mips || BR2_mipsel || \
  195. BR2_mips64 || BR2_mips64el || BR2_xtensa
  196. select BR2_PACKAGE_HOST_UBOOT_TOOLS
  197. config BR2_LINUX_KERNEL_APPENDED_UIMAGE
  198. bool "uImage with appended DT"
  199. depends on BR2_arm || BR2_armeb
  200. select BR2_LINUX_KERNEL_DTS_SUPPORT
  201. select BR2_LINUX_KERNEL_APPENDED_DTB
  202. select BR2_PACKAGE_HOST_UBOOT_TOOLS
  203. config BR2_LINUX_KERNEL_BZIMAGE
  204. bool "bzImage"
  205. depends on BR2_i386 || BR2_x86_64 || BR2_s390x
  206. config BR2_LINUX_KERNEL_ZIMAGE
  207. bool "zImage"
  208. depends on BR2_arm || BR2_armeb || BR2_powerpc || \
  209. BR2_powerpc64 || BR2_powerpc64le || BR2_sparc || \
  210. BR2_sh || BR2_xtensa
  211. config BR2_LINUX_KERNEL_ZIMAGE_EPAPR
  212. bool "zImage.epapr"
  213. depends on BR2_powerpc64 || BR2_powerpc64le
  214. config BR2_LINUX_KERNEL_APPENDED_ZIMAGE
  215. bool "zImage with appended DT"
  216. depends on BR2_arm || BR2_armeb
  217. select BR2_LINUX_KERNEL_DTS_SUPPORT
  218. select BR2_LINUX_KERNEL_APPENDED_DTB
  219. config BR2_LINUX_KERNEL_CUIMAGE
  220. bool "cuImage"
  221. depends on BR2_powerpc
  222. select BR2_PACKAGE_HOST_UBOOT_TOOLS
  223. select BR2_LINUX_KERNEL_DTS_SUPPORT
  224. select BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
  225. config BR2_LINUX_KERNEL_SIMPLEIMAGE
  226. bool "simpleImage"
  227. depends on BR2_microblaze
  228. select BR2_PACKAGE_HOST_UBOOT_TOOLS
  229. select BR2_LINUX_KERNEL_DTS_SUPPORT
  230. select BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
  231. config BR2_LINUX_KERNEL_IMAGE
  232. bool "Image"
  233. depends on BR2_aarch64 || BR2_aarch64_be || BR2_riscv
  234. config BR2_LINUX_KERNEL_IMAGEGZ
  235. bool "Image.gz"
  236. depends on BR2_aarch64 || BR2_aarch64_be || BR2_riscv
  237. config BR2_LINUX_KERNEL_LINUX_BIN
  238. bool "linux.bin"
  239. depends on BR2_microblaze
  240. select BR2_PACKAGE_HOST_UBOOT_TOOLS
  241. config BR2_LINUX_KERNEL_VMLINUX_BIN
  242. bool "vmlinux.bin"
  243. depends on BR2_mips || BR2_mipsel || BR2_sh
  244. config BR2_LINUX_KERNEL_VMLINUX
  245. bool "vmlinux"
  246. config BR2_LINUX_KERNEL_VMLINUZ
  247. bool "vmlinuz"
  248. depends on BR2_mips || BR2_mipsel
  249. config BR2_LINUX_KERNEL_VMLINUZ_BIN
  250. bool "vmlinuz.bin"
  251. depends on BR2_mips || BR2_mipsel
  252. config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
  253. bool "custom target"
  254. help
  255. For certain cases a board-specific target image must be
  256. used. For example, on powerPC where the OpenFirmware
  257. description is attached in a board-specific kernel image
  258. target like 'cuImage.mpc8379_rdb'.
  259. Select this option and specify the make target in "Kernel
  260. image target name".
  261. endchoice
  262. #
  263. # Kernel compression format
  264. #
  265. choice
  266. prompt "Kernel compression format"
  267. help
  268. This selection will just ensure that the correct host tools
  269. are built. The actual compression for the kernel should be
  270. selected in the kernel configuration menu.
  271. config BR2_LINUX_KERNEL_GZIP
  272. bool "gzip compression"
  273. config BR2_LINUX_KERNEL_LZ4
  274. bool "lz4 compression"
  275. config BR2_LINUX_KERNEL_LZMA
  276. bool "lzma compression"
  277. config BR2_LINUX_KERNEL_LZO
  278. bool "lzo compression"
  279. config BR2_LINUX_KERNEL_XZ
  280. bool "xz compression"
  281. config BR2_LINUX_KERNEL_ZSTD
  282. bool "zstd compression"
  283. config BR2_LINUX_KERNEL_UNCOMPRESSED
  284. bool "uncompressed"
  285. depends on BR2_s390x
  286. endchoice
  287. config BR2_LINUX_KERNEL_IMAGE_TARGET_NAME
  288. string "Kernel image target name"
  289. depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
  290. help
  291. Specify the kernel make target to build the kernel that you
  292. need.
  293. config BR2_LINUX_KERNEL_IMAGE_NAME
  294. string "Kernel image name"
  295. depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
  296. help
  297. The filename of the kernel image, if it is different from
  298. the make target (above). Defaults to
  299. BR2_LINUX_KERNEL_IMAGE_TARGET_NAME. If specified, the
  300. filename is relative to arch/ARCH/boot/.
  301. If unsure, leave it empty.
  302. config BR2_LINUX_KERNEL_UIMAGE_LOADADDR
  303. string "load address (for 3.7+ multi-platform image)"
  304. depends on BR2_arm || BR2_armeb
  305. depends on BR2_LINUX_KERNEL_UIMAGE || BR2_LINUX_KERNEL_APPENDED_UIMAGE
  306. help
  307. If your ARM system's Linux kernel is configured with the new
  308. (3.7+) multi-architecture support (CONFIG_ARCH_MULTIPLATFORM=y
  309. in your kernel config), then it is necessary to specify a
  310. kernel load address when building the uImage. This should be a
  311. hexadecimal string beginning with 0x, for example: 0x00008000.
  312. If unsure, let this option empty.
  313. config BR2_LINUX_KERNEL_DTS_SUPPORT
  314. bool "Build a Device Tree Blob (DTB)"
  315. help
  316. Compile one or more device tree sources into device tree
  317. blobs.
  318. Select the dts files to compile in the options below.
  319. if BR2_LINUX_KERNEL_DTS_SUPPORT
  320. # We have mainly three cases when it comes to device tree support:
  321. # 1) We don't want any support at all. Then the ..DTS_SUPPORT
  322. # variable won't be set
  323. # 2) We want device tree support, so we need the user to enter the
  324. # device tree name or the path to the custom device he uses, but
  325. # the kernel abstracts this from us and only build an image that
  326. # looks like a regular kernel image. In this case, we only need
  327. # to derive the kernel image name from the given device tree
  328. # name, and all the rest is as usual
  329. # 3) We want device tree support, but the kernel requires us to
  330. # build the device tree blob separately. In this case, some
  331. # more logic will be needed.
  332. # The variable below address the second case, were you only want
  333. # limited actions from buildroot.
  334. config BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
  335. bool "DTB is built by kernel itself"
  336. help
  337. Normally, the device tree(s) to be built have to be passed
  338. explicitly to the kernel build system. For some binary
  339. formats, however, the kernel build system links in the
  340. device tree directly in the kernel binary. Select this option
  341. if you have such a kernel binary format.
  342. config BR2_LINUX_KERNEL_APPENDED_DTB
  343. bool
  344. config BR2_LINUX_KERNEL_INTREE_DTS_NAME
  345. string "In-tree Device Tree Source file names"
  346. help
  347. Name of in-tree device tree source file, without
  348. the trailing .dts. You can provide a list of
  349. dts files to build, separated by spaces.
  350. config BR2_LINUX_KERNEL_CUSTOM_DTS_PATH
  351. string "Out-of-tree Device Tree Source file paths"
  352. help
  353. Paths to out-of-tree Device Tree Source (.dts) and Device Tree
  354. Source Include (.dtsi) files, separated by spaces. These files
  355. will be copied to the kernel sources and the .dts files will
  356. be compiled from there.
  357. config BR2_LINUX_KERNEL_DTB_KEEP_DIRNAME
  358. bool "Keep the directory name of the Device Tree"
  359. help
  360. If enabled, the device tree blobs keep their
  361. directory prefixes when they get copied to the
  362. output image directory or the target directory.
  363. config BR2_LINUX_KERNEL_DTB_OVERLAY_SUPPORT
  364. bool "Build Device Tree with overlay support"
  365. help
  366. If enabled, pass the "-@" option to dtc, such that
  367. symbols are generated in the compiled Device Tree.
  368. Choose this option to support Device Tree overlays
  369. on the target system.
  370. endif
  371. config BR2_LINUX_KERNEL_INSTALL_TARGET
  372. bool "Install kernel image to /boot in target"
  373. depends on !BR2_TARGET_ROOTFS_INITRAMFS
  374. help
  375. Select this option to have the kernel image installed to
  376. /boot in the target root filesystem, as is typically done on
  377. x86/x86_64 systems.
  378. Note that this option also installs the Device Tree Blobs to
  379. /boot if DTBs have been generated by the kernel build
  380. process.
  381. config BR2_LINUX_KERNEL_NEEDS_HOST_OPENSSL
  382. bool "Needs host OpenSSL"
  383. help
  384. Some Linux kernel configuration options (such as
  385. CONFIG_SYSTEM_TRUSTED_KEYRING) require building a host
  386. program called extract-cert, which itself needs
  387. OpenSSL. Enabling this option will ensure host-openssl gets
  388. built before the Linux kernel.
  389. Enable this option if you get a Linux kernel build failure
  390. such as "scripts/extract-cert.c:21:25: fatal error:
  391. openssl/bio.h: No such file or directory".
  392. config BR2_LINUX_KERNEL_NEEDS_HOST_LIBELF
  393. bool "Needs host libelf"
  394. help
  395. Some Linux kernel configuration options (such as
  396. CONFIG_UNWINDER_ORC) require building a host program that
  397. needs libelf. Enabling this option will ensure host-elfutils
  398. (which provides libelf) gets built before the Linux kernel.
  399. Enable this option if you get a Linux kernel build failure
  400. such as "Cannot generate ORC metadata for
  401. CONFIG_UNWINDER_ORC=y, please install libelf-dev,
  402. libelf-devel or elfutils-libelf-devel".
  403. config BR2_LINUX_KERNEL_NEEDS_HOST_PAHOLE
  404. bool "Needs host pahole"
  405. help
  406. Some Linux kernel configuration options (such as
  407. CONFIG_DEBUG_INFO_BTF) require building a host program
  408. called pahole. Enabling this option will ensure host-pahole
  409. gets built before the Linux kernel.
  410. Enable this option if you get a Linux kernel build failure
  411. such as "BTF: .tmp_vmlinux.btf: pahole (pahole) is not
  412. available".
  413. config BR2_LINUX_KERNEL_NEEDS_HOST_PYTHON3
  414. bool "Needs host python3"
  415. help
  416. Some Linux kernel configuration options (such as the
  417. CONFIG_DRM_MSM in v6.10 and greater) require a host python3
  418. interpreter. Enabling this option will ensure host-python3
  419. gets built before the Linux kernel.
  420. Enable this option if you get a Linux kernel build failure
  421. such as "python3: not found".
  422. # Linux extensions
  423. source "linux/Config.ext.in"
  424. # Linux tools
  425. source "package/linux-tools/Config.in"
  426. endif # BR2_LINUX_KERNEL
  427. endmenu