Config.in 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  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.2"
  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.2" 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. depends on !BR2_LINUX_KERNEL_CUSTOM_LOCAL
  101. help
  102. A space-separated list of patches to apply to the
  103. kernel. Each patch can be described as an URL, a local file
  104. path, or a directory. In the case of a directory, all files
  105. matching linux-*.patch in the directory will be applied.
  106. #
  107. # Configuration selection
  108. #
  109. choice
  110. prompt "Kernel configuration"
  111. default BR2_LINUX_KERNEL_USE_DEFCONFIG
  112. config BR2_LINUX_KERNEL_USE_DEFCONFIG
  113. bool "Using a defconfig"
  114. config BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
  115. bool "Using a custom config file"
  116. endchoice
  117. config BR2_LINUX_KERNEL_DEFCONFIG
  118. string "Defconfig name"
  119. depends on BR2_LINUX_KERNEL_USE_DEFCONFIG
  120. help
  121. Name of the kernel defconfig file to use, without the
  122. trailing _defconfig. The defconfig is located in
  123. arch/<arch>/configs in the kernel tree.
  124. config BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE
  125. string "Configuration file path"
  126. depends on BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
  127. help
  128. Path to the kernel configuration file
  129. #
  130. # Binary format
  131. #
  132. config BR2_LINUX_KERNEL_UBOOT_IMAGE
  133. bool
  134. choice
  135. prompt "Kernel binary format"
  136. config BR2_LINUX_KERNEL_UIMAGE
  137. bool "uImage"
  138. depends on BR2_arc || BR2_arm || BR2_armeb || BR2_bfin || \
  139. BR2_powerpc || BR2_avr32 || BR2_sh || BR2_sh64 || \
  140. BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el
  141. select BR2_LINUX_KERNEL_UBOOT_IMAGE
  142. config BR2_LINUX_KERNEL_APPENDED_UIMAGE
  143. bool "uImage with appended DT"
  144. depends on BR2_arm || BR2_armeb
  145. select BR2_LINUX_KERNEL_DTS_SUPPORT
  146. select BR2_LINUX_KERNEL_APPENDED_DTB
  147. select BR2_LINUX_KERNEL_UBOOT_IMAGE
  148. config BR2_LINUX_KERNEL_BZIMAGE
  149. bool "bzImage"
  150. depends on BR2_i386 || BR2_x86_64
  151. config BR2_LINUX_KERNEL_ZIMAGE
  152. bool "zImage"
  153. depends on BR2_arm || BR2_armeb || BR2_powerpc || \
  154. BR2_powerpc64 || BR2_powerpc64le || BR2_sparc || \
  155. BR2_sh || BR2_sh64 || BR2_xtensa
  156. config BR2_LINUX_KERNEL_APPENDED_ZIMAGE
  157. bool "zImage with appended DT"
  158. depends on BR2_arm || BR2_armeb
  159. select BR2_LINUX_KERNEL_DTS_SUPPORT
  160. select BR2_LINUX_KERNEL_APPENDED_DTB
  161. config BR2_LINUX_KERNEL_CUIMAGE
  162. bool "cuImage"
  163. depends on BR2_powerpc
  164. select BR2_LINUX_KERNEL_UBOOT_IMAGE
  165. select BR2_LINUX_KERNEL_DTS_SUPPORT
  166. select BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
  167. config BR2_LINUX_KERNEL_SIMPLEIMAGE
  168. bool "simpleImage"
  169. depends on BR2_microblaze
  170. select BR2_LINUX_KERNEL_UBOOT_IMAGE
  171. select BR2_LINUX_KERNEL_DTS_SUPPORT
  172. select BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
  173. config BR2_LINUX_KERNEL_LINUX_BIN
  174. bool "linux.bin"
  175. depends on BR2_microblaze
  176. select BR2_LINUX_KERNEL_UBOOT_IMAGE
  177. config BR2_LINUX_KERNEL_VMLINUX_BIN
  178. bool "vmlinux.bin"
  179. depends on BR2_mips || BR2_mipsel || BR2_sh || BR2_sh64
  180. config BR2_LINUX_KERNEL_VMLINUX
  181. bool "vmlinux"
  182. config BR2_LINUX_KERNEL_VMLINUZ
  183. bool "vmlinuz"
  184. depends on BR2_mips || BR2_mipsel
  185. config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
  186. bool "custom target"
  187. help
  188. For certain cases a board-specific target image must be
  189. used. For example, on powerPC where the OpenFirmware
  190. description is attached in a board-specific kernel image
  191. target like 'cuImage.mpc8379_rdb'.
  192. Select this option and specify the make target in "Kernel
  193. image target name".
  194. endchoice
  195. config BR2_LINUX_KERNEL_IMAGE_TARGET_NAME
  196. string "Kernel image target name"
  197. depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
  198. help
  199. Specify the kernel make target to build the kernel that you
  200. need.
  201. config BR2_LINUX_KERNEL_IMAGE_NAME
  202. string "Kernel image name"
  203. depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
  204. help
  205. The filename of the kernel image, if it is different from the
  206. make target (above). Only Xtensa uses a filename different from
  207. the make target. Defaults to BR2_LINUX_KERNEL_IMAGE_TARGET_NAME.
  208. If unsure, leave it empty.
  209. config BR2_LINUX_KERNEL_UIMAGE_LOADADDR
  210. string "load address (for 3.7+ multi-platform image)"
  211. depends on BR2_arm || BR2_armeb
  212. depends on BR2_LINUX_KERNEL_UIMAGE || BR2_LINUX_KERNEL_APPENDED_UIMAGE
  213. help
  214. If your ARM system's Linux kernel is configured with the new (3.7+)
  215. multi-architecture support (CONFIG_ARCH_MULTIPLATFORM=y in your
  216. kernel config), then it is necessary to specify a kernel load address
  217. when building the uImage. This should be a hexadecimal string
  218. beginning with 0x, for example: 0x00008000.
  219. If unsure, let this option empty.
  220. config BR2_LINUX_KERNEL_DTS_SUPPORT
  221. bool "Build a Device Tree Blob (DTB)"
  222. help
  223. Compile one or more device tree sources into device tree blobs.
  224. Select the dts files to compile in the options below.
  225. if BR2_LINUX_KERNEL_DTS_SUPPORT
  226. # We have mainly three cases when it comes to device tree support:
  227. # 1) We don't want any support at all. Then the ..DTS_SUPPORT
  228. # variable won't be set
  229. # 2) We want device tree support, so we need the user to enter
  230. # the device tree name or the the path to the custom device
  231. # he uses, but the kernel abstracts this from us and only
  232. # build an image that looks like a regular kernel image. In
  233. # this case, we only need to derive the kernel image name from
  234. # the given device tree name, and all the rest is as usual
  235. # 3) We want device tree support, but the kernel requires us to
  236. # build the device tree blob separately. In this case, some
  237. # more logic will be needed.
  238. # The variable below address the second case, were you only want
  239. # limited actions from buildroot.
  240. config BR2_LINUX_KERNEL_DTB_IS_SELF_BUILT
  241. bool
  242. config BR2_LINUX_KERNEL_APPENDED_DTB
  243. bool
  244. choice
  245. prompt "Device tree source"
  246. default BR2_LINUX_KERNEL_USE_INTREE_DTS
  247. config BR2_LINUX_KERNEL_USE_INTREE_DTS
  248. bool "Use a device tree present in the kernel."
  249. help
  250. Use a device tree source distributed with
  251. the kernel sources. The dts files are located
  252. in the arch/<arch>/boot/dts folder.
  253. config BR2_LINUX_KERNEL_USE_CUSTOM_DTS
  254. bool "Use a custom device tree file"
  255. help
  256. Use a custom device tree file, i.e, a device
  257. tree file that does not belong to the kernel
  258. source tree.
  259. endchoice
  260. config BR2_LINUX_KERNEL_INTREE_DTS_NAME
  261. string "Device Tree Source file names"
  262. depends on BR2_LINUX_KERNEL_USE_INTREE_DTS
  263. help
  264. Name of the device tree source file, without
  265. the trailing .dts. You can provide a list of
  266. dts files to build, separated by spaces.
  267. config BR2_LINUX_KERNEL_CUSTOM_DTS_PATH
  268. string "Device Tree Source file paths"
  269. depends on BR2_LINUX_KERNEL_USE_CUSTOM_DTS
  270. help
  271. Path to the device tree source files. You can
  272. provide a list of dts paths to copy and build,
  273. separated by spaces.
  274. endif
  275. config BR2_LINUX_KERNEL_INSTALL_TARGET
  276. bool "Install kernel image to /boot in target"
  277. depends on !BR2_TARGET_ROOTFS_INITRAMFS
  278. help
  279. Select this option to have the kernel image installed to
  280. /boot in the target root filesystem, as is typically done on
  281. x86/x86_64 systems.
  282. Note that this option also installs the Device Tree Blobs to
  283. /boot if DTBs have been generated by the kernel build
  284. process.
  285. # Linux extensions
  286. source "linux/Config.ext.in"
  287. endif # BR2_LINUX_KERNEL
  288. endmenu