Config.in 12 KB

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