Config.in 10 KB

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