Kconfig 7.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see Documentation/kbuild/kconfig-language.txt.
  4. #
  5. mainmenu "U-Boot $UBOOTVERSION Configuration"
  6. config UBOOTVERSION
  7. string
  8. option env="UBOOTVERSION"
  9. # Allow defaults in arch-specific code to override any given here
  10. source "arch/Kconfig"
  11. menu "General setup"
  12. config LOCALVERSION
  13. string "Local version - append to U-Boot release"
  14. help
  15. Append an extra string to the end of your U-Boot version.
  16. This will show up on your boot log, for example.
  17. The string you set here will be appended after the contents of
  18. any files with a filename matching localversion* in your
  19. object and source tree, in that order. Your total string can
  20. be a maximum of 64 characters.
  21. config LOCALVERSION_AUTO
  22. bool "Automatically append version information to the version string"
  23. default y
  24. help
  25. This will try to automatically determine if the current tree is a
  26. release tree by looking for git tags that belong to the current
  27. top of tree revision.
  28. A string of the format -gxxxxxxxx will be added to the localversion
  29. if a git-based tree is found. The string generated by this will be
  30. appended after any matching localversion* files, and after the value
  31. set in CONFIG_LOCALVERSION.
  32. (The actual string used here is the first eight characters produced
  33. by running the command:
  34. $ git rev-parse --verify HEAD
  35. which is done within the script "scripts/setlocalversion".)
  36. config CC_OPTIMIZE_FOR_SIZE
  37. bool "Optimize for size"
  38. default y
  39. help
  40. Enabling this option will pass "-Os" instead of "-O2" to gcc
  41. resulting in a smaller U-Boot image.
  42. This option is enabled by default for U-Boot.
  43. config SYS_MALLOC_F
  44. bool "Enable malloc() pool before relocation"
  45. default y if DM
  46. help
  47. Before relocation memory is very limited on many platforms. Still,
  48. we can provide a small malloc() pool if needed. Driver model in
  49. particular needs this to operate, so that it can allocate the
  50. initial serial device and any others that are needed.
  51. config SYS_MALLOC_F_LEN
  52. hex "Size of malloc() pool before relocation"
  53. depends on SYS_MALLOC_F
  54. default 0x400
  55. help
  56. Before relocation memory is very limited on many platforms. Still,
  57. we can provide a small malloc() pool if needed. Driver model in
  58. particular needs this to operate, so that it can allocate the
  59. initial serial device and any others that are needed.
  60. menuconfig EXPERT
  61. bool "Configure standard U-Boot features (expert users)"
  62. default y
  63. help
  64. This option allows certain base U-Boot options and settings
  65. to be disabled or tweaked. This is for specialized
  66. environments which can tolerate a "non-standard" U-Boot.
  67. Only use this if you really know what you are doing.
  68. if EXPERT
  69. config SYS_MALLOC_CLEAR_ON_INIT
  70. bool "Init with zeros the memory reserved for malloc (slow)"
  71. default y
  72. help
  73. This setting is enabled by default. The reserved malloc
  74. memory is initialized with zeros, so first malloc calls
  75. will return the pointer to the zeroed memory. But this
  76. slows the boot time.
  77. It is recommended to disable it, when CONFIG_SYS_MALLOC_LEN
  78. value, has more than few MiB, e.g. when uses bzip2 or bmp logo.
  79. Then the boot time can be significantly reduced.
  80. Warning:
  81. When disabling this, please check if malloc calls, maybe
  82. should be replaced by calloc - if expects zeroed memory.
  83. endif
  84. endmenu # General setup
  85. menu "Boot images"
  86. config SUPPORT_SPL
  87. bool
  88. config SUPPORT_TPL
  89. bool
  90. config SPL
  91. bool
  92. depends on SUPPORT_SPL
  93. prompt "Enable SPL"
  94. help
  95. If you want to build SPL as well as the normal image, say Y.
  96. config SPL_SYS_MALLOC_SIMPLE
  97. bool
  98. depends on SPL
  99. prompt "Only use malloc_simple functions in the spl"
  100. help
  101. Say Y here to only use the *_simple malloc functions from
  102. malloc_simple.c, rather then using the versions from dlmalloc.c
  103. this will make the SPL binary smaller at the cost of more heap
  104. usage as the *_simple malloc functions do not re-use free-ed mem.
  105. config SPL_STACK_R
  106. depends on SPL
  107. bool "Enable SDRAM location for SPL stack"
  108. help
  109. SPL starts off execution in SRAM and thus typically has only a small
  110. stack available. Since SPL sets up DRAM while in its board_init_f()
  111. function, it is possible for the stack to move there before
  112. board_init_r() is reached. This option enables a special SDRAM
  113. location for the SPL stack. U-Boot SPL switches to this after
  114. board_init_f() completes, and before board_init_r() starts.
  115. config SPL_STACK_R_ADDR
  116. depends on SPL_STACK_R
  117. hex "SDRAM location for SPL stack"
  118. help
  119. Specify the address in SDRAM for the SPL stack. This will be set up
  120. before board_init_r() is called.
  121. config SPL_STACK_R_MALLOC_SIMPLE_LEN
  122. depends on SPL_STACK_R && SPL_SYS_MALLOC_SIMPLE
  123. hex "Size of malloc_simple heap after switching to DRAM SPL stack"
  124. default 0x100000
  125. help
  126. Specify the amount of the stack to use as memory pool for
  127. malloc_simple after switching the stack to DRAM. This may be set
  128. to give board_init_r() a larger heap then the initial heap in
  129. SRAM which is limited to SYS_MALLOC_F_LEN bytes.
  130. config SPL_SEPARATE_BSS
  131. depends on SPL
  132. bool "BSS section is in a different memory region from text"
  133. help
  134. Some platforms need a large BSS region in SPL and can provide this
  135. because RAM is already set up. In this case BSS can be moved to RAM.
  136. This option should then be enabled so that the correct device tree
  137. location is used. Normally we put the device tree at the end of BSS
  138. but with this option enabled, it goes at _image_binary_end.
  139. config TPL
  140. bool
  141. depends on SPL && SUPPORT_TPL
  142. prompt "Enable TPL"
  143. help
  144. If you want to build TPL as well as the normal image and SPL, say Y.
  145. config FIT
  146. bool "Support Flattened Image Tree"
  147. help
  148. This option allows to boot the new uImage structrure,
  149. Flattened Image Tree. FIT is formally a FDT, which can include
  150. images of various types (kernel, FDT blob, ramdisk, etc.)
  151. in a single blob. To boot this new uImage structure,
  152. pass the address of the blob to the "bootm" command.
  153. config FIT_VERBOSE
  154. bool "Display verbose messages on FIT boot"
  155. depends on FIT
  156. config FIT_SIGNATURE
  157. bool "Enable signature verification of FIT uImages"
  158. depends on FIT
  159. depends on DM
  160. select RSA
  161. help
  162. This option enables signature verification of FIT uImages,
  163. using a hash signed and verified using RSA. If
  164. CONFIG_SHA_PROG_HW_ACCEL is defined, i.e support for progressive
  165. hashing is available using hardware, RSA library will use it.
  166. See doc/uImage.FIT/signature.txt for more details.
  167. config SYS_EXTRA_OPTIONS
  168. string "Extra Options (DEPRECATED)"
  169. help
  170. The old configuration infrastructure (= mkconfig + boards.cfg)
  171. provided the extra options field. If you have something like
  172. "HAS_BAR,BAZ=64", the optional options
  173. #define CONFIG_HAS
  174. #define CONFIG_BAZ 64
  175. will be defined in include/config.h.
  176. This option was prepared for the smooth migration from the old
  177. configuration to Kconfig. Since this option will be removed sometime,
  178. new boards should not use this option.
  179. config SYS_TEXT_BASE
  180. depends on SPARC || ARC || X86 || ARCH_UNIPHIER || ARCH_ZYNQMP
  181. depends on !EFI_APP
  182. hex "Text Base"
  183. help
  184. TODO: Move CONFIG_SYS_TEXT_BASE for all the architecture
  185. config SYS_CLK_FREQ
  186. depends on ARC || ARCH_SUNXI
  187. int "CPU clock frequency"
  188. help
  189. TODO: Move CONFIG_SYS_CLK_FREQ for all the architecture
  190. endmenu # Boot images
  191. source "common/Kconfig"
  192. source "dts/Kconfig"
  193. source "net/Kconfig"
  194. source "drivers/Kconfig"
  195. source "fs/Kconfig"
  196. source "lib/Kconfig"
  197. source "test/Kconfig"