Kconfig 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207
  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_STACK_R
  97. depends on SPL
  98. bool "Enable SDRAM location for SPL stack"
  99. help
  100. SPL starts off execution in SRAM and thus typically has only a small
  101. stack available. Since SPL sets up DRAM while in its board_init_f()
  102. function, it is possible for the stack to move there before
  103. board_init_r() is reached. This option enables a special SDRAM
  104. location for the SPL stack. U-Boot SPL switches to this after
  105. board_init_f() completes, and before board_init_r() starts.
  106. config SPL_STACK_R_ADDR
  107. depends on SPL_STACK_R
  108. hex "SDRAM location for SPL stack"
  109. help
  110. Specify the address in SDRAM for the SPL stack. This will be set up
  111. before board_init_r() is called.
  112. config TPL
  113. bool
  114. depends on SPL && SUPPORT_TPL
  115. prompt "Enable TPL"
  116. help
  117. If you want to build TPL as well as the normal image and SPL, say Y.
  118. config FIT
  119. bool "Support Flattened Image Tree"
  120. help
  121. This option allows to boot the new uImage structrure,
  122. Flattened Image Tree. FIT is formally a FDT, which can include
  123. images of various types (kernel, FDT blob, ramdisk, etc.)
  124. in a single blob. To boot this new uImage structure,
  125. pass the address of the blob to the "bootm" command.
  126. config FIT_VERBOSE
  127. bool "Display verbose messages on FIT boot"
  128. depends on FIT
  129. config FIT_SIGNATURE
  130. bool "Enable signature verification of FIT uImages"
  131. depends on FIT
  132. depends on DM
  133. select RSA
  134. help
  135. This option enables signature verification of FIT uImages,
  136. using a hash signed and verified using RSA. If
  137. CONFIG_SHA_PROG_HW_ACCEL is defined, i.e support for progressive
  138. hashing is available using hardware, RSA library will use it.
  139. See doc/uImage.FIT/signature.txt for more details.
  140. config SYS_EXTRA_OPTIONS
  141. string "Extra Options (DEPRECATED)"
  142. help
  143. The old configuration infrastructure (= mkconfig + boards.cfg)
  144. provided the extra options field. If you have something like
  145. "HAS_BAR,BAZ=64", the optional options
  146. #define CONFIG_HAS
  147. #define CONFIG_BAZ 64
  148. will be defined in include/config.h.
  149. This option was prepared for the smooth migration from the old
  150. configuration to Kconfig. Since this option will be removed sometime,
  151. new boards should not use this option.
  152. config SYS_TEXT_BASE
  153. depends on SPARC || ARC || X86 || ARCH_UNIPHIER || ARCH_ZYNQMP
  154. depends on !EFI_APP
  155. hex "Text Base"
  156. help
  157. TODO: Move CONFIG_SYS_TEXT_BASE for all the architecture
  158. config SYS_CLK_FREQ
  159. depends on ARC || ARCH_SUNXI
  160. int "CPU clock frequency"
  161. help
  162. TODO: Move CONFIG_SYS_CLK_FREQ for all the architecture
  163. endmenu # Boot images
  164. source "common/Kconfig"
  165. source "dts/Kconfig"
  166. source "net/Kconfig"
  167. source "drivers/Kconfig"
  168. source "fs/Kconfig"
  169. source "lib/Kconfig"
  170. source "test/Kconfig"