Config.in 14 KB

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