]>
Commit | Line | Data |
---|---|---|
51631259 MY |
1 | # |
2 | # For a description of the syntax of this configuration file, | |
59d7c34b RD |
3 | # see the file Documentation/kbuild/kconfig-language.txt in the |
4 | # Linux kernel source tree. | |
51631259 | 5 | # |
5972ff07 | 6 | mainmenu "U-Boot $(UBOOTVERSION) Configuration" |
51631259 | 7 | |
a9610bd8 TR |
8 | source "scripts/Kconfig.include" |
9 | ||
66afaef2 SG |
10 | # Allow defaults in arch-specific code to override any given here |
11 | source "arch/Kconfig" | |
12 | ||
51631259 MY |
13 | menu "General setup" |
14 | ||
4c7a2110 HS |
15 | config BROKEN |
16 | bool | |
17 | help | |
18 | This option cannot be enabled. It is used as dependency | |
19 | for broken and incomplete features. | |
20 | ||
524e98a7 TR |
21 | config 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 | ||
e91c3c33 MY |
28 | config LOCALVERSION |
29 | string "Local version - append to U-Boot release" | |
e91c3c33 MY |
30 | help |
31 | Append an extra string to the end of your U-Boot version. | |
59d7c34b | 32 | This will show up in your boot log, for example. |
e91c3c33 MY |
33 | 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 | ||
38 | config LOCALVERSION_AUTO | |
39 | bool "Automatically append version information to the version string" | |
e91c3c33 MY |
40 | default y |
41 | help | |
42 | This will try to automatically determine if the current tree is a | |
59d7c34b | 43 | release tree by looking for Git tags that belong to the current |
e91c3c33 MY |
44 | top of tree revision. |
45 | ||
46 | A string of the format -gxxxxxxxx will be added to the localversion | |
59d7c34b | 47 | if a Git-based tree is found. The string generated by this will be |
e91c3c33 MY |
48 | 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 | ||
4a8ed8e2 MY |
58 | config CC_OPTIMIZE_FOR_SIZE |
59 | bool "Optimize for size" | |
4a8ed8e2 MY |
60 | 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 | ||
1f1a0f3d | 67 | config OPTIMIZE_INLINING |
72c4d40d TR |
68 | 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 | ||
76 | config 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 | ||
86 | config TPL_OPTIMIZE_INLINING | |
87 | bool "Allow compiler to uninline functions marked 'inline' in TPL" | |
88 | depends on TPL | |
1f1a0f3d TR |
89 | 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 | ||
52ff8020 CG |
96 | config 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 | ||
67f51b40 TR |
103 | config CC_HAS_ASM_INLINE |
104 | def_bool $(success,echo 'void foo(void) { asm inline (""); }' | $(CC) -x c - -c -o /dev/null) | |
105 | ||
9f823615 HG |
106 | config DISTRO_DEFAULTS |
107 | bool "Select defaults suitable for booting general purpose Linux distributions" | |
58008cba MS |
108 | select AUTO_COMPLETE |
109 | select CMDLINE_EDITING | |
26959271 | 110 | select CMD_BOOTI if ARM64 |
58008cba | 111 | select CMD_BOOTZ if ARM && !ARM64 |
ba628855 | 112 | select CMD_DHCP if CMD_NET |
c4f66832 | 113 | select CMD_ENV_EXISTS |
9f823615 HG |
114 | select CMD_EXT2 |
115 | select CMD_EXT4 | |
116 | select CMD_FAT | |
117 | select CMD_FS_GENERIC | |
fa2c1467 | 118 | select CMD_PART if PARTITIONS |
58008cba MS |
119 | select CMD_PING if CMD_NET |
120 | select CMD_PXE if NET | |
993c912d | 121 | select CMD_SYSBOOT |
58008cba | 122 | select ENV_VARS_UBOOT_CONFIG |
9f823615 | 123 | select HUSH_PARSER |
d021e942 | 124 | select SUPPORT_RAW_INITRD |
58008cba MS |
125 | select SYS_LONGHELP |
126 | imply CMD_MII if NET | |
4aa74926 | 127 | imply USB_STORAGE |
58008cba | 128 | imply USE_BOOTCOMMAND |
9f823615 HG |
129 | 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 | ||
d021e942 AF |
133 | config 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 | ||
999a772d RF |
146 | config NR_DRAM_BANKS |
147 | int "Number of DRAM banks" | |
d5c819b8 | 148 | default 1 if ARCH_SUNXI || ARCH_OWL |
999a772d RF |
149 | default 4 |
150 | help | |
151 | This defines the number of DRAM banks. | |
152 | ||
405fc830 DW |
153 | config 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 | ||
159 | config 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 | ||
b724bd7d SG |
165 | config SYS_MALLOC_F |
166 | bool "Enable malloc() pool before relocation" | |
326a6823 | 167 | default y if DM |
15a5c72c | 168 | |
b724bd7d | 169 | help |
59d7c34b | 170 | Before relocation, memory is very limited on many platforms. Still, |
b724bd7d SG |
171 | 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 | ||
175 | config SYS_MALLOC_F_LEN | |
176 | hex "Size of malloc() pool before relocation" | |
177 | depends on SYS_MALLOC_F | |
90e407ae | 178 | default 0x1000 if AM33XX |
15a5c72c | 179 | default 0x2800 if SANDBOX |
08919d38 | 180 | default 0x2000 if (ARCH_IMX8 || ARCH_IMX8M || ARCH_MX7 || \ |
6089d8ab BL |
181 | ARCH_MX7ULP || ARCH_MX6 || ARCH_MX5 || \ |
182 | ARCH_LS1012A || ARCH_LS1021A || ARCH_LS1043A || \ | |
5b60326b | 183 | ARCH_LS1046A || ARCH_QEMU) |
b724bd7d SG |
184 | default 0x400 |
185 | help | |
59d7c34b | 186 | Before relocation, memory is very limited on many platforms. Still, |
b724bd7d SG |
187 | 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 | ||
01aa5b8f SDPP |
191 | config SYS_MALLOC_LEN |
192 | hex "Define memory for Dynamic allocation" | |
4d2c5723 KY |
193 | depends on ARCH_ZYNQ || ARCH_VERSAL || ARCH_STM32MP || ARCH_ROCKCHIP |
194 | default 0x2000000 if ARCH_ROCKCHIP | |
01aa5b8f SDPP |
195 | help |
196 | This defines memory to be allocated for Dynamic allocation | |
197 | TODO: Use for other architectures | |
198 | ||
f1896c45 | 199 | config SPL_SYS_MALLOC_F_LEN |
14aa210c | 200 | hex "Size of malloc() pool in SPL before relocation" |
05705566 | 201 | depends on SYS_MALLOC_F && SPL |
5602330d | 202 | default 0x2800 if RCAR_GEN3 |
14aa210c MS |
203 | 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. | |
ae2cee2e PT |
209 | |
210 | config TPL_SYS_MALLOC_F_LEN | |
14aa210c | 211 | hex "Size of malloc() pool in TPL before relocation" |
05705566 | 212 | depends on SYS_MALLOC_F && TPL |
14aa210c MS |
213 | 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. | |
f1896c45 | 219 | |
1bf0979f | 220 | menuconfig EXPERT |
0aa8a4ad PM |
221 | 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. | |
59d7c34b | 227 | Use this only if you really know what you are doing. |
0aa8a4ad PM |
228 | |
229 | if 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. | |
238 | ||
239 | 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 | |
59d7c34b | 244 | should be replaced by calloc - if one expects zeroed memory. |
022885cb | 245 | |
9297e366 MB |
246 | config 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 | ||
022885cb SG |
260 | config 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 | ||
266aa86b | 268 | endif # EXPERT |
bb6b142f MY |
269 | |
270 | config 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 | |
3aeb771c | 275 | large physical address extension on 32bit SoCs. |
bb6b142f | 276 | |
871aa41d HS |
277 | config 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. | |
480e4115 | 284 | Please, see doc/arch/x86.rst for details. |
871aa41d | 285 | |
9ea6f718 SR |
286 | config 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" | |
05705566 | 290 | depends on SPL |
9ea6f718 SR |
291 | 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 | ||
dc146ca1 JT |
297 | config BUILD_TARGET |
298 | string "Build target special images" | |
e3ada91e DW |
299 | default "u-boot-with-spl.sfp" if TARGET_SOCFPGA_ARRIA10 |
300 | default "u-boot-with-spl.sfp" if TARGET_SOCFPGA_GEN5 | |
0ef69208 | 301 | default "u-boot-spl.kwb" if ARCH_MVEBU && SPL |
dc146ca1 | 302 | default "u-boot-elf.srec" if RCAR_GEN3 |
d8765e24 | 303 | default "u-boot.itb" if SPL_LOAD_FIT && (ARCH_ROCKCHIP || \ |
5b21d648 | 304 | ARCH_SUNXI || RISCV || ARCH_ZYNQMP) |
bb0fb4c0 | 305 | default "u-boot.kwb" if ARCH_KIRKWOOD |
9ea6f718 | 306 | default "u-boot-with-spl.bin" if ARCH_AT91 && SPL_NAND_SUPPORT |
4f761dd2 | 307 | default "u-boot-with-spl.imx" if ARCH_MX6 && SPL |
dc146ca1 JT |
308 | 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 | ||
d760a5ef TR |
315 | config 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 | ||
325 | config 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 | ||
93db2b83 SG |
332 | config 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 | ||
e14ba8a5 MS |
346 | config PLATFORM_ELFENTRY |
347 | string | |
348 | default "__start" if MIPS | |
349 | default "_start" | |
350 | ||
40ad4c4b MY |
351 | endmenu # General setup |
352 | ||
e91c3c33 MY |
353 | menu "Boot images" |
354 | ||
48f6232e TR |
355 | config 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 | ||
b6cf4439 MY |
362 | config FIT |
363 | bool "Support Flattened Image Tree" | |
aeb9c53c | 364 | select MD5 |
089df18b | 365 | select SHA1 |
b6cf4439 | 366 | help |
266aa86b | 367 | This option allows you to boot the new uImage structure, |
b6cf4439 MY |
368 | 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, | |
1f9ac4a4 | 371 | pass the address of the blob to the "bootm" command. |
73223f0e SG |
372 | FIT is very flexible, supporting compression, multiple images, |
373 | multiple configurations, verification through hashing and also | |
266aa86b | 374 | verified boot (secure boot using RSA). |
b6cf4439 | 375 | |
266aa86b | 376 | if FIT |
b6cf4439 | 377 | |
3814fcba | 378 | config FIT_EXTERNAL_OFFSET |
f07ce598 | 379 | hex "FIT external data offset" |
3814fcba PF |
380 | 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 | ||
0db7f685 TR |
388 | config FIT_ENABLE_SHA256_SUPPORT |
389 | bool "Support SHA256 checksum of FIT image contents" | |
390 | default y | |
58008cba | 391 | select SHA256 |
0db7f685 TR |
392 | 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 | |
d16b38f4 RD |
395 | the image contents have not been corrupted. |
396 | ||
397 | config 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 | ||
407 | config 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. | |
0db7f685 | 415 | |
b6cf4439 | 416 | config FIT_SIGNATURE |
c4beb22f | 417 | bool "Enable signature verification of FIT uImages" |
9009798d | 418 | depends on DM |
535adee8 | 419 | select HASH |
58008cba | 420 | select RSA |
b983cc2d AT |
421 | select RSA_VERIFY |
422 | select IMAGE_SIGN_INFO | |
b6cf4439 MY |
423 | help |
424 | This option enables signature verification of FIT uImages, | |
94e3c8c4 | 425 | using a hash signed and verified using RSA. If |
426 | CONFIG_SHA_PROG_HW_ACCEL is defined, i.e support for progressive | |
266aa86b | 427 | hashing is available using hardware, then the RSA library will use |
73223f0e SG |
428 | 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 | |
c76c93a3 | 434 | CONFIG_LEGACY_IMAGE_FORMAT. |
73223f0e | 435 | |
72239fc8 TR |
436 | config 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 | ||
061daa0b PR |
446 | config 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 | ||
7298e422 PR |
454 | config 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 | ||
266aa86b RD |
462 | config 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. | |
51c14cd1 | 469 | |
73223f0e SG |
470 | config FIT_BEST_MATCH |
471 | bool "Select the best match for the kernel device tree" | |
73223f0e SG |
472 | 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 | ||
266aa86b RD |
479 | config FIT_IMAGE_POST_PROCESS |
480 | bool "Enable post-processing of FIT artifacts after loading by U-Boot" | |
481 | depends on TI_SECURE_DEVICE | |
73223f0e | 482 | help |
266aa86b RD |
483 | 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 | ||
71139113 TR |
493 | if SPL |
494 | ||
266aa86b RD |
495 | config SPL_FIT |
496 | bool "Support Flattened Image Tree within SPL" | |
497 | depends on SPL | |
85c07a5a | 498 | select SPL_OF_LIBFDT |
266aa86b | 499 | |
b527b9c6 MV |
500 | config 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 | ||
266aa86b RD |
506 | config SPL_FIT_SIGNATURE |
507 | bool "Enable signature verification of FIT firmware within SPL" | |
266aa86b | 508 | depends on SPL_DM |
85c07a5a | 509 | select SPL_FIT |
266aa86b | 510 | select SPL_RSA |
b983cc2d | 511 | select SPL_RSA_VERIFY |
6441164d | 512 | select SPL_IMAGE_SIGN_INFO |
266aa86b RD |
513 | |
514 | config SPL_LOAD_FIT | |
2a221fb6 | 515 | bool "Enable SPL loading U-Boot as a FIT (basic fitImage features)" |
85c07a5a | 516 | select SPL_FIT |
266aa86b RD |
517 | 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 | ||
9d13b872 MS |
525 | config 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 | ||
ea376ebc JJH |
534 | config 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 | ||
8a9dc16e | 543 | config SPL_LOAD_FIT_FULL |
2a221fb6 | 544 | bool "Enable SPL loading U-Boot as a FIT (full fitImage features)" |
8a9dc16e MV |
545 | 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 | ||
266aa86b RD |
554 | config SPL_FIT_IMAGE_POST_PROCESS |
555 | bool "Enable post-processing of FIT artifacts after loading by the SPL" | |
c12d8b7d | 556 | depends on SPL_LOAD_FIT |
266aa86b RD |
557 | 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 | ||
1a12fdc4 AP |
568 | config 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 | ||
576 | config SPL_FIT_GENERATOR | |
577 | string ".its file generator script for U-Boot FIT image" | |
578 | depends on SPL_FIT | |
d29adf8e | 579 | default "board/sunxi/mksunxi_fit_atf.sh" if SPL_LOAD_FIT && ARCH_SUNXI |
695dca9a | 580 | default "arch/arm/mach-rockchip/make_fit_atf.py" if SPL_LOAD_FIT && ARCH_ROCKCHIP |
5b21d648 | 581 | default "arch/arm/mach-zynqmp/mkimage_fit_atf.sh" if SPL_LOAD_FIT && ARCH_ZYNQMP |
109f82be | 582 | default "arch/riscv/lib/mkimage_fit_opensbi.sh" if SPL_LOAD_FIT && RISCV |
1a12fdc4 AP |
583 | 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 | ||
71139113 TR |
589 | endif # SPL |
590 | ||
266aa86b | 591 | endif # FIT |
73223f0e | 592 | |
c76c93a3 | 593 | config LEGACY_IMAGE_FORMAT |
002c3234 AK |
594 | 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 | ||
73223f0e SG |
603 | config 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 | ||
612 | config 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 | ||
621 | config 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. | |
b6cf4439 | 631 | |
51631259 MY |
632 | config SYS_EXTRA_OPTIONS |
633 | string "Extra Options (DEPRECATED)" | |
51631259 MY |
634 | help |
635 | The old configuration infrastructure (= mkconfig + boards.cfg) | |
ed36323f | 636 | provided the extra options field. If you have something like |
51631259 MY |
637 | "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 | ||
b3112952 SG |
645 | config HAVE_SYS_TEXT_BASE |
646 | bool | |
278b90ce | 647 | depends on !NIOS2 && !XTENSA |
484cce0d | 648 | depends on !EFI_APP |
b3112952 SG |
649 | default y |
650 | ||
651 | config SYS_TEXT_BASE | |
652 | depends on HAVE_SYS_TEXT_BASE | |
586bde93 | 653 | default 0x80800000 if ARCH_OMAP2PLUS || ARCH_K3 |
341c0586 AP |
654 | 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 | |
7f7563ce MY |
657 | hex "Text Base" |
658 | help | |
278b90ce | 659 | The address in memory that U-Boot will be running from, initially. |
7f7563ce | 660 | |
33d88183 | 661 | config SYS_CLK_FREQ |
ff3bb0c4 | 662 | depends on ARC || ARCH_SUNXI || MPC83xx |
33d88183 AB |
663 | int "CPU clock frequency" |
664 | help | |
665 | TODO: Move CONFIG_SYS_CLK_FREQ for all the architecture | |
666 | ||
63c09417 MY |
667 | config ARCH_FIXUP_FDT_MEMORY |
668 | bool "Enable arch_fixup_memory_banks() call" | |
e2f88dfd MS |
669 | 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 | ||
e91c3c33 | 675 | endmenu # Boot images |
51631259 | 676 | |
4db98d3d EV |
677 | source "api/Kconfig" |
678 | ||
ed36323f MY |
679 | source "common/Kconfig" |
680 | ||
72a8cf8d SG |
681 | source "cmd/Kconfig" |
682 | ||
e274ef6b PD |
683 | source "disk/Kconfig" |
684 | ||
783e6a72 MY |
685 | source "dts/Kconfig" |
686 | ||
0649cd0d SG |
687 | source "env/Kconfig" |
688 | ||
ed36323f MY |
689 | source "net/Kconfig" |
690 | ||
691 | source "drivers/Kconfig" | |
692 | ||
693 | source "fs/Kconfig" | |
694 | ||
695 | source "lib/Kconfig" | |
1967982a SG |
696 | |
697 | source "test/Kconfig" |