PageRenderTime 60ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 0ms

/linux/Config.in

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