Kconfig 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447
  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 if CMD_NET
  60. select CMD_PING if CMD_NET
  61. select CMD_PXE if NET
  62. select CMD_EXT2
  63. select CMD_EXT4
  64. select CMD_FAT
  65. select CMD_FS_GENERIC
  66. imply CMD_MII if NET
  67. select CMD_PART if PARTITIONS
  68. select HUSH_PARSER
  69. select CMDLINE_EDITING
  70. select AUTO_COMPLETE
  71. select SYS_LONGHELP
  72. select SUPPORT_RAW_INITRD
  73. select ENV_VARS_UBOOT_CONFIG
  74. help
  75. Select this to enable various options and commands which are suitable
  76. for building u-boot for booting general purpose Linux distributions.
  77. config ENV_VARS_UBOOT_CONFIG
  78. bool "Add arch, board, vendor and soc variables to default environment"
  79. help
  80. Define this in order to add variables describing the
  81. U-Boot build configuration to the default environment.
  82. These will be named arch, cpu, board, vendor, and soc.
  83. Enabling this option will cause the following to be defined:
  84. - CONFIG_SYS_ARCH
  85. - CONFIG_SYS_CPU
  86. - CONFIG_SYS_BOARD
  87. - CONFIG_SYS_VENDOR
  88. - CONFIG_SYS_SOC
  89. config SYS_BOOT_GET_CMDLINE
  90. bool "Enable kernel command line setup"
  91. help
  92. Enables allocating and saving kernel cmdline in space between
  93. "bootm_low" and "bootm_low" + BOOTMAPSZ.
  94. config SYS_BOOT_GET_KBD
  95. bool "Enable kernel board information setup"
  96. help
  97. Enables allocating and saving a kernel copy of the bd_info in
  98. space between "bootm_low" and "bootm_low" + BOOTMAPSZ.
  99. config SYS_MALLOC_F
  100. bool "Enable malloc() pool before relocation"
  101. default y if DM
  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. config SYS_MALLOC_F_LEN
  108. hex "Size of malloc() pool before relocation"
  109. depends on SYS_MALLOC_F
  110. default 0x400
  111. help
  112. Before relocation, memory is very limited on many platforms. Still,
  113. we can provide a small malloc() pool if needed. Driver model in
  114. particular needs this to operate, so that it can allocate the
  115. initial serial device and any others that are needed.
  116. config SPL_SYS_MALLOC_F_LEN
  117. hex "Size of malloc() pool in SPL before relocation"
  118. depends on SYS_MALLOC_F
  119. default SYS_MALLOC_F_LEN
  120. help
  121. Before relocation, memory is very limited on many platforms. Still,
  122. we can provide a small malloc() pool if needed. Driver model in
  123. particular needs this to operate, so that it can allocate the
  124. initial serial device and any others that are needed.
  125. config TPL_SYS_MALLOC_F_LEN
  126. hex "Size of malloc() pool in TPL before relocation"
  127. depends on SYS_MALLOC_F
  128. default SYS_MALLOC_F_LEN
  129. help
  130. Before relocation, memory is very limited on many platforms. Still,
  131. we can provide a small malloc() pool if needed. Driver model in
  132. particular needs this to operate, so that it can allocate the
  133. initial serial device and any others that are needed.
  134. menuconfig EXPERT
  135. bool "Configure standard U-Boot features (expert users)"
  136. default y
  137. help
  138. This option allows certain base U-Boot options and settings
  139. to be disabled or tweaked. This is for specialized
  140. environments which can tolerate a "non-standard" U-Boot.
  141. Use this only if you really know what you are doing.
  142. if EXPERT
  143. config SYS_MALLOC_CLEAR_ON_INIT
  144. bool "Init with zeros the memory reserved for malloc (slow)"
  145. default y
  146. help
  147. This setting is enabled by default. The reserved malloc
  148. memory is initialized with zeros, so first malloc calls
  149. will return the pointer to the zeroed memory. But this
  150. slows the boot time.
  151. It is recommended to disable it, when CONFIG_SYS_MALLOC_LEN
  152. value, has more than few MiB, e.g. when uses bzip2 or bmp logo.
  153. Then the boot time can be significantly reduced.
  154. Warning:
  155. When disabling this, please check if malloc calls, maybe
  156. should be replaced by calloc - if one expects zeroed memory.
  157. config TOOLS_DEBUG
  158. bool "Enable debug information for tools"
  159. help
  160. Enable generation of debug information for tools such as mkimage.
  161. This can be used for debugging purposes. With debug information
  162. it is possible to set breakpoints on particular lines, single-step
  163. debug through the source code, etc.
  164. endif # EXPERT
  165. config PHYS_64BIT
  166. bool "64bit physical address support"
  167. help
  168. Say Y here to support 64bit physical memory address.
  169. This can be used not only for 64bit SoCs, but also for
  170. large physical address extention on 32bit SoCs.
  171. config BUILD_ROM
  172. bool "Build U-Boot as BIOS replacement"
  173. depends on X86
  174. help
  175. This option allows to build a ROM version of U-Boot.
  176. The build process generally requires several binary blobs
  177. which are not shipped in the U-Boot source tree.
  178. Please, see doc/README.x86 for details.
  179. endmenu # General setup
  180. menu "Boot images"
  181. config ANDROID_BOOT_IMAGE
  182. bool "Enable support for Android Boot Images"
  183. default y if FASTBOOT
  184. help
  185. This enables support for booting images which use the Android
  186. image format header.
  187. config FIT
  188. bool "Support Flattened Image Tree"
  189. select MD5
  190. select SHA1
  191. help
  192. This option allows you to boot the new uImage structure,
  193. Flattened Image Tree. FIT is formally a FDT, which can include
  194. images of various types (kernel, FDT blob, ramdisk, etc.)
  195. in a single blob. To boot this new uImage structure,
  196. pass the address of the blob to the "bootm" command.
  197. FIT is very flexible, supporting compression, multiple images,
  198. multiple configurations, verification through hashing and also
  199. verified boot (secure boot using RSA).
  200. if FIT
  201. config FIT_ENABLE_SHA256_SUPPORT
  202. bool "Support SHA256 checksum of FIT image contents"
  203. select SHA256
  204. default y
  205. help
  206. Enable this to support SHA256 checksum of FIT image contents. A
  207. SHA256 checksum is a 256-bit (32-byte) hash value used to check that
  208. the image contents have not been corrupted. SHA256 is recommended
  209. for use in secure applications since (as at 2016) there is no known
  210. feasible attack that could produce a 'collision' with differing
  211. input data. Use this for the highest security. Note that only the
  212. SHA256 variant is supported: SHA512 and others are not currently
  213. supported in U-Boot.
  214. config FIT_SIGNATURE
  215. bool "Enable signature verification of FIT uImages"
  216. depends on DM
  217. select RSA
  218. help
  219. This option enables signature verification of FIT uImages,
  220. using a hash signed and verified using RSA. If
  221. CONFIG_SHA_PROG_HW_ACCEL is defined, i.e support for progressive
  222. hashing is available using hardware, then the RSA library will use
  223. it. See doc/uImage.FIT/signature.txt for more details.
  224. WARNING: When relying on signed FIT images with a required signature
  225. check the legacy image format is disabled by default, so that
  226. unsigned images cannot be loaded. If a board needs the legacy image
  227. format support in this case, enable it using
  228. CONFIG_IMAGE_FORMAT_LEGACY.
  229. config FIT_VERBOSE
  230. bool "Show verbose messages when FIT images fail"
  231. help
  232. Generally a system will have valid FIT images so debug messages
  233. are a waste of code space. If you are debugging your images then
  234. you can enable this option to get more verbose information about
  235. failures.
  236. config FIT_BEST_MATCH
  237. bool "Select the best match for the kernel device tree"
  238. help
  239. When no configuration is explicitly selected, default to the
  240. one whose fdt's compatibility field best matches that of
  241. U-Boot itself. A match is considered "best" if it matches the
  242. most specific compatibility entry of U-Boot's fdt's root node.
  243. The order of entries in the configuration's fdt is ignored.
  244. config FIT_IMAGE_POST_PROCESS
  245. bool "Enable post-processing of FIT artifacts after loading by U-Boot"
  246. depends on TI_SECURE_DEVICE
  247. help
  248. Allows doing any sort of manipulation to blobs after they got extracted
  249. from FIT images like stripping off headers or modifying the size of the
  250. blob, verification, authentication, decryption etc. in a platform or
  251. board specific way. In order to use this feature a platform or board-
  252. specific implementation of board_fit_image_post_process() must be
  253. provided. Also, anything done during this post-processing step would
  254. need to be comprehended in how the images were prepared before being
  255. injected into the FIT creation (i.e. the blobs would have been pre-
  256. processed before being added to the FIT image).
  257. if SPL
  258. config SPL_FIT
  259. bool "Support Flattened Image Tree within SPL"
  260. depends on SPL
  261. select SPL_OF_LIBFDT
  262. config SPL_FIT_SIGNATURE
  263. bool "Enable signature verification of FIT firmware within SPL"
  264. depends on SPL_DM
  265. select SPL_FIT
  266. select SPL_RSA
  267. config SPL_LOAD_FIT
  268. bool "Enable SPL loading U-Boot as a FIT"
  269. select SPL_FIT
  270. help
  271. Normally with the SPL framework a legacy image is generated as part
  272. of the build. This contains U-Boot along with information as to
  273. where it should be loaded. This option instead enables generation
  274. of a FIT (Flat Image Tree) which provides more flexibility. In
  275. particular it can handle selecting from multiple device tree
  276. and passing the correct one to U-Boot.
  277. config SPL_FIT_IMAGE_POST_PROCESS
  278. bool "Enable post-processing of FIT artifacts after loading by the SPL"
  279. depends on SPL_LOAD_FIT
  280. help
  281. Allows doing any sort of manipulation to blobs after they got extracted
  282. from the U-Boot FIT image like stripping off headers or modifying the
  283. size of the blob, verification, authentication, decryption etc. in a
  284. platform or board specific way. In order to use this feature a platform
  285. or board-specific implementation of board_fit_image_post_process() must
  286. be provided. Also, anything done during this post-processing step would
  287. need to be comprehended in how the images were prepared before being
  288. injected into the FIT creation (i.e. the blobs would have been pre-
  289. processed before being added to the FIT image).
  290. config SPL_FIT_SOURCE
  291. string ".its source file for U-Boot FIT image"
  292. depends on SPL_FIT
  293. help
  294. Specifies a (platform specific) FIT source file to generate the
  295. U-Boot FIT image. This could specify further image to load and/or
  296. execute.
  297. config SPL_FIT_GENERATOR
  298. string ".its file generator script for U-Boot FIT image"
  299. depends on SPL_FIT
  300. default "board/sunxi/mksunxi_fit_atf.sh" if SPL_LOAD_FIT && ARCH_SUNXI
  301. help
  302. Specifies a (platform specific) script file to generate the FIT
  303. source file used to build the U-Boot FIT image file. This gets
  304. passed a list of supported device tree file stub names to
  305. include in the generated image.
  306. endif # SPL
  307. endif # FIT
  308. config OF_BOARD_SETUP
  309. bool "Set up board-specific details in device tree before boot"
  310. depends on OF_LIBFDT
  311. help
  312. This causes U-Boot to call ft_board_setup() before booting into
  313. the Operating System. This function can set up various
  314. board-specific information in the device tree for use by the OS.
  315. The device tree is then passed to the OS.
  316. config OF_SYSTEM_SETUP
  317. bool "Set up system-specific details in device tree before boot"
  318. depends on OF_LIBFDT
  319. help
  320. This causes U-Boot to call ft_system_setup() before booting into
  321. the Operating System. This function can set up various
  322. system-specific information in the device tree for use by the OS.
  323. The device tree is then passed to the OS.
  324. config OF_STDOUT_VIA_ALIAS
  325. bool "Update the device-tree stdout alias from U-Boot"
  326. depends on OF_LIBFDT
  327. help
  328. This uses U-Boot's serial alias from the aliases node to update
  329. the device tree passed to the OS. The "linux,stdout-path" property
  330. in the chosen node is set to point to the correct serial node.
  331. This option currently references CONFIG_CONS_INDEX, which is
  332. incorrect when used with device tree as this option does not
  333. exist / should not be used.
  334. config SYS_EXTRA_OPTIONS
  335. string "Extra Options (DEPRECATED)"
  336. help
  337. The old configuration infrastructure (= mkconfig + boards.cfg)
  338. provided the extra options field. If you have something like
  339. "HAS_BAR,BAZ=64", the optional options
  340. #define CONFIG_HAS
  341. #define CONFIG_BAZ 64
  342. will be defined in include/config.h.
  343. This option was prepared for the smooth migration from the old
  344. configuration to Kconfig. Since this option will be removed sometime,
  345. new boards should not use this option.
  346. config SYS_TEXT_BASE
  347. depends on !NIOS2 && !XTENSA
  348. depends on !EFI_APP
  349. default 0x80800000 if ARCH_OMAP2PLUS
  350. default 0x4a000000 if ARCH_SUNXI && !MACH_SUN9I && !MACH_SUN8I_V3S
  351. default 0x2a000000 if ARCH_SUNXI && MACH_SUN9I
  352. default 0x42e00000 if ARCH_SUNXI && MACH_SUN8I_V3S
  353. hex "Text Base"
  354. help
  355. The address in memory that U-Boot will be running from, initially.
  356. config SYS_CLK_FREQ
  357. depends on ARC || ARCH_SUNXI
  358. int "CPU clock frequency"
  359. help
  360. TODO: Move CONFIG_SYS_CLK_FREQ for all the architecture
  361. config ARCH_FIXUP_FDT_MEMORY
  362. bool "Enable arch_fixup_memory_banks() call"
  363. default y
  364. help
  365. Enable FDT memory map syncup before OS boot. This feature can be
  366. used for booting OS with different memory setup where the part of
  367. the memory location should be used for different purpose.
  368. endmenu # Boot images
  369. source "api/Kconfig"
  370. source "common/Kconfig"
  371. source "cmd/Kconfig"
  372. source "disk/Kconfig"
  373. source "dts/Kconfig"
  374. source "env/Kconfig"
  375. source "net/Kconfig"
  376. source "drivers/Kconfig"
  377. source "fs/Kconfig"
  378. source "lib/Kconfig"
  379. source "test/Kconfig"