blob: 7ba2665550824b57520b1508099c99f0830cd8dc [file] [log] [blame]
Masahiro Yamada804bc5e2014-07-30 14:08:15 +09001#
2# For a description of the syntax of this configuration file,
Robert P. J. Day2f845be2016-04-16 05:53:07 -04003# see the file Documentation/kbuild/kconfig-language.txt in the
4# Linux kernel source tree.
Masahiro Yamada804bc5e2014-07-30 14:08:15 +09005#
Tom Rini40f11702020-03-11 18:11:17 -04006mainmenu "U-Boot $(UBOOTVERSION) Configuration"
Masahiro Yamada804bc5e2014-07-30 14:08:15 +09007
Tom Rini8f1be322020-05-14 08:30:01 -04008source "scripts/Kconfig.include"
9
Simon Glass157c3952015-02-24 22:26:19 +090010# Allow defaults in arch-specific code to override any given here
11source "arch/Kconfig"
12
Masahiro Yamada804bc5e2014-07-30 14:08:15 +090013menu "General setup"
14
Heinrich Schuchardt556f86d2017-10-19 23:49:19 +020015config BROKEN
16 bool
17 help
18 This option cannot be enabled. It is used as dependency
19 for broken and incomplete features.
20
Tom Rinie9518cf2019-05-29 17:01:29 -040021config DEPRECATED
22 bool
23 help
24 This option cannot be enabled. It it used as a dependency for
25 code that relies on deprecated features that will be removed and
26 the conversion deadline has passed.
27
Masahiro Yamada6ea06e62014-08-22 19:42:27 +090028config LOCALVERSION
29 string "Local version - append to U-Boot release"
Masahiro Yamada6ea06e62014-08-22 19:42:27 +090030 help
31 Append an extra string to the end of your U-Boot version.
Robert P. J. Day2f845be2016-04-16 05:53:07 -040032 This will show up in your boot log, for example.
Masahiro Yamada6ea06e62014-08-22 19:42:27 +090033 The string you set here will be appended after the contents of
34 any files with a filename matching localversion* in your
35 object and source tree, in that order. Your total string can
36 be a maximum of 64 characters.
37
38config LOCALVERSION_AUTO
39 bool "Automatically append version information to the version string"
Masahiro Yamada6ea06e62014-08-22 19:42:27 +090040 default y
41 help
42 This will try to automatically determine if the current tree is a
Robert P. J. Day2f845be2016-04-16 05:53:07 -040043 release tree by looking for Git tags that belong to the current
Masahiro Yamada6ea06e62014-08-22 19:42:27 +090044 top of tree revision.
45
46 A string of the format -gxxxxxxxx will be added to the localversion
Robert P. J. Day2f845be2016-04-16 05:53:07 -040047 if a Git-based tree is found. The string generated by this will be
Masahiro Yamada6ea06e62014-08-22 19:42:27 +090048 appended after any matching localversion* files, and after the value
49 set in CONFIG_LOCALVERSION.
50
51 (The actual string used here is the first eight characters produced
52 by running the command:
53
54 $ git rev-parse --verify HEAD
55
56 which is done within the script "scripts/setlocalversion".)
57
Masahiro Yamada8240a4b2014-08-22 19:42:29 +090058config CC_OPTIMIZE_FOR_SIZE
59 bool "Optimize for size"
Masahiro Yamada8240a4b2014-08-22 19:42:29 +090060 default y
61 help
62 Enabling this option will pass "-Os" instead of "-O2" to gcc
63 resulting in a smaller U-Boot image.
64
65 This option is enabled by default for U-Boot.
66
Tom Rini5cbb29e2020-05-14 08:30:07 -040067config OPTIMIZE_INLINING
Tom Riniea55ba02020-05-14 08:30:08 -040068 bool "Allow compiler to uninline functions marked 'inline' in full U-Boot"
69 default n
70 help
71 This option determines if U-Boot forces gcc to inline the functions
72 developers have marked 'inline'. Doing so takes away freedom from gcc to
73 do what it thinks is best, which is desirable in some cases for size
74 reasons.
75
76config SPL_OPTIMIZE_INLINING
77 bool "Allow compiler to uninline functions marked 'inline' in SPL"
78 depends on SPL
79 default n
80 help
81 This option determines if U-Boot forces gcc to inline the functions
82 developers have marked 'inline'. Doing so takes away freedom from gcc to
83 do what it thinks is best, which is desirable in some cases for size
84 reasons.
85
86config TPL_OPTIMIZE_INLINING
87 bool "Allow compiler to uninline functions marked 'inline' in TPL"
88 depends on TPL
Tom Rini5cbb29e2020-05-14 08:30:07 -040089 default n
90 help
91 This option determines if U-Boot forces gcc to inline the functions
92 developers have marked 'inline'. Doing so takes away freedom from gcc to
93 do what it thinks is best, which is desirable in some cases for size
94 reasons.
95
Christian Gmeiner0e7c0712018-04-09 17:11:45 +020096config CC_COVERAGE
97 bool "Enable code coverage analysis"
98 depends on SANDBOX
99 help
100 Enabling this option will pass "--coverage" to gcc to compile
101 and link code instrumented for coverage analysis.
102
Tom Rini7c34ae42020-05-14 08:30:06 -0400103config CC_HAS_ASM_INLINE
104 def_bool $(success,echo 'void foo(void) { asm inline (""); }' | $(CC) -x c - -c -o /dev/null)
105
Hans de Goedef99c5cb2016-06-20 23:16:28 +0200106config DISTRO_DEFAULTS
107 bool "Select defaults suitable for booting general purpose Linux distributions"
Michal Simek7e7ba3b2018-07-23 15:55:15 +0200108 select AUTO_COMPLETE
109 select CMDLINE_EDITING
Masahiro Yamada04cf1552016-08-12 08:31:16 -0400110 select CMD_BOOTI if ARM64
Michal Simek7e7ba3b2018-07-23 15:55:15 +0200111 select CMD_BOOTZ if ARM && !ARM64
Joe Hershberger1c657e92018-04-13 15:26:31 -0500112 select CMD_DHCP if CMD_NET
Masahiro Yamadae4ce7952018-04-25 19:16:48 +0900113 select CMD_ENV_EXISTS
Hans de Goedef99c5cb2016-06-20 23:16:28 +0200114 select CMD_EXT2
115 select CMD_EXT4
116 select CMD_FAT
117 select CMD_FS_GENERIC
Tom Rini732aa4a2018-02-10 16:54:38 -0500118 select CMD_PART if PARTITIONS
Michal Simek7e7ba3b2018-07-23 15:55:15 +0200119 select CMD_PING if CMD_NET
120 select CMD_PXE if NET
Patrice Chotard7b81c052019-11-25 09:07:38 +0100121 select CMD_SYSBOOT
Michal Simek7e7ba3b2018-07-23 15:55:15 +0200122 select ENV_VARS_UBOOT_CONFIG
Hans de Goedef99c5cb2016-06-20 23:16:28 +0200123 select HUSH_PARSER
Adam Ford58dbf862018-02-06 07:58:59 -0600124 select SUPPORT_RAW_INITRD
Michal Simek7e7ba3b2018-07-23 15:55:15 +0200125 select SYS_LONGHELP
126 imply CMD_MII if NET
Alexander Grafa90e5822018-10-18 09:33:03 +0200127 imply USB_STORAGE
Michal Simek7e7ba3b2018-07-23 15:55:15 +0200128 imply USE_BOOTCOMMAND
Hans de Goedef99c5cb2016-06-20 23:16:28 +0200129 help
130 Select this to enable various options and commands which are suitable
131 for building u-boot for booting general purpose Linux distributions.
132
Adam Ford58dbf862018-02-06 07:58:59 -0600133config ENV_VARS_UBOOT_CONFIG
134 bool "Add arch, board, vendor and soc variables to default environment"
135 help
136 Define this in order to add variables describing the
137 U-Boot build configuration to the default environment.
138 These will be named arch, cpu, board, vendor, and soc.
139 Enabling this option will cause the following to be defined:
140 - CONFIG_SYS_ARCH
141 - CONFIG_SYS_CPU
142 - CONFIG_SYS_BOARD
143 - CONFIG_SYS_VENDOR
144 - CONFIG_SYS_SOC
145
Ramon Fried99826612018-08-14 01:00:04 +0300146config NR_DRAM_BANKS
147 int "Number of DRAM banks"
Amit Singh Tomar82704fa2020-04-19 19:28:34 +0530148 default 1 if ARCH_SUNXI || ARCH_OWL
Ramon Fried99826612018-08-14 01:00:04 +0300149 default 4
150 help
151 This defines the number of DRAM banks.
152
Derald D. Woodseb730bd2018-01-22 17:17:10 -0600153config SYS_BOOT_GET_CMDLINE
154 bool "Enable kernel command line setup"
155 help
156 Enables allocating and saving kernel cmdline in space between
157 "bootm_low" and "bootm_low" + BOOTMAPSZ.
158
159config SYS_BOOT_GET_KBD
160 bool "Enable kernel board information setup"
161 help
162 Enables allocating and saving a kernel copy of the bd_info in
163 space between "bootm_low" and "bootm_low" + BOOTMAPSZ.
164
Simon Glass838723b2015-02-11 16:32:59 -0700165config SYS_MALLOC_F
166 bool "Enable malloc() pool before relocation"
Masahiro Yamadac6988242015-03-19 19:42:55 +0900167 default y if DM
Simon Glassb24fdd42018-12-03 04:37:17 -0700168
Simon Glass838723b2015-02-11 16:32:59 -0700169 help
Robert P. J. Day2f845be2016-04-16 05:53:07 -0400170 Before relocation, memory is very limited on many platforms. Still,
Simon Glass838723b2015-02-11 16:32:59 -0700171 we can provide a small malloc() pool if needed. Driver model in
172 particular needs this to operate, so that it can allocate the
173 initial serial device and any others that are needed.
174
175config SYS_MALLOC_F_LEN
176 hex "Size of malloc() pool before relocation"
177 depends on SYS_MALLOC_F
Sjoerd Simons4e335c32018-04-12 18:09:58 +0200178 default 0x1000 if AM33XX
Simon Glassb24fdd42018-12-03 04:37:17 -0700179 default 0x2800 if SANDBOX
Fabio Estevam88b1c7d2019-05-03 14:05:04 -0300180 default 0x2000 if (ARCH_IMX8 || ARCH_IMX8M || ARCH_MX7 || \
Biwen Li9dc4bbe2019-12-31 15:33:40 +0800181 ARCH_MX7ULP || ARCH_MX6 || ARCH_MX5 || \
182 ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A || \
Heinrich Schuchardt936fa702020-06-07 11:54:00 +0200183 ARCH_LS1046A || ARCH_QEMU)
Simon Glass838723b2015-02-11 16:32:59 -0700184 default 0x400
185 help
Robert P. J. Day2f845be2016-04-16 05:53:07 -0400186 Before relocation, memory is very limited on many platforms. Still,
Simon Glass838723b2015-02-11 16:32:59 -0700187 we can provide a small malloc() pool if needed. Driver model in
188 particular needs this to operate, so that it can allocate the
189 initial serial device and any others that are needed.
190
Siva Durga Prasad Paladugu9adb5262018-07-20 15:11:38 +0530191config SYS_MALLOC_LEN
192 hex "Define memory for Dynamic allocation"
Kever Yangbafd02f2019-08-19 15:01:24 +0800193 depends on ARCH_ZYNQ || ARCH_VERSAL || ARCH_STM32MP || ARCH_ROCKCHIP
194 default 0x2000000 if ARCH_ROCKCHIP
Siva Durga Prasad Paladugu9adb5262018-07-20 15:11:38 +0530195 help
196 This defines memory to be allocated for Dynamic allocation
197 TODO: Use for other architectures
198
Andy Yan1fa20e4d2017-07-24 17:43:34 +0800199config SPL_SYS_MALLOC_F_LEN
Michal Simek0601c1b2018-07-24 14:47:43 +0200200 hex "Size of malloc() pool in SPL before relocation"
Adam Ford43a1e2d2019-08-13 14:32:30 -0500201 depends on SYS_MALLOC_F && SPL
Marek Vasute39fa7d2018-10-03 12:44:13 +0200202 default 0x2800 if RCAR_GEN3
Michal Simek0601c1b2018-07-24 14:47:43 +0200203 default SYS_MALLOC_F_LEN
204 help
205 Before relocation, memory is very limited on many platforms. Still,
206 we can provide a small malloc() pool if needed. Driver model in
207 particular needs this to operate, so that it can allocate the
208 initial serial device and any others that are needed.
Philipp Tomsich10139352017-07-28 11:06:03 +0200209
210config TPL_SYS_MALLOC_F_LEN
Michal Simek0601c1b2018-07-24 14:47:43 +0200211 hex "Size of malloc() pool in TPL before relocation"
Adam Ford43a1e2d2019-08-13 14:32:30 -0500212 depends on SYS_MALLOC_F && TPL
Michal Simek0601c1b2018-07-24 14:47:43 +0200213 default SYS_MALLOC_F_LEN
214 help
215 Before relocation, memory is very limited on many platforms. Still,
216 we can provide a small malloc() pool if needed. Driver model in
217 particular needs this to operate, so that it can allocate the
218 initial serial device and any others that are needed.
Andy Yan1fa20e4d2017-07-24 17:43:34 +0800219
Tom Rinia50d5b52014-11-14 09:34:29 +0100220menuconfig EXPERT
Przemyslaw Marczak88436782015-03-04 14:01:24 +0100221 bool "Configure standard U-Boot features (expert users)"
222 default y
223 help
224 This option allows certain base U-Boot options and settings
225 to be disabled or tweaked. This is for specialized
226 environments which can tolerate a "non-standard" U-Boot.
Robert P. J. Day2f845be2016-04-16 05:53:07 -0400227 Use this only if you really know what you are doing.
Przemyslaw Marczak88436782015-03-04 14:01:24 +0100228
229if EXPERT
230 config SYS_MALLOC_CLEAR_ON_INIT
231 bool "Init with zeros the memory reserved for malloc (slow)"
232 default y
233 help
234 This setting is enabled by default. The reserved malloc
235 memory is initialized with zeros, so first malloc calls
236 will return the pointer to the zeroed memory. But this
237 slows the boot time.
Tom Rinia50d5b52014-11-14 09:34:29 +0100238
Przemyslaw Marczak88436782015-03-04 14:01:24 +0100239 It is recommended to disable it, when CONFIG_SYS_MALLOC_LEN
240 value, has more than few MiB, e.g. when uses bzip2 or bmp logo.
241 Then the boot time can be significantly reduced.
242 Warning:
243 When disabling this, please check if malloc calls, maybe
Robert P. J. Day2f845be2016-04-16 05:53:07 -0400244 should be replaced by calloc - if one expects zeroed memory.
Simon Glass86a64492016-06-30 10:52:20 -0600245
Marek Bykowskib4032a72020-04-29 18:23:07 +0200246config SYS_MALLOC_DEFAULT_TO_INIT
247 bool "Default malloc to init while reserving the memory for it"
248 default n
249 help
250 It may happen that one needs to move the dynamic allocation
251 from one to another memory range, eg. when moving the malloc
252 from the limited static to a potentially large dynamic (DDR)
253 memory.
254
255 If so then on top of setting the updated memory aside one
256 needs to bring the malloc init.
257
258 If such a scenario is sought choose yes.
259
Simon Glass86a64492016-06-30 10:52:20 -0600260config TOOLS_DEBUG
261 bool "Enable debug information for tools"
262 help
263 Enable generation of debug information for tools such as mkimage.
264 This can be used for debugging purposes. With debug information
265 it is possible to set breakpoints on particular lines, single-step
266 debug through the source code, etc.
267
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500268endif # EXPERT
Masahiro Yamada653e9fe2016-07-25 19:56:03 +0900269
270config PHYS_64BIT
271 bool "64bit physical address support"
272 help
273 Say Y here to support 64bit physical memory address.
274 This can be used not only for 64bit SoCs, but also for
Chris Packham2b52a242019-01-13 22:13:19 +1300275 large physical address extension on 32bit SoCs.
Masahiro Yamada653e9fe2016-07-25 19:56:03 +0900276
Heinrich Schuchardtae284492017-10-16 18:08:38 +0000277config BUILD_ROM
278 bool "Build U-Boot as BIOS replacement"
279 depends on X86
280 help
281 This option allows to build a ROM version of U-Boot.
282 The build process generally requires several binary blobs
283 which are not shipped in the U-Boot source tree.
Patrick Delaunayf0d01a52020-02-28 15:18:11 +0100284 Please, see doc/arch/x86.rst for details.
Heinrich Schuchardtae284492017-10-16 18:08:38 +0000285
Stefan Roesee915cbc2019-04-03 15:24:50 +0200286config SPL_IMAGE
287 string "SPL image used in the combined SPL+U-Boot image"
288 default "spl/boot.bin" if ARCH_AT91 && SPL_NAND_SUPPORT
289 default "spl/u-boot-spl.bin"
Adam Ford43a1e2d2019-08-13 14:32:30 -0500290 depends on SPL
Stefan Roesee915cbc2019-04-03 15:24:50 +0200291 help
292 Select the SPL build target that shall be generated by the SPL
293 build process (default spl/u-boot-spl.bin). This image will be
294 used to generate a combined image with SPL and main U-Boot
295 proper as one single image.
296
Jagan Tekiaee9ed32019-01-18 12:52:49 +0530297config BUILD_TARGET
298 string "Build target special images"
Dalon Westergreen8fb280c2019-03-20 13:15:21 -0700299 default "u-boot-with-spl.sfp" if TARGET_SOCFPGA_ARRIA10
300 default "u-boot-with-spl.sfp" if TARGET_SOCFPGA_GEN5
Baruch Siachb6a4fc02019-02-07 13:21:16 +0200301 default "u-boot-spl.kwb" if ARCH_MVEBU && SPL
Jagan Tekiaee9ed32019-01-18 12:52:49 +0530302 default "u-boot-elf.srec" if RCAR_GEN3
Kever Yangc3762182019-10-17 12:08:34 -0700303 default "u-boot.itb" if SPL_LOAD_FIT && (ARCH_ROCKCHIP || \
Michal Simeka7178b72019-10-02 15:55:57 +0200304 ARCH_SUNXI || RISCV || ARCH_ZYNQMP)
Trevor Woernerbb7ab072020-05-06 08:02:40 -0400305 default "u-boot.kwb" if ARCH_KIRKWOOD
Stefan Roesee915cbc2019-04-03 15:24:50 +0200306 default "u-boot-with-spl.bin" if ARCH_AT91 && SPL_NAND_SUPPORT
Stefan Roese98b2f412019-09-20 18:09:10 +0200307 default "u-boot-with-spl.imx" if ARCH_MX6 && SPL
Jagan Tekiaee9ed32019-01-18 12:52:49 +0530308 help
309 Some SoCs need special image types (e.g. U-Boot binary
310 with a special header) as build targets. By defining
311 CONFIG_BUILD_TARGET in the SoC / board header, this
312 special image will be automatically built upon calling
313 make / buildman.
314
Tom Rinie478f702019-06-02 08:57:32 -0400315config SYS_CUSTOM_LDSCRIPT
316 bool "Use a custom location for the U-Boot linker script"
317 help
318 Normally when linking U-Boot we will look in the board directory,
319 the CPU directory and finally the "cpu" directory of the architecture
320 for the ile "u-boot.lds" and use that as our linker. However, in
321 some cases we need to provide a different linker script. To do so,
322 enable this option and then provide the location under
323 CONFIG_SYS_LDSCRIPT.
324
325config SYS_LDSCRIPT
326 depends on SYS_CUSTOM_LDSCRIPT
327 string "Custom ldscript location"
328 help
329 Path within the source tree to the linker script to use for the
330 main U-Boot binary.
331
Simon Goldschmidt9c055112019-10-22 21:29:46 +0200332config ERR_PTR_OFFSET
333 hex
334 default 0x0
335 help
336 Some U-Boot pointers have redundant information, so we can use a
337 scheme where we can return either an error code or a pointer with the
338 same return value. The default implementation just casts the pointer
339 to a number, however, this may fail on platforms where the end of the
340 address range is used for valid pointers (e.g. 0xffffff00 is a valid
341 heap pointer in socfpga SPL).
342 For such platforms, this value provides an upper range of those error
343 pointer values - up to 'MAX_ERRNO' bytes below this value must be
344 unused/invalid addresses.
345
Michal Simek5d458a12020-03-30 13:58:59 +0200346config PLATFORM_ELFENTRY
347 string
348 default "__start" if MIPS
349 default "_start"
350
Masahiro Yamada9eeddf22014-11-26 18:42:31 +0900351endmenu # General setup
352
Masahiro Yamada6ea06e62014-08-22 19:42:27 +0900353menu "Boot images"
354
Tom Rinib5bf5622017-08-25 17:50:27 -0400355config ANDROID_BOOT_IMAGE
356 bool "Enable support for Android Boot Images"
357 default y if FASTBOOT
358 help
359 This enables support for booting images which use the Android
360 image format header.
361
Masahiro Yamadaa7fa7462014-11-13 19:29:06 +0900362config FIT
363 bool "Support Flattened Image Tree"
Andre Przywara84763302017-03-15 01:19:06 +0000364 select MD5
Tom Rini5bdd9192017-05-15 12:17:49 -0400365 select SHA1
Masahiro Yamadaa7fa7462014-11-13 19:29:06 +0900366 help
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500367 This option allows you to boot the new uImage structure,
Masahiro Yamadaa7fa7462014-11-13 19:29:06 +0900368 Flattened Image Tree. FIT is formally a FDT, which can include
369 images of various types (kernel, FDT blob, ramdisk, etc.)
370 in a single blob. To boot this new uImage structure,
Igor Grinberge40176b2015-08-26 17:54:45 +0300371 pass the address of the blob to the "bootm" command.
Simon Glasse3ee2fb2016-02-22 22:55:43 -0700372 FIT is very flexible, supporting compression, multiple images,
373 multiple configurations, verification through hashing and also
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500374 verified boot (secure boot using RSA).
Masahiro Yamadaa7fa7462014-11-13 19:29:06 +0900375
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500376if FIT
Masahiro Yamadaa7fa7462014-11-13 19:29:06 +0900377
Peng Fana5f184f2018-11-20 10:19:11 +0000378config FIT_EXTERNAL_OFFSET
Ibai Erkiagadadde502019-05-15 22:10:04 +0100379 hex "FIT external data offset"
Peng Fana5f184f2018-11-20 10:19:11 +0000380 default 0x0
381 help
382 This specifies a data offset in fit image.
383 The offset is from data payload offset to the beginning of
384 fit image header. When specifies a offset, specific data
385 could be put in the hole between data payload and fit image
386 header, such as CSF data on i.MX platform.
387
Tom Rinicc54a102017-05-15 12:17:48 -0400388config FIT_ENABLE_SHA256_SUPPORT
389 bool "Support SHA256 checksum of FIT image contents"
390 default y
Michal Simek7e7ba3b2018-07-23 15:55:15 +0200391 select SHA256
Tom Rinicc54a102017-05-15 12:17:48 -0400392 help
393 Enable this to support SHA256 checksum of FIT image contents. A
394 SHA256 checksum is a 256-bit (32-byte) hash value used to check that
Reuben Dowle1908fd92020-04-16 17:36:52 +1200395 the image contents have not been corrupted.
396
397config FIT_ENABLE_SHA384_SUPPORT
398 bool "Support SHA384 checksum of FIT image contents"
399 default n
400 select SHA384
401 help
402 Enable this to support SHA384 checksum of FIT image contents. A
403 SHA384 checksum is a 384-bit (48-byte) hash value used to check that
404 the image contents have not been corrupted. Use this for the highest
405 security.
406
407config FIT_ENABLE_SHA512_SUPPORT
408 bool "Support SHA512 checksum of FIT image contents"
409 default n
410 select SHA512
411 help
412 Enable this to support SHA512 checksum of FIT image contents. A
413 SHA512 checksum is a 512-bit (64-byte) hash value used to check that
414 the image contents have not been corrupted.
Tom Rinicc54a102017-05-15 12:17:48 -0400415
Masahiro Yamadaa7fa7462014-11-13 19:29:06 +0900416config FIT_SIGNATURE
Ruchika Gupta2c3822e2015-01-23 16:01:51 +0530417 bool "Enable signature verification of FIT uImages"
Chris Kuetheb58cf4f2015-02-04 19:16:14 -0800418 depends on DM
Kelvin Cheungc6189b52018-05-02 18:07:18 +0800419 select HASH
Michal Simek7e7ba3b2018-07-23 15:55:15 +0200420 select RSA
AKASHI Takahiro2223c7d2020-02-21 15:12:55 +0900421 select RSA_VERIFY
422 select IMAGE_SIGN_INFO
Masahiro Yamadaa7fa7462014-11-13 19:29:06 +0900423 help
424 This option enables signature verification of FIT uImages,
gaurav ranaef201592015-02-20 12:51:46 +0530425 using a hash signed and verified using RSA. If
426 CONFIG_SHA_PROG_HW_ACCEL is defined, i.e support for progressive
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500427 hashing is available using hardware, then the RSA library will use
Simon Glasse3ee2fb2016-02-22 22:55:43 -0700428 it. See doc/uImage.FIT/signature.txt for more details.
429
430 WARNING: When relying on signed FIT images with a required signature
431 check the legacy image format is disabled by default, so that
432 unsigned images cannot be loaded. If a board needs the legacy image
433 format support in this case, enable it using
Tom Rinic220bd92019-05-23 07:14:07 -0400434 CONFIG_LEGACY_IMAGE_FORMAT.
Simon Glasse3ee2fb2016-02-22 22:55:43 -0700435
Teddy Reede6a47832018-06-09 11:38:05 -0400436config FIT_SIGNATURE_MAX_SIZE
437 hex "Max size of signed FIT structures"
438 depends on FIT_SIGNATURE
439 default 0x10000000
440 help
441 This option sets a max size in bytes for verified FIT uImages.
442 A sane value of 256MB protects corrupted DTB structures from overlapping
443 device memory. Assure this size does not extend past expected storage
444 space.
445
Philippe Reynes47d73f02018-11-14 13:51:01 +0100446config FIT_ENABLE_RSASSA_PSS_SUPPORT
447 bool "Support rsassa-pss signature scheme of FIT image contents"
448 depends on FIT_SIGNATURE
449 default n
450 help
451 Enable this to support the pss padding algorithm as described
452 in the rfc8017 (https://tools.ietf.org/html/rfc8017).
453
Philippe Reynes3148e422019-12-18 18:25:41 +0100454config FIT_CIPHER
455 bool "Enable ciphering data in a FIT uImages"
456 depends on DM
457 select AES
458 help
459 Enable the feature of data ciphering/unciphering in the tool mkimage
460 and in the u-boot support of the FIT image.
461
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500462config FIT_VERBOSE
463 bool "Show verbose messages when FIT images fail"
464 help
465 Generally a system will have valid FIT images so debug messages
466 are a waste of code space. If you are debugging your images then
467 you can enable this option to get more verbose information about
468 failures.
Teddy Reed5021e3c2016-06-09 19:18:44 -0700469
Simon Glasse3ee2fb2016-02-22 22:55:43 -0700470config FIT_BEST_MATCH
471 bool "Select the best match for the kernel device tree"
Simon Glasse3ee2fb2016-02-22 22:55:43 -0700472 help
473 When no configuration is explicitly selected, default to the
474 one whose fdt's compatibility field best matches that of
475 U-Boot itself. A match is considered "best" if it matches the
476 most specific compatibility entry of U-Boot's fdt's root node.
477 The order of entries in the configuration's fdt is ignored.
478
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500479config FIT_IMAGE_POST_PROCESS
480 bool "Enable post-processing of FIT artifacts after loading by U-Boot"
481 depends on TI_SECURE_DEVICE
Simon Glasse3ee2fb2016-02-22 22:55:43 -0700482 help
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500483 Allows doing any sort of manipulation to blobs after they got extracted
484 from FIT images like stripping off headers or modifying the size of the
485 blob, verification, authentication, decryption etc. in a platform or
486 board specific way. In order to use this feature a platform or board-
487 specific implementation of board_fit_image_post_process() must be
488 provided. Also, anything done during this post-processing step would
489 need to be comprehended in how the images were prepared before being
490 injected into the FIT creation (i.e. the blobs would have been pre-
491 processed before being added to the FIT image).
492
Tom Rinidf7576b2017-05-22 14:15:16 -0400493if SPL
494
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500495config SPL_FIT
496 bool "Support Flattened Image Tree within SPL"
497 depends on SPL
Andre Przywarad28fda22017-04-26 01:32:38 +0100498 select SPL_OF_LIBFDT
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500499
Marek Vasut9f2e0eb2018-05-13 00:22:52 +0200500config SPL_FIT_PRINT
501 bool "Support FIT printing within SPL"
502 depends on SPL_FIT
503 help
504 Support printing the content of the fitImage in a verbose manner in SPL.
505
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500506config SPL_FIT_SIGNATURE
507 bool "Enable signature verification of FIT firmware within SPL"
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500508 depends on SPL_DM
Andre Przywarad28fda22017-04-26 01:32:38 +0100509 select SPL_FIT
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500510 select SPL_RSA
AKASHI Takahiro2223c7d2020-02-21 15:12:55 +0900511 select SPL_RSA_VERIFY
Heinrich Schuchardte52bd932020-04-15 18:46:21 +0200512 select SPL_IMAGE_SIGN_INFO
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500513
514config SPL_LOAD_FIT
Marek Vasutd10b0a02019-05-25 22:53:42 +0200515 bool "Enable SPL loading U-Boot as a FIT (basic fitImage features)"
Andre Przywarad28fda22017-04-26 01:32:38 +0100516 select SPL_FIT
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500517 help
518 Normally with the SPL framework a legacy image is generated as part
519 of the build. This contains U-Boot along with information as to
520 where it should be loaded. This option instead enables generation
521 of a FIT (Flat Image Tree) which provides more flexibility. In
522 particular it can handle selecting from multiple device tree
523 and passing the correct one to U-Boot.
524
Michal Simekbf703df2019-10-22 16:39:11 +0200525config SPL_LOAD_FIT_APPLY_OVERLAY
526 bool "Enable SPL applying DT overlays from FIT"
527 depends on SPL_LOAD_FIT
528 select OF_LIBFDT_OVERLAY
529 help
530 The device tree is loaded from the FIT image. Allow the SPL is to
531 also load device-tree overlays from the FIT image an apply them
532 over the device tree.
533
Jean-Jacques Hiblot0da58152019-10-22 16:39:13 +0200534config SPL_LOAD_FIT_APPLY_OVERLAY_BUF_SZ
535 depends on SPL_LOAD_FIT_APPLY_OVERLAY
536 default 0x10000
537 hex "size of temporary buffer used to load the overlays"
538 help
539 The size of the area where the overlays will be loaded and
540 uncompress. Must be at least as large as biggest overlay
541 (uncompressed)
542
Marek Vasut06623372018-05-13 00:23:17 +0200543config SPL_LOAD_FIT_FULL
Marek Vasutd10b0a02019-05-25 22:53:42 +0200544 bool "Enable SPL loading U-Boot as a FIT (full fitImage features)"
Marek Vasut06623372018-05-13 00:23:17 +0200545 select SPL_FIT
546 help
547 Normally with the SPL framework a legacy image is generated as part
548 of the build. This contains U-Boot along with information as to
549 where it should be loaded. This option instead enables generation
550 of a FIT (Flat Image Tree) which provides more flexibility. In
551 particular it can handle selecting from multiple device tree
552 and passing the correct one to U-Boot.
553
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500554config SPL_FIT_IMAGE_POST_PROCESS
555 bool "Enable post-processing of FIT artifacts after loading by the SPL"
ext-vasily.gurevich@vaisala.comd1659de2017-10-02 13:42:55 +0000556 depends on SPL_LOAD_FIT
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500557 help
558 Allows doing any sort of manipulation to blobs after they got extracted
559 from the U-Boot FIT image like stripping off headers or modifying the
560 size of the blob, verification, authentication, decryption etc. in a
561 platform or board specific way. In order to use this feature a platform
562 or board-specific implementation of board_fit_image_post_process() must
563 be provided. Also, anything done during this post-processing step would
564 need to be comprehended in how the images were prepared before being
565 injected into the FIT creation (i.e. the blobs would have been pre-
566 processed before being added to the FIT image).
567
Andre Przywara0f6456d2017-04-26 01:32:45 +0100568config SPL_FIT_SOURCE
569 string ".its source file for U-Boot FIT image"
570 depends on SPL_FIT
571 help
572 Specifies a (platform specific) FIT source file to generate the
573 U-Boot FIT image. This could specify further image to load and/or
574 execute.
575
576config SPL_FIT_GENERATOR
577 string ".its file generator script for U-Boot FIT image"
578 depends on SPL_FIT
Andre Przywarad8362162017-04-26 01:32:48 +0100579 default "board/sunxi/mksunxi_fit_atf.sh" if SPL_LOAD_FIT && ARCH_SUNXI
Jagan Tekidb5e44f2019-05-08 11:11:42 +0530580 default "arch/arm/mach-rockchip/make_fit_atf.py" if SPL_LOAD_FIT && ARCH_ROCKCHIP
Michal Simeka7178b72019-10-02 15:55:57 +0200581 default "arch/arm/mach-zynqmp/mkimage_fit_atf.sh" if SPL_LOAD_FIT && ARCH_ZYNQMP
Lukas Auer982fba62019-08-21 21:14:48 +0200582 default "arch/riscv/lib/mkimage_fit_opensbi.sh" if SPL_LOAD_FIT && RISCV
Andre Przywara0f6456d2017-04-26 01:32:45 +0100583 help
584 Specifies a (platform specific) script file to generate the FIT
585 source file used to build the U-Boot FIT image file. This gets
586 passed a list of supported device tree file stub names to
587 include in the generated image.
588
Tom Rinidf7576b2017-05-22 14:15:16 -0400589endif # SPL
590
Robert P. J. Daye4829f32017-01-02 16:32:13 -0500591endif # FIT
Simon Glasse3ee2fb2016-02-22 22:55:43 -0700592
Tom Rinic220bd92019-05-23 07:14:07 -0400593config LEGACY_IMAGE_FORMAT
Alex Kiernan0419a9b2018-04-20 21:25:38 +0000594 bool "Enable support for the legacy image format"
595 default y if !FIT_SIGNATURE
596 help
597 This option enables the legacy image format. It is enabled by
598 default for backward compatibility, unless FIT_SIGNATURE is
599 set where it is disabled so that unsigned images cannot be
600 loaded. If a board needs the legacy image format support in this
601 case, enable it here.
602
Simon Glasse3ee2fb2016-02-22 22:55:43 -0700603config OF_BOARD_SETUP
604 bool "Set up board-specific details in device tree before boot"
605 depends on OF_LIBFDT
606 help
607 This causes U-Boot to call ft_board_setup() before booting into
608 the Operating System. This function can set up various
609 board-specific information in the device tree for use by the OS.
610 The device tree is then passed to the OS.
611
612config OF_SYSTEM_SETUP
613 bool "Set up system-specific details in device tree before boot"
614 depends on OF_LIBFDT
615 help
616 This causes U-Boot to call ft_system_setup() before booting into
617 the Operating System. This function can set up various
618 system-specific information in the device tree for use by the OS.
619 The device tree is then passed to the OS.
620
621config OF_STDOUT_VIA_ALIAS
622 bool "Update the device-tree stdout alias from U-Boot"
623 depends on OF_LIBFDT
624 help
625 This uses U-Boot's serial alias from the aliases node to update
626 the device tree passed to the OS. The "linux,stdout-path" property
627 in the chosen node is set to point to the correct serial node.
628 This option currently references CONFIG_CONS_INDEX, which is
629 incorrect when used with device tree as this option does not
630 exist / should not be used.
Masahiro Yamadaa7fa7462014-11-13 19:29:06 +0900631
Masahiro Yamada804bc5e2014-07-30 14:08:15 +0900632config SYS_EXTRA_OPTIONS
633 string "Extra Options (DEPRECATED)"
Masahiro Yamada804bc5e2014-07-30 14:08:15 +0900634 help
635 The old configuration infrastructure (= mkconfig + boards.cfg)
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +0900636 provided the extra options field. If you have something like
Masahiro Yamada804bc5e2014-07-30 14:08:15 +0900637 "HAS_BAR,BAZ=64", the optional options
638 #define CONFIG_HAS
639 #define CONFIG_BAZ 64
640 will be defined in include/config.h.
641 This option was prepared for the smooth migration from the old
642 configuration to Kconfig. Since this option will be removed sometime,
643 new boards should not use this option.
644
Simon Glass20af0ff2019-12-06 21:42:29 -0700645config HAVE_SYS_TEXT_BASE
646 bool
Tom Rini07edfae2018-02-03 12:10:38 -0500647 depends on !NIOS2 && !XTENSA
Ben Stoltzb7e41242015-08-04 12:33:41 -0600648 depends on !EFI_APP
Simon Glass20af0ff2019-12-06 21:42:29 -0700649 default y
650
651config SYS_TEXT_BASE
652 depends on HAVE_SYS_TEXT_BASE
Lokesh Vutla9bdec002018-08-27 15:57:08 +0530653 default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3
Andre Przywara5e0560c2018-03-03 23:49:02 +0000654 default 0x4a000000 if ARCH_SUNXI && !MACH_SUN9I && !MACH_SUN8I_V3S
655 default 0x2a000000 if ARCH_SUNXI && MACH_SUN9I
656 default 0x42e00000 if ARCH_SUNXI && MACH_SUN8I_V3S
Masahiro Yamadac02a3272014-10-30 15:30:58 +0900657 hex "Text Base"
658 help
Tom Rini07edfae2018-02-03 12:10:38 -0500659 The address in memory that U-Boot will be running from, initially.
Masahiro Yamadac02a3272014-10-30 15:30:58 +0900660
Alexey Brodkin693744a2015-01-13 18:49:01 +0300661config SYS_CLK_FREQ
Mario Sixd10f3182019-01-21 09:17:53 +0100662 depends on ARC || ARCH_SUNXI || MPC83xx
Alexey Brodkin693744a2015-01-13 18:49:01 +0300663 int "CPU clock frequency"
664 help
665 TODO: Move CONFIG_SYS_CLK_FREQ for all the architecture
666
Masahiro Yamadaf6aa39e2016-11-26 11:02:10 +0900667config ARCH_FIXUP_FDT_MEMORY
668 bool "Enable arch_fixup_memory_banks() call"
Michal Simek8ff86892016-07-28 09:06:41 +0200669 default y
670 help
671 Enable FDT memory map syncup before OS boot. This feature can be
672 used for booting OS with different memory setup where the part of
673 the memory location should be used for different purpose.
674
Masahiro Yamada6ea06e62014-08-22 19:42:27 +0900675endmenu # Boot images
Masahiro Yamada804bc5e2014-07-30 14:08:15 +0900676
Emmanuel Vadotaa020992017-01-31 12:17:04 +0100677source "api/Kconfig"
678
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +0900679source "common/Kconfig"
680
Simon Glass29499a02016-01-17 20:53:51 -0700681source "cmd/Kconfig"
682
Patrick Delaunaydc280602017-01-27 11:00:35 +0100683source "disk/Kconfig"
684
Masahiro Yamada9fadbc82014-09-22 19:59:05 +0900685source "dts/Kconfig"
686
Simon Glass547cb402017-08-03 12:21:49 -0600687source "env/Kconfig"
688
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +0900689source "net/Kconfig"
690
691source "drivers/Kconfig"
692
693source "fs/Kconfig"
694
695source "lib/Kconfig"
Simon Glass9dd430d2015-02-05 21:41:37 -0700696
697source "test/Kconfig"