Kconfig 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416
  1. #
  2. # For a description of the syntax of this configuration file,
  3. # see the file Documentation/kbuild/kconfig-language.txt in the
  4. # Linux kernel source tree.
  5. #
  6. mainmenu "U-Boot $UBOOTVERSION Configuration"
  7. config UBOOTVERSION
  8. string
  9. option env="UBOOTVERSION"
  10. # Allow defaults in arch-specific code to override any given here
  11. source "arch/Kconfig"
  12. menu "General setup"
  13. config BROKEN
  14. bool
  15. help
  16. This option cannot be enabled. It is used as dependency
  17. for broken and incomplete features.
  18. config LOCALVERSION
  19. string "Local version - append to U-Boot release"
  20. help
  21. Append an extra string to the end of your U-Boot version.
  22. This will show up in your boot log, for example.
  23. The string you set here will be appended after the contents of
  24. any files with a filename matching localversion* in your
  25. object and source tree, in that order. Your total string can
  26. be a maximum of 64 characters.
  27. config LOCALVERSION_AUTO
  28. bool "Automatically append version information to the version string"
  29. default y
  30. help
  31. This will try to automatically determine if the current tree is a
  32. release tree by looking for Git tags that belong to the current
  33. top of tree revision.
  34. A string of the format -gxxxxxxxx will be added to the localversion
  35. if a Git-based tree is found. The string generated by this will be
  36. appended after any matching localversion* files, and after the value
  37. set in CONFIG_LOCALVERSION.
  38. (The actual string used here is the first eight characters produced
  39. by running the command:
  40. $ git rev-parse --verify HEAD
  41. which is done within the script "scripts/setlocalversion".)
  42. config CC_OPTIMIZE_FOR_SIZE
  43. bool "Optimize for size"
  44. default y
  45. help
  46. Enabling this option will pass "-Os" instead of "-O2" to gcc
  47. resulting in a smaller U-Boot image.
  48. This option is enabled by default for U-Boot.
  49. config DISTRO_DEFAULTS
  50. bool "Select defaults suitable for booting general purpose Linux distributions"
  51. default y if ARCH_SUNXI || TEGRA
  52. default y if ARCH_LS2080A
  53. default y if ARCH_MESON
  54. default y if ARCH_ROCKCHIP
  55. default n
  56. imply USE_BOOTCOMMAND
  57. select CMD_BOOTZ if ARM && !ARM64
  58. select CMD_BOOTI if ARM64
  59. select CMD_DHCP
  60. select CMD_PXE
  61. select CMD_EXT2
  62. select CMD_EXT4
  63. select CMD_FAT
  64. select CMD_FS_GENERIC
  65. select CMD_MII
  66. select CMD_PING
  67. select CMD_PART
  68. select HUSH_PARSER
  69. help
  70. Select this to enable various options and commands which are suitable
  71. for building u-boot for booting general purpose Linux distributions.
  72. config SYS_MALLOC_F
  73. bool "Enable malloc() pool before relocation"
  74. default y if DM
  75. help
  76. Before relocation, memory is very limited on many platforms. Still,
  77. we can provide a small malloc() pool if needed. Driver model in
  78. particular needs this to operate, so that it can allocate the
  79. initial serial device and any others that are needed.
  80. config SYS_MALLOC_F_LEN
  81. hex "Size of malloc() pool before relocation"
  82. depends on SYS_MALLOC_F
  83. default 0x400
  84. help
  85. Before relocation, memory is very limited on many platforms. Still,
  86. we can provide a small malloc() pool if needed. Driver model in
  87. particular needs this to operate, so that it can allocate the
  88. initial serial device and any others that are needed.
  89. config SPL_SYS_MALLOC_F_LEN
  90. hex "Size of malloc() pool in SPL before relocation"
  91. depends on SYS_MALLOC_F
  92. default SYS_MALLOC_F_LEN
  93. help
  94. Before relocation, memory is very limited on many platforms. Still,
  95. we can provide a small malloc() pool if needed. Driver model in
  96. particular needs this to operate, so that it can allocate the
  97. initial serial device and any others that are needed.
  98. config TPL_SYS_MALLOC_F_LEN
  99. hex "Size of malloc() pool in TPL before relocation"
  100. depends on SYS_MALLOC_F
  101. default SYS_MALLOC_F_LEN
  102. help
  103. Before relocation, memory is very limited on many platforms. Still,
  104. we can provide a small malloc() pool if needed. Driver model in
  105. particular needs this to operate, so that it can allocate the
  106. initial serial device and any others that are needed.
  107. menuconfig EXPERT
  108. bool "Configure standard U-Boot features (expert users)"
  109. default y
  110. help
  111. This option allows certain base U-Boot options and settings
  112. to be disabled or tweaked. This is for specialized
  113. environments which can tolerate a "non-standard" U-Boot.
  114. Use this only if you really know what you are doing.
  115. if EXPERT
  116. config SYS_MALLOC_CLEAR_ON_INIT
  117. bool "Init with zeros the memory reserved for malloc (slow)"
  118. default y
  119. help
  120. This setting is enabled by default. The reserved malloc
  121. memory is initialized with zeros, so first malloc calls
  122. will return the pointer to the zeroed memory. But this
  123. slows the boot time.
  124. It is recommended to disable it, when CONFIG_SYS_MALLOC_LEN
  125. value, has more than few MiB, e.g. when uses bzip2 or bmp logo.
  126. Then the boot time can be significantly reduced.
  127. Warning:
  128. When disabling this, please check if malloc calls, maybe
  129. should be replaced by calloc - if one expects zeroed memory.
  130. config TOOLS_DEBUG
  131. bool "Enable debug information for tools"
  132. help
  133. Enable generation of debug information for tools such as mkimage.
  134. This can be used for debugging purposes. With debug information
  135. it is possible to set breakpoints on particular lines, single-step
  136. debug through the source code, etc.
  137. endif # EXPERT
  138. config PHYS_64BIT
  139. bool "64bit physical address support"
  140. help
  141. Say Y here to support 64bit physical memory address.
  142. This can be used not only for 64bit SoCs, but also for
  143. large physical address extention on 32bit SoCs.
  144. config BUILD_ROM
  145. bool "Build U-Boot as BIOS replacement"
  146. depends on X86
  147. help
  148. This option allows to build a ROM version of U-Boot.
  149. The build process generally requires several binary blobs
  150. which are not shipped in the U-Boot source tree.
  151. Please, see doc/README.x86 for details.
  152. endmenu # General setup
  153. menu "Boot images"
  154. config ANDROID_BOOT_IMAGE
  155. bool "Enable support for Android Boot Images"
  156. default y if FASTBOOT
  157. help
  158. This enables support for booting images which use the Android
  159. image format header.
  160. config FIT
  161. bool "Support Flattened Image Tree"
  162. select MD5
  163. select SHA1
  164. help
  165. This option allows you to boot the new uImage structure,
  166. Flattened Image Tree. FIT is formally a FDT, which can include
  167. images of various types (kernel, FDT blob, ramdisk, etc.)
  168. in a single blob. To boot this new uImage structure,
  169. pass the address of the blob to the "bootm" command.
  170. FIT is very flexible, supporting compression, multiple images,
  171. multiple configurations, verification through hashing and also
  172. verified boot (secure boot using RSA).
  173. if FIT
  174. config FIT_ENABLE_SHA256_SUPPORT
  175. bool "Support SHA256 checksum of FIT image contents"
  176. select SHA256
  177. default y
  178. help
  179. Enable this to support SHA256 checksum of FIT image contents. A
  180. SHA256 checksum is a 256-bit (32-byte) hash value used to check that
  181. the image contents have not been corrupted. SHA256 is recommended
  182. for use in secure applications since (as at 2016) there is no known
  183. feasible attack that could produce a 'collision' with differing
  184. input data. Use this for the highest security. Note that only the
  185. SHA256 variant is supported: SHA512 and others are not currently
  186. supported in U-Boot.
  187. config FIT_SIGNATURE
  188. bool "Enable signature verification of FIT uImages"
  189. depends on DM
  190. select RSA
  191. help
  192. This option enables signature verification of FIT uImages,
  193. using a hash signed and verified using RSA. If
  194. CONFIG_SHA_PROG_HW_ACCEL is defined, i.e support for progressive
  195. hashing is available using hardware, then the RSA library will use
  196. it. See doc/uImage.FIT/signature.txt for more details.
  197. WARNING: When relying on signed FIT images with a required signature
  198. check the legacy image format is disabled by default, so that
  199. unsigned images cannot be loaded. If a board needs the legacy image
  200. format support in this case, enable it using
  201. CONFIG_IMAGE_FORMAT_LEGACY.
  202. config FIT_VERBOSE
  203. bool "Show verbose messages when FIT images fail"
  204. help
  205. Generally a system will have valid FIT images so debug messages
  206. are a waste of code space. If you are debugging your images then
  207. you can enable this option to get more verbose information about
  208. failures.
  209. config FIT_BEST_MATCH
  210. bool "Select the best match for the kernel device tree"
  211. help
  212. When no configuration is explicitly selected, default to the
  213. one whose fdt's compatibility field best matches that of
  214. U-Boot itself. A match is considered "best" if it matches the
  215. most specific compatibility entry of U-Boot's fdt's root node.
  216. The order of entries in the configuration's fdt is ignored.
  217. config FIT_IMAGE_POST_PROCESS
  218. bool "Enable post-processing of FIT artifacts after loading by U-Boot"
  219. depends on TI_SECURE_DEVICE
  220. help
  221. Allows doing any sort of manipulation to blobs after they got extracted
  222. from FIT images like stripping off headers or modifying the size of the
  223. blob, verification, authentication, decryption etc. in a platform or
  224. board specific way. In order to use this feature a platform or board-
  225. specific implementation of board_fit_image_post_process() must be
  226. provided. Also, anything done during this post-processing step would
  227. need to be comprehended in how the images were prepared before being
  228. injected into the FIT creation (i.e. the blobs would have been pre-
  229. processed before being added to the FIT image).
  230. if SPL
  231. config SPL_FIT
  232. bool "Support Flattened Image Tree within SPL"
  233. depends on SPL
  234. select SPL_OF_LIBFDT
  235. config SPL_FIT_SIGNATURE
  236. bool "Enable signature verification of FIT firmware within SPL"
  237. depends on SPL_DM
  238. select SPL_FIT
  239. select SPL_RSA
  240. config SPL_LOAD_FIT
  241. bool "Enable SPL loading U-Boot as a FIT"
  242. select SPL_FIT
  243. help
  244. Normally with the SPL framework a legacy image is generated as part
  245. of the build. This contains U-Boot along with information as to
  246. where it should be loaded. This option instead enables generation
  247. of a FIT (Flat Image Tree) which provides more flexibility. In
  248. particular it can handle selecting from multiple device tree
  249. and passing the correct one to U-Boot.
  250. config SPL_FIT_IMAGE_POST_PROCESS
  251. bool "Enable post-processing of FIT artifacts after loading by the SPL"
  252. depends on SPL_LOAD_FIT
  253. help
  254. Allows doing any sort of manipulation to blobs after they got extracted
  255. from the U-Boot FIT image like stripping off headers or modifying the
  256. size of the blob, verification, authentication, decryption etc. in a
  257. platform or board specific way. In order to use this feature a platform
  258. or board-specific implementation of board_fit_image_post_process() must
  259. be provided. Also, anything done during this post-processing step would
  260. need to be comprehended in how the images were prepared before being
  261. injected into the FIT creation (i.e. the blobs would have been pre-
  262. processed before being added to the FIT image).
  263. config SPL_FIT_SOURCE
  264. string ".its source file for U-Boot FIT image"
  265. depends on SPL_FIT
  266. help
  267. Specifies a (platform specific) FIT source file to generate the
  268. U-Boot FIT image. This could specify further image to load and/or
  269. execute.
  270. config SPL_FIT_GENERATOR
  271. string ".its file generator script for U-Boot FIT image"
  272. depends on SPL_FIT
  273. default "board/sunxi/mksunxi_fit_atf.sh" if SPL_LOAD_FIT && ARCH_SUNXI
  274. help
  275. Specifies a (platform specific) script file to generate the FIT
  276. source file used to build the U-Boot FIT image file. This gets
  277. passed a list of supported device tree file stub names to
  278. include in the generated image.
  279. endif # SPL
  280. endif # FIT
  281. config OF_BOARD_SETUP
  282. bool "Set up board-specific details in device tree before boot"
  283. depends on OF_LIBFDT
  284. help
  285. This causes U-Boot to call ft_board_setup() before booting into
  286. the Operating System. This function can set up various
  287. board-specific information in the device tree for use by the OS.
  288. The device tree is then passed to the OS.
  289. config OF_SYSTEM_SETUP
  290. bool "Set up system-specific details in device tree before boot"
  291. depends on OF_LIBFDT
  292. help
  293. This causes U-Boot to call ft_system_setup() before booting into
  294. the Operating System. This function can set up various
  295. system-specific information in the device tree for use by the OS.
  296. The device tree is then passed to the OS.
  297. config OF_STDOUT_VIA_ALIAS
  298. bool "Update the device-tree stdout alias from U-Boot"
  299. depends on OF_LIBFDT
  300. help
  301. This uses U-Boot's serial alias from the aliases node to update
  302. the device tree passed to the OS. The "linux,stdout-path" property
  303. in the chosen node is set to point to the correct serial node.
  304. This option currently references CONFIG_CONS_INDEX, which is
  305. incorrect when used with device tree as this option does not
  306. exist / should not be used.
  307. config SYS_EXTRA_OPTIONS
  308. string "Extra Options (DEPRECATED)"
  309. help
  310. The old configuration infrastructure (= mkconfig + boards.cfg)
  311. provided the extra options field. If you have something like
  312. "HAS_BAR,BAZ=64", the optional options
  313. #define CONFIG_HAS
  314. #define CONFIG_BAZ 64
  315. will be defined in include/config.h.
  316. This option was prepared for the smooth migration from the old
  317. configuration to Kconfig. Since this option will be removed sometime,
  318. new boards should not use this option.
  319. config SYS_TEXT_BASE
  320. depends on ARC || X86 || ARCH_UNIPHIER || ARCH_ZYNQMP || \
  321. (M68K && !TARGET_ASTRO_MCF5373L) || MICROBLAZE || MIPS || \
  322. ARCH_ZYNQ || ARCH_KEYSTONE || ARCH_OMAP2PLUS
  323. depends on !EFI_APP
  324. hex "Text Base"
  325. help
  326. TODO: Move CONFIG_SYS_TEXT_BASE for all the architecture
  327. default 0x80800000 if ARCH_OMAP2PLUS
  328. config SYS_CLK_FREQ
  329. depends on ARC || ARCH_SUNXI
  330. int "CPU clock frequency"
  331. help
  332. TODO: Move CONFIG_SYS_CLK_FREQ for all the architecture
  333. config ARCH_FIXUP_FDT_MEMORY
  334. bool "Enable arch_fixup_memory_banks() call"
  335. default y
  336. help
  337. Enable FDT memory map syncup before OS boot. This feature can be
  338. used for booting OS with different memory setup where the part of
  339. the memory location should be used for different purpose.
  340. endmenu # Boot images
  341. source "api/Kconfig"
  342. source "common/Kconfig"
  343. source "cmd/Kconfig"
  344. source "disk/Kconfig"
  345. source "dts/Kconfig"
  346. source "env/Kconfig"
  347. source "net/Kconfig"
  348. source "drivers/Kconfig"
  349. source "fs/Kconfig"
  350. source "lib/Kconfig"
  351. source "test/Kconfig"