Config.in 12 KB

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