Config.in 5.1 KB

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