2
1

Config.in 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  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. default BR2_LINUX_KERNEL_3_4
  20. config BR2_LINUX_KERNEL_3_4
  21. bool "3.4.4"
  22. config BR2_LINUX_KERNEL_SAME_AS_HEADERS
  23. bool "Same as toolchain kernel headers"
  24. depends on BR2_TOOLCHAIN_BUILDROOT
  25. help
  26. This option will re-use the same kernel sources as the one
  27. that have been used for the kernel headers of the
  28. cross-compiling toolchain. Having the same version for the
  29. kernel running on the system and for the kernel headers is
  30. not a requirement, but using the same version allows to
  31. download only one tarball of the kernel sources.
  32. config BR2_LINUX_KERNEL_CUSTOM_VERSION
  33. bool "Custom version"
  34. help
  35. This option allows to use a specific 2.6.x or 2.6.x.y
  36. official versions, as available on kernel.org
  37. config BR2_LINUX_KERNEL_CUSTOM_TARBALL
  38. bool "Custom tarball"
  39. help
  40. This option allows to specify the http or ftp location of a
  41. specific kernel source tarball
  42. config BR2_LINUX_KERNEL_CUSTOM_GIT
  43. bool "Custom Git tree"
  44. help
  45. This option allows Buildroot to get the Linux kernel source
  46. code from a Git repository.
  47. endchoice
  48. config BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE
  49. string "Kernel version"
  50. depends on BR2_LINUX_KERNEL_CUSTOM_VERSION
  51. config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
  52. string "URL of custom kernel tarball"
  53. depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL
  54. config BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL
  55. string "URL of custom Git repository"
  56. depends on BR2_LINUX_KERNEL_CUSTOM_GIT
  57. config BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION
  58. string "Custom Git version"
  59. default "HEAD"
  60. depends on BR2_LINUX_KERNEL_CUSTOM_GIT
  61. help
  62. Git revision to use in the format used by git rev-parse,
  63. E.G. a sha id, a tag, branch, ..
  64. config BR2_LINUX_KERNEL_VERSION
  65. string
  66. default "3.4.4" if BR2_LINUX_KERNEL_3_4
  67. default BR2_DEFAULT_KERNEL_HEADERS if BR2_LINUX_KERNEL_SAME_AS_HEADERS
  68. default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE if BR2_LINUX_KERNEL_CUSTOM_VERSION
  69. default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
  70. default $BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION if BR2_LINUX_KERNEL_CUSTOM_GIT
  71. #
  72. # Patch selection
  73. #
  74. config BR2_LINUX_KERNEL_PATCH
  75. string "Custom kernel patches"
  76. help
  77. A space-separated list of patches to apply to the
  78. kernel. Each patch can be described as an URL, a local file
  79. path, or a directory. In the case of a directory, all files
  80. matching linux-*.patch in the directory will be applied.
  81. #
  82. # Configuration selection
  83. #
  84. choice
  85. prompt "Kernel configuration"
  86. default BR2_LINUX_KERNEL_USE_DEFCONFIG
  87. config BR2_LINUX_KERNEL_USE_DEFCONFIG
  88. bool "Using a defconfig"
  89. config BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
  90. bool "Using a custom config file"
  91. endchoice
  92. config BR2_LINUX_KERNEL_DEFCONFIG
  93. string "Defconfig name"
  94. depends on BR2_LINUX_KERNEL_USE_DEFCONFIG
  95. help
  96. Name of the kernel defconfig file to use, without the
  97. trailing _defconfig. The defconfig is located in
  98. arch/<arch>/configs in the kernel tree.
  99. config BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE
  100. string "Configuration file path"
  101. depends on BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
  102. help
  103. Path to the kernel configuration file
  104. config BR2_LINUX_KERNEL_DTS_FILE
  105. string "Device Tree dts file location"
  106. depends on BR2_microblaze
  107. help
  108. Path from where the dts file has to be copied
  109. The final "custom target" name depends on the
  110. dts file name:
  111. <name>.dts --> simpleImage.<name>
  112. #
  113. # Binary format
  114. #
  115. choice
  116. prompt "Kernel binary format"
  117. config BR2_LINUX_KERNEL_UIMAGE
  118. bool "uImage"
  119. depends on BR2_arm || BR2_armeb || BR2_bfin || BR2_powerpc || BR2_avr32 || BR2_sh || BR2_sh64
  120. config BR2_LINUX_KERNEL_BZIMAGE
  121. bool "bzImage"
  122. depends on BR2_i386 || BR2_x86_64
  123. config BR2_LINUX_KERNEL_ZIMAGE
  124. bool "zImage"
  125. depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_sparc || BR2_sh || BR2_sh64 || BR2_xtensa
  126. config BR2_LINUX_KERNEL_VMLINUX_BIN
  127. bool "vmlinux.bin"
  128. depends on BR2_mips || BR2_mipsel || BR2_sh || BR2_sh64
  129. config BR2_LINUX_KERNEL_VMLINUX
  130. bool "vmlinux"
  131. config BR2_LINUX_KERNEL_VMLINUZ
  132. bool "vmlinuz"
  133. depends on BR2_mips || BR2_mipsel
  134. config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
  135. bool "custom target"
  136. help
  137. For certain cases a board-specific target image must be
  138. used. For example, on powerPC where the OpenFirmware
  139. description is attached in a board-specific kernel image
  140. target like 'cuImage.mpc8379_rdb'.
  141. Select this option and specify the make target in "Kernel
  142. image target name".
  143. endchoice
  144. config BR2_LINUX_KERNEL_IMAGE_TARGET_NAME
  145. string "Kernel image target name"
  146. depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
  147. help
  148. Specify the kernel make target to build the kernel that you
  149. need.
  150. config BR2_LINUX_KERNEL_INSTALL_TARGET
  151. bool "Install kernel image to /boot in target"
  152. depends on !BR2_TARGET_ROOTFS_INITRAMFS
  153. help
  154. Select this option to have the kernel image installed to
  155. /boot in the target root filesystem, as is typically done on
  156. x86/x86_64 systems.
  157. # Linux extensions
  158. source "linux/Config.ext.in"
  159. endif # BR2_LINUX_KERNEL
  160. endmenu