Config.in 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188
  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_1
  20. config BR2_LINUX_KERNEL_3_1
  21. bool "3.1.5"
  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. default "3.1.5"
  52. config BR2_LINUX_KERNEL_CUSTOM_TARBALL_LOCATION
  53. string "URL of custom kernel tarball"
  54. depends on BR2_LINUX_KERNEL_CUSTOM_TARBALL
  55. config BR2_LINUX_KERNEL_CUSTOM_GIT_REPO_URL
  56. string "URL of custom Git repository"
  57. depends on BR2_LINUX_KERNEL_CUSTOM_GIT
  58. config BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION
  59. string "Custom Git version"
  60. depends on BR2_LINUX_KERNEL_CUSTOM_GIT
  61. config BR2_LINUX_KERNEL_VERSION
  62. string
  63. default "3.1.5" if BR2_LINUX_KERNEL_3_1
  64. default BR2_DEFAULT_KERNEL_HEADERS if BR2_LINUX_KERNEL_SAME_AS_HEADERS
  65. default BR2_LINUX_KERNEL_CUSTOM_VERSION_VALUE if BR2_LINUX_KERNEL_CUSTOM_VERSION
  66. default "custom" if BR2_LINUX_KERNEL_CUSTOM_TARBALL
  67. default $BR2_LINUX_KERNEL_CUSTOM_GIT_VERSION if BR2_LINUX_KERNEL_CUSTOM_GIT
  68. #
  69. # Patch selection
  70. #
  71. config BR2_LINUX_KERNEL_PATCH
  72. string "Custom kernel patches"
  73. help
  74. A space-separated list of patches to apply to the
  75. kernel. Each patch can be described as an URL, a local file
  76. path, or a directory. In the case of a directory, all files
  77. matching linux-*.patch in the directory will be applied.
  78. #
  79. # Configuration selection
  80. #
  81. choice
  82. prompt "Kernel configuration"
  83. default BR2_LINUX_KERNEL_USE_DEFCONFIG
  84. config BR2_LINUX_KERNEL_USE_DEFCONFIG
  85. bool "Using a defconfig"
  86. config BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
  87. bool "Using a custom config file"
  88. endchoice
  89. config BR2_LINUX_KERNEL_DEFCONFIG
  90. string "Defconfig name"
  91. depends on BR2_LINUX_KERNEL_USE_DEFCONFIG
  92. help
  93. Name of the defconfig file to use, without the trailing
  94. _defconfig
  95. config BR2_LINUX_KERNEL_CUSTOM_CONFIG_FILE
  96. string "Configuration file path"
  97. depends on BR2_LINUX_KERNEL_USE_CUSTOM_CONFIG
  98. help
  99. Path to the kernel configuration file
  100. #
  101. # Binary format
  102. #
  103. choice
  104. prompt "Kernel binary format"
  105. config BR2_LINUX_KERNEL_UIMAGE
  106. bool "uImage"
  107. depends on BR2_arm || BR2_armeb || BR2_bfin || BR2_powerpc || BR2_avr32 || BR2_sh || BR2_sh64
  108. config BR2_LINUX_KERNEL_BZIMAGE
  109. bool "bzImage"
  110. depends on BR2_i386 || BR2_x86_64
  111. config BR2_LINUX_KERNEL_ZIMAGE
  112. bool "zImage"
  113. depends on BR2_arm || BR2_armeb || BR2_powerpc || BR2_sparc || BR2_sh || BR2_sh64 || BR2_xtensa
  114. config BR2_LINUX_KERNEL_VMLINUX_BIN
  115. bool "vmlinux.bin"
  116. depends on BR2_mips || BR2_mipsel || BR2_sh || BR2_sh64
  117. config BR2_LINUX_KERNEL_VMLINUX
  118. bool "vmlinux"
  119. config BR2_LINUX_KERNEL_VMLINUZ
  120. bool "vmlinuz"
  121. depends on BR2_mips || BR2_mipsel
  122. config BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
  123. bool "custom target"
  124. help
  125. For certain cases a board-specific target image must be
  126. used. For example, on powerPC where the OpenFirmware
  127. description is attached in a board-specific kernel image
  128. target like 'cuImage.mpc8379_rdb'.
  129. Select this option and specify the make target in "Kernel
  130. image target name".
  131. endchoice
  132. config BR2_LINUX_KERNEL_IMAGE_TARGET_NAME
  133. string "Kernel image target name"
  134. depends on BR2_LINUX_KERNEL_IMAGE_TARGET_CUSTOM
  135. help
  136. Specify the kernel make target to build the kernel that you
  137. need.
  138. config BR2_LINUX_KERNEL_INSTALL_TARGET
  139. bool "Install kernel image to /boot in target"
  140. depends on !BR2_TARGET_ROOTFS_INITRAMFS
  141. help
  142. Select this option to have the kernel image installed to
  143. /boot in the target root filesystem, as is typically done on
  144. x86/x86_64 systems.
  145. # Linux extensions
  146. source "linux/Config.ext.in"
  147. endif # BR2_LINUX_KERNEL
  148. endmenu