Config.in 12 KB

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