Config.in 12 KB

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