Config.in 12 KB

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