blob: 56ffdfa183964c6a5dab81378aaadb2c128bc26c [file] [log] [blame]
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +09001menu "Library routines"
2
Marek Szyprowski795dc7d2020-06-03 14:43:40 +02003config ADDR_MAP
4 bool "Enable support for non-identity virtual-physical mappings"
5 help
6 Enables helper code for implementing non-identity virtual-physical
7 memory mappings for 32bit CPUs.
8
Bin Meng0a5fee52021-02-25 17:22:36 +08009 This library only works in the post-relocation phase.
10
Marek Szyprowski795dc7d2020-06-03 14:43:40 +020011config SYS_NUM_ADDR_MAP
12 int "Size of the address-map table"
13 depends on ADDR_MAP
14 default 16
15 help
16 Sets the number of entries in the virtual-physical mapping table.
17
Tom Rini1f173632022-11-16 13:10:38 -050018config SYS_TIMER_COUNTS_DOWN
Marek Vasut88e5a202023-03-19 04:13:02 +010019 bool "System timer counts down rather than up"
Tom Rini1f173632022-11-16 13:10:38 -050020
Simon Glassef9e7622021-11-24 09:26:42 -070021config PHYSMEM
22 bool "Access to physical memory region (> 4G)"
23 help
24 Some basic support is provided for operations on memory not
25 normally accessible to 32-bit U-Boot - e.g. some architectures
26 support access to more than 4G of memory on 32-bit
27 machines using physical address extension or similar.
28 Enable this to access this basic support, which only supports clearing
29 the memory.
30
Adam Ford02bf5362017-08-11 09:46:05 -050031config BCH
32 bool "Enable Software based BCH ECC"
33 help
34 Enables software based BCH ECC algorithm present in lib/bch.c
35 This is used by SoC platforms which do not have built-in ELM
36 hardware engine required for BCH ECC correction.
37
Simon Glassdd7fb9b2019-12-06 21:41:34 -070038config BINMAN_FDT
39 bool "Allow access to binman information in the device tree"
Bin Mengc5e8b312021-02-03 21:20:02 +080040 depends on BINMAN && DM && OF_CONTROL
Bin Mengc9155f12021-05-10 20:23:36 +080041 default y if OF_SEPARATE || OF_EMBED
Simon Glassdd7fb9b2019-12-06 21:41:34 -070042 help
43 This enables U-Boot to access information about binman entries,
44 stored in the device tree in a binman node. Typical uses are to
45 locate entries in the firmware image. See binman.h for the available
46 functionality.
47
Masahiro Yamada3f053fe2014-09-16 16:32:59 +090048config CC_OPTIMIZE_LIBS_FOR_SPEED
49 bool "Optimize libraries for speed"
50 help
51 Enabling this option will pass "-O2" to gcc when compiling
52 under "lib" directory.
53
54 If unsure, say N.
55
Simon Glassc17db992021-07-02 12:36:17 -060056config CHARSET
57 bool
Simon Glassc17db992021-07-02 12:36:17 -060058
Faiz Abbas6199fb12018-02-06 19:15:58 +053059config DYNAMIC_CRC_TABLE
60 bool "Enable Dynamic tables for CRC"
61 help
62 Enable this option to calculate entries for CRC tables at runtime.
63 This can be helpful when reducing the size of the build image
64
Bin Mengb95e9db2018-10-15 02:21:15 -070065config HAVE_ARCH_IOMAP
66 bool
67 help
68 Enable this option if architecture provides io{read,write}{8,16,32}
69 I/O accessor functions.
70
Masahiro Yamada9520b712014-10-24 01:30:43 +090071config HAVE_PRIVATE_LIBGCC
72 bool
73
Adam Ford70c8f052018-02-06 12:14:28 -060074config LIB_UUID
75 bool
Caleb Connolly2f4f0be2024-08-30 13:34:32 +010076 select SHA1
Adam Ford70c8f052018-02-06 12:14:28 -060077
AKASHI Takahirod1e31582023-10-26 14:31:31 -040078config RANDOM_UUID
79 bool "GPT Random UUID generation"
80 select LIB_UUID
81 help
82 Enable the generation of partitions with random UUIDs if none
83 are provided.
84
Simon Glass8090d8d2023-02-22 09:34:11 -070085config SPL_LIB_UUID
86 depends on SPL
87 bool
88
Kautuk Consula51bb742022-12-07 17:12:34 +053089config SEMIHOSTING
90 bool "Support semihosting"
Kautuk Consulc86cb4a2022-12-07 17:12:35 +053091 depends on ARM || RISCV
Kautuk Consula51bb742022-12-07 17:12:34 +053092 help
93 Semihosting is a method for a target to communicate with a host
94 debugger. It uses special instructions which the debugger will trap
95 on and interpret. This allows U-Boot to read/write files, print to
96 the console, and execute arbitrary commands on the host system.
97
98 Enabling this option will add support for reading and writing files
99 on the host system. If you don't have a debugger attached then trying
100 to do this will likely cause U-Boot to hang. Say 'n' if you are unsure.
101
102config SEMIHOSTING_FALLBACK
103 bool "Recover gracefully when semihosting fails"
Sean Andersonbf641f22023-10-27 16:40:15 -0400104 depends on SEMIHOSTING
Kautuk Consula51bb742022-12-07 17:12:34 +0530105 default y
106 help
107 Normally, if U-Boot makes a semihosting call and no debugger is
108 attached, then it will panic due to a synchronous abort
109 exception. This config adds an exception handler which will allow
110 U-Boot to recover. Say 'y' if unsure.
111
112config SPL_SEMIHOSTING
113 bool "Support semihosting in SPL"
Kautuk Consulc86cb4a2022-12-07 17:12:35 +0530114 depends on SPL && (ARM || RISCV)
Kautuk Consula51bb742022-12-07 17:12:34 +0530115 help
116 Semihosting is a method for a target to communicate with a host
117 debugger. It uses special instructions which the debugger will trap
118 on and interpret. This allows U-Boot to read/write files, print to
119 the console, and execute arbitrary commands on the host system.
120
121 Enabling this option will add support for reading and writing files
122 on the host system. If you don't have a debugger attached then trying
123 to do this will likely cause U-Boot to hang. Say 'n' if you are unsure.
124
125config SPL_SEMIHOSTING_FALLBACK
126 bool "Recover gracefully when semihosting fails in SPL"
Sean Andersonbf641f22023-10-27 16:40:15 -0400127 depends on SPL_SEMIHOSTING
Kautuk Consulc86cb4a2022-12-07 17:12:35 +0530128 select ARMV8_SPL_EXCEPTION_VECTORS if ARM64
Kautuk Consula51bb742022-12-07 17:12:34 +0530129 default y
130 help
131 Normally, if U-Boot makes a semihosting call and no debugger is
132 attached, then it will panic due to a synchronous abort
133 exception. This config adds an exception handler which will allow
134 U-Boot to recover. Say 'y' if unsure.
135
Alex Kiernan5b404282018-04-19 04:32:54 +0000136config PRINTF
137 bool
138 default y
139
140config SPL_PRINTF
141 bool
142 select SPL_SPRINTF
Simon Glass7611ac62019-09-25 08:56:27 -0600143 select SPL_STRTO if !SPL_USE_TINY_PRINTF
Alex Kiernan5b404282018-04-19 04:32:54 +0000144
145config TPL_PRINTF
146 bool
147 select TPL_SPRINTF
Simon Glass7611ac62019-09-25 08:56:27 -0600148 select TPL_STRTO if !TPL_USE_TINY_PRINTF
Alex Kiernan5b404282018-04-19 04:32:54 +0000149
Simon Glasse7ca7da2022-04-30 00:56:53 -0600150config VPL_PRINTF
151 bool
152 select VPL_SPRINTF
153 select VPL_STRTO if !VPL_USE_TINY_PRINTF
154
Alex Kiernan5b404282018-04-19 04:32:54 +0000155config SPRINTF
156 bool
157 default y
158
159config SPL_SPRINTF
160 bool
161
162config TPL_SPRINTF
163 bool
164
Simon Glasse7ca7da2022-04-30 00:56:53 -0600165config VPL_SPRINTF
166 bool
167
Andrii Anisov6e29ac42020-08-06 12:42:52 +0300168config SSCANF
169 bool
Andrii Anisov6e29ac42020-08-06 12:42:52 +0300170
Alex Kiernan5b404282018-04-19 04:32:54 +0000171config STRTO
172 bool
173 default y
174
175config SPL_STRTO
176 bool
177
178config TPL_STRTO
179 bool
180
Simon Glasse7ca7da2022-04-30 00:56:53 -0600181config VPL_STRTO
182 bool
183
Alex Kiernanc568bcb2018-05-29 15:30:52 +0000184config IMAGE_SPARSE
185 bool
186
187config IMAGE_SPARSE_FILLBUF_SIZE
188 hex "Android sparse image CHUNK_TYPE_FILL buffer size"
189 default 0x80000
190 depends on IMAGE_SPARSE
191 help
192 Set the size of the fill buffer used when processing CHUNK_TYPE_FILL
193 chunks.
194
Masahiro Yamada9520b712014-10-24 01:30:43 +0900195config USE_PRIVATE_LIBGCC
196 bool "Use private libgcc"
197 depends on HAVE_PRIVATE_LIBGCC
Marek Vasut4e0126e2016-05-26 18:01:47 +0200198 default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS)
Masahiro Yamada9520b712014-10-24 01:30:43 +0900199 help
200 This option allows you to use the built-in libgcc implementation
Masahiro Yamada1c6a5e42016-03-30 20:17:42 +0900201 of U-Boot instead of the one provided by the compiler.
Masahiro Yamada9520b712014-10-24 01:30:43 +0900202 If unsure, say N.
203
Masahiro Yamadae301fa02014-10-24 01:30:40 +0900204config SYS_HZ
205 int
206 default 1000
207 help
208 The frequency of the timer returned by get_timer().
209 get_timer() must operate in milliseconds and this option must be
210 set to 1000.
211
Simon Glass7611ac62019-09-25 08:56:27 -0600212config SPL_USE_TINY_PRINTF
Thomas Hebb0c12fb52019-11-10 08:23:53 -0800213 bool "Enable tiny printf() version in SPL"
Simon Glass7611ac62019-09-25 08:56:27 -0600214 depends on SPL
Tom Rinid0502b72019-06-08 12:46:18 -0400215 default y
Stefan Roese363ab7b2015-11-23 07:00:22 +0100216 help
217 This option enables a tiny, stripped down printf version.
218 This should only be used in space limited environments,
219 like SPL versions with hard memory limits. This version
220 reduces the code size by about 2.5KiB on armv7.
221
222 The supported format specifiers are %c, %s, %u/%d and %x.
223
Simon Glass7611ac62019-09-25 08:56:27 -0600224config TPL_USE_TINY_PRINTF
Thomas Hebb0c12fb52019-11-10 08:23:53 -0800225 bool "Enable tiny printf() version in TPL"
Simon Glass7611ac62019-09-25 08:56:27 -0600226 depends on TPL
227 default y if SPL_USE_TINY_PRINTF
228 help
229 This option enables a tiny, stripped down printf version.
230 This should only be used in space limited environments,
231 like SPL versions with hard memory limits. This version
232 reduces the code size by about 2.5KiB on armv7.
233
234 The supported format specifiers are %c, %s, %u/%d and %x.
235
Simon Glasse7ca7da2022-04-30 00:56:53 -0600236config VPL_USE_TINY_PRINTF
237 bool "Enable tiny printf() version for VPL"
238 depends on VPL
239 help
240 This option enables a tiny, stripped down printf version.
241 This should only be used in space limited environments,
242 like SPL versions with hard memory limits. This version
243 reduces the code size by about 2.5KiB on armv7.
244
245 The supported format specifiers are %c, %s, %u/%d and %x.
246
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900247config PANIC_HANG
248 bool "Do not reset the system on fatal error"
249 help
250 Define this option to stop the system in case of a fatal error,
251 so that you have to reset it manually. This is probably NOT a good
252 idea for an embedded system where you want the system to reboot
253 automatically as fast as possible, but it may be useful during
254 development since you can try to debug the conditions that lead to
255 the situation.
256
Joe Hershberger937d3e82015-04-21 17:02:42 -0500257config REGEX
258 bool "Enable regular expression support"
Joe Hershberger8ab8b722015-06-22 17:57:36 -0500259 default y if NET
Joe Hershberger937d3e82015-04-21 17:02:42 -0500260 help
261 If this variable is defined, U-Boot is linked against the
262 SLRE (Super Light Regular Expression) library, which adds
263 regex support to some commands, for example "env grep" and
264 "setexpr".
265
Adam Ford38003a62018-02-06 10:18:18 -0600266choice
267 prompt "Pseudo-random library support type"
Heinrich Schuchardtb2e67a22020-01-19 19:28:12 +0100268 depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID || \
Heinrich Schuchardtba9c44e2020-11-20 12:55:22 +0100269 RNG_SANDBOX || UT_LIB && AES || FAT_WRITE
Adam Ford38003a62018-02-06 10:18:18 -0600270 default LIB_RAND
Masahiro Yamada2743c072015-06-11 19:16:43 +0900271 help
Adam Ford38003a62018-02-06 10:18:18 -0600272 Select the library to provide pseudo-random number generator
273 functions. LIB_HW_RAND supports certain hardware engines that
274 provide this functionality. If in doubt, select LIB_RAND.
275
276config LIB_RAND
277 bool "Pseudo-random library support"
278
279config LIB_HW_RAND
Marcin Juszkiewicza360c2c2020-05-26 19:07:15 +0200280 bool "HW Engine for random library support"
Adam Ford38003a62018-02-06 10:18:18 -0600281
282endchoice
Michal Simek2c1b1db2015-05-25 11:37:22 +0200283
Simon Glassa6cee932021-12-01 09:02:36 -0700284config SUPPORT_ACPI
285 bool
286 help
287 Enable this if your arch or board can support generating ACPI
288 (Advanced Configuration and Power Interface) tables. In this case
289 U-Boot can generate these tables and pass them to the Operating
290 System.
291
Simon Glasse264be42023-05-04 16:54:57 -0600292config ACPI
293 bool "Enable support for ACPI libraries"
294 depends on SUPPORT_ACPI
295 help
296 Provides library functions for dealing with ACPI tables. This does
297 not necessarily include generation of tables
298 (see GENERATE_ACPI_TABLE), but allows for tables to be located.
299
Simon Glass1a2fcc22023-09-19 21:00:06 -0600300config SPL_ACPI
301 bool "Enable support for ACPI libraries in SPL"
302 depends on SPL && SUPPORT_ACPI
303 help
304 Provides library functions for dealing with ACPI tables in SPL. This
305 does not necessarily include generation of tables
306 (see GENERATE_ACPI_TABLE), but allows for tables to be located.
307
Simon Glassa6cee932021-12-01 09:02:36 -0700308config GENERATE_ACPI_TABLE
309 bool "Generate an ACPI (Advanced Configuration and Power Interface) table"
Simon Glasse264be42023-05-04 16:54:57 -0600310 depends on ACPI
Simon Glassa6cee932021-12-01 09:02:36 -0700311 select QFW if QEMU
312 help
313 The Advanced Configuration and Power Interface (ACPI) specification
314 provides an open standard for device configuration and management
315 by the operating system. It defines platform-independent interfaces
316 for configuration and power management monitoring.
317
Patrick Rudolph2f6f8d92024-10-23 15:20:13 +0200318config ACPI_PARKING_PROTOCOL
319 bool "Support ACPI parking protocol method"
320 depends on GENERATE_ACPI_TABLE
321 depends on ARMV8_MULTIENTRY
322 depends on BLOBLIST_TABLES
323 default y if !SEC_FIRMWARE_ARMV8_PSCI && !ARMV8_PSCI
324 help
325 Say Y here to support "ACPI parking protocol" enable method
326 for booting Linux.
327
328 To use this feature, you must do:
329 - Bring secondary CPUs into U-Boot proper in a board-specific
330 manner. This must be done *after* relocation. Otherwise, the
331 secondary CPUs will spin in unprotected memory-area because the
332 master CPU protects the relocated spin code.
333
Simon Glasse2f94ae2017-04-02 09:50:28 -0600334config SPL_TINY_MEMSET
335 bool "Use a very small memset() in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400336 depends on SPL
Simon Glasse2f94ae2017-04-02 09:50:28 -0600337 help
338 The faster memset() is the arch-specific one (if available) enabled
339 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
340 better performance by writing a word at a time. But in very
Chris Packham1c3b7ba2019-01-13 22:13:28 +1300341 size-constrained environments even this may be too big. Enable this
Simon Glasse2f94ae2017-04-02 09:50:28 -0600342 option to reduce code size slightly at the cost of some speed.
343
Philipp Tomsichfefc4ec2017-08-03 22:52:04 +0200344config TPL_TINY_MEMSET
345 bool "Use a very small memset() in TPL"
Tom Rini36a4ca02022-06-08 08:24:39 -0400346 depends on TPL
Philipp Tomsichfefc4ec2017-08-03 22:52:04 +0200347 help
348 The faster memset() is the arch-specific one (if available) enabled
349 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
350 better performance by writing a word at a time. But in very
Chris Packham1c3b7ba2019-01-13 22:13:28 +1300351 size-constrained environments even this may be too big. Enable this
Philipp Tomsichfefc4ec2017-08-03 22:52:04 +0200352 option to reduce code size slightly at the cost of some speed.
353
Boris Brezillon627dc182017-02-27 18:22:05 +0100354config RBTREE
355 bool
356
Nandor Hand5ea84a2017-11-08 15:35:14 +0000357config BITREVERSE
358 bool "Bit reverse library from Linux"
359
Simon Glassbfce7fc2019-04-08 13:20:51 -0600360config TRACE
361 bool "Support for tracing of function calls and timing"
362 imply CMD_TRACE
Simon Glass6b5424a2022-12-21 16:08:26 -0700363 imply TIMER_EARLY
Simon Glassbfce7fc2019-04-08 13:20:51 -0600364 help
365 Enables function tracing within U-Boot. This allows recording of call
366 traces including timing information. The command can write data to
367 memory for exporting for analysis (e.g. using bootchart).
Vincent Stehlé28c23622024-04-11 18:44:02 +0200368 See doc/develop/trace.rst for full details.
Simon Glassbfce7fc2019-04-08 13:20:51 -0600369
Simon Glass445078e2019-04-08 13:20:52 -0600370config TRACE_BUFFER_SIZE
371 hex "Size of trace buffer in U-Boot"
372 depends on TRACE
373 default 0x01000000
374 help
375 Sets the size of the trace buffer in U-Boot. This is allocated from
376 memory during relocation. If this buffer is too small, the trace
377 history will be truncated, with later records omitted.
378
379 If early trace is enabled (i.e. before relocation), this buffer must
380 be large enough to include all the data from the early trace buffer as
381 well, since this is copied over to the main buffer during relocation.
382
383 A trace record is emitted for each function call and each record is
384 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
385 the size is too small then 'trace stats' will show a message saying
386 how many records were dropped due to buffer overflow.
387
Heinrich Schuchardtc1a73792019-06-02 13:30:09 +0200388config TRACE_CALL_DEPTH_LIMIT
389 int "Trace call depth limit"
390 depends on TRACE
391 default 15
392 help
393 Sets the maximum call depth up to which function calls are recorded.
394
Simon Glass445078e2019-04-08 13:20:52 -0600395config TRACE_EARLY
396 bool "Enable tracing before relocation"
397 depends on TRACE
398 help
399 Sometimes it is helpful to trace execution of U-Boot before
400 relocation. This is possible by using a arch-specific, fixed buffer
401 position in memory. Enable this option to start tracing as early as
402 possible after U-Boot starts.
403
404config TRACE_EARLY_SIZE
405 hex "Size of early trace buffer in U-Boot"
406 depends on TRACE_EARLY
407 default 0x00100000
408 help
409 Sets the size of the early trace buffer in bytes. This is used to hold
410 tracing information before relocation.
411
Heinrich Schuchardtc1a73792019-06-02 13:30:09 +0200412config TRACE_EARLY_CALL_DEPTH_LIMIT
413 int "Early trace call depth limit"
414 depends on TRACE_EARLY
Simon Glass971574d2023-01-15 14:15:44 -0700415 default 15
Heinrich Schuchardtc1a73792019-06-02 13:30:09 +0200416 help
417 Sets the maximum call depth up to which function calls are recorded
418 during early tracing.
419
Simon Glass445078e2019-04-08 13:20:52 -0600420config TRACE_EARLY_ADDR
421 hex "Address of early trace buffer in U-Boot"
422 depends on TRACE_EARLY
Sughosh Ganu3f768682024-08-26 17:29:32 +0530423 default 0x00200000
Simon Glass445078e2019-04-08 13:20:52 -0600424 help
425 Sets the address of the early trace buffer in U-Boot. This memory
426 must be accessible before relocation.
427
428 A trace record is emitted for each function call and each record is
429 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
430 the size is too small then the message which says the amount of early
431 data being coped will the the same as the
432
Loic Poulain12797e62021-11-25 18:16:14 +0100433config CIRCBUF
434 bool "Enable circular buffer support"
435
Michal Simekdd5000ef2024-04-16 08:55:16 +0200436source "lib/dhry/Kconfig"
Simon Glass99dbe4b2015-06-23 15:38:23 -0600437
Raymond Mao87010c32024-10-03 14:50:15 -0700438menu "Alternative crypto libraries"
439source lib/mbedtls/Kconfig
440endmenu
441
Simon Glass528fdd12017-04-26 22:27:49 -0600442menu "Security support"
443
444config AES
445 bool "Support the AES algorithm"
446 help
447 This provides a means to encrypt and decrypt data using the AES
448 (Advanced Encryption Standard). This algorithm uses a symetric key
449 and is widely used as a streaming cipher. Different key lengths are
450 supported by the algorithm but only a 128-bit key is supported at
451 present.
452
Michal Simekdd5000ef2024-04-16 08:55:16 +0200453source "lib/ecdsa/Kconfig"
454source "lib/rsa/Kconfig"
455source "lib/crypto/Kconfig"
456source "lib/crypt/Kconfig"
Ruchika Gupta2c3822e2015-01-23 16:01:51 +0530457
Simon Glass350497c2015-08-22 18:31:19 -0600458config TPM
459 bool "Trusted Platform Module (TPM) Support"
Simon Glasscf294b02015-10-03 06:39:36 -0600460 depends on DM
Sughosh Ganu9737fab2022-07-22 21:32:04 +0530461 imply DM_RNG
Eddie James8ed7bb32023-10-24 10:43:49 -0500462 select SHA1
Simon Glass350497c2015-08-22 18:31:19 -0600463 help
464 This enables support for TPMs which can be used to provide security
465 features for your board. The TPM can be connected via LPC or I2C
466 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
467 command to interactive the TPM. Driver model support is provided
468 for the low-level TPM interface, but only one TPM is supported at
469 a time by the TPM library.
Ilias Apalodimas1e665f92024-06-23 14:48:18 +0300470 For size reasons only SHA1 is selected which is supported on TPM1.2.
471 If you want a fully functional TPM enable all hashing algorithms.
472 If you enabled measured boot all hashing algorithms are selected.
Simon Glass350497c2015-08-22 18:31:19 -0600473
Simon Glass93a45b12018-10-01 12:22:19 -0600474config SPL_TPM
475 bool "Trusted Platform Module (TPM) Support in SPL"
476 depends on SPL_DM
Simon Glass2b95b492023-01-07 14:57:20 -0700477 imply SPL_CRC8
Simon Glass93a45b12018-10-01 12:22:19 -0600478 help
479 This enables support for TPMs which can be used to provide security
480 features for your board. The TPM can be connected via LPC or I2C
481 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
482 command to interactive the TPM. Driver model support is provided
483 for the low-level TPM interface, but only one TPM is supported at
484 a time by the TPM library.
485
486config TPL_TPM
487 bool "Trusted Platform Module (TPM) Support in TPL"
488 depends on TPL_DM
489 help
490 This enables support for TPMs which can be used to provide security
491 features for your board. The TPM can be connected via LPC or I2C
492 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
493 command to interactive the TPM. Driver model support is provided
494 for the low-level TPM interface, but only one TPM is supported at
495 a time by the TPM library.
496
Simon Glasse7ca7da2022-04-30 00:56:53 -0600497config VPL_TPM
498 bool "Trusted Platform Module (TPM) Support in VPL"
499 depends on VPL_DM
500 help
501 This enables support for TPMs which can be used to provide security
502 features for your board. The TPM can be connected via LPC or I2C
503 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
504 command to interactive the TPM. Driver model support is provided
505 for the low-level TPM interface, but only one TPM is supported at
506 a time by the TPM library.
507
Simon Glass528fdd12017-04-26 22:27:49 -0600508endmenu
509
Igor Opaniuk525d1d82018-06-03 21:56:37 +0300510menu "Android Verified Boot"
511
512config LIBAVB
513 bool "Android Verified Boot 2.0 support"
514 depends on ANDROID_BOOT_IMAGE
Igor Opaniuk525d1d82018-06-03 21:56:37 +0300515 help
516 This enables support of Android Verified Boot 2.0 which can be used
517 to assure the end user of the integrity of the software running on a
518 device. Introduces such features as boot chain of trust, rollback
519 protection etc.
520
521endmenu
522
gaurav ranaef201592015-02-20 12:51:46 +0530523menu "Hashing Support"
524
Qu Wenruob98e8a22021-12-27 14:12:07 +0800525config BLAKE2
526 bool "Enable BLAKE2 support"
527 help
528 This option enables support of hashing using BLAKE2B algorithm.
529 The hash is calculated in software.
530 The BLAKE2 algorithm produces a hash value (digest) between 1 and
531 64 bytes.
532
gaurav ranaef201592015-02-20 12:51:46 +0530533config SHA1
534 bool "Enable SHA1 support"
535 help
536 This option enables support of hashing using SHA1 algorithm.
537 The hash is calculated in software.
538 The SHA1 algorithm produces a 160-bit (20-byte) hash value
539 (digest).
540
541config SHA256
542 bool "Enable SHA256 support"
543 help
544 This option enables support of hashing using SHA256 algorithm.
545 The hash is calculated in software.
546 The SHA256 algorithm produces a 256-bit (32-byte) hash value
547 (digest).
548
Reuben Dowle1908fd92020-04-16 17:36:52 +1200549config SHA512
550 bool "Enable SHA512 support"
Manorit Chawdhrya58132a2023-07-14 11:22:39 +0530551 default y if TI_SECURE_DEVICE && FIT_SIGNATURE
Reuben Dowle1908fd92020-04-16 17:36:52 +1200552 help
553 This option enables support of hashing using SHA512 algorithm.
554 The hash is calculated in software.
555 The SHA512 algorithm produces a 512-bit (64-byte) hash value
556 (digest).
557
558config SHA384
559 bool "Enable SHA384 support"
Alexandru Gagniuc5df5d692021-09-02 19:54:18 -0500560 select SHA512
Reuben Dowle1908fd92020-04-16 17:36:52 +1200561 help
562 This option enables support of hashing using SHA384 algorithm.
Alexandru Gagniuc5df5d692021-09-02 19:54:18 -0500563 The hash is calculated in software. This is also selects SHA512,
564 because these implementations share the bulk of the code..
Reuben Dowle1908fd92020-04-16 17:36:52 +1200565 The SHA384 algorithm produces a 384-bit (48-byte) hash value
566 (digest).
567
gaurav ranaef201592015-02-20 12:51:46 +0530568config SHA_HW_ACCEL
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200569 bool "Enable hardware acceleration for SHA hash functions"
gaurav ranaef201592015-02-20 12:51:46 +0530570 help
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200571 This option enables hardware acceleration for the SHA1 and SHA256
572 hashing algorithms. This affects the 'hash' command and also the
573 hash_lookup_algo() function.
574
Simon Glassf7b37c22021-09-25 19:43:17 -0600575if SPL
576
Oleksandr Suvorov15a23ca2023-08-03 19:05:40 +0300577config SPL_CRC32
578 bool "Enable CRC32 support in SPL"
579 default y if SPL_LEGACY_IMAGE_SUPPORT || SPL_EFI_PARTITION
580 default y if SPL_ENV_SUPPORT || TPL_BLOBLIST
581 help
582 This option enables support of hashing using CRC32 algorithm.
583 The CRC32 algorithm produces 32-bit checksum value. For FIT
584 images, this is the least secure type of checksum, suitable for
585 detected accidental image corruption. For secure applications you
586 should consider SHA256 or SHA384.
587
Simon Glassf7b37c22021-09-25 19:43:17 -0600588config SPL_SHA1
589 bool "Enable SHA1 support in SPL"
590 default y if SHA1
591 help
592 This option enables support of hashing using SHA1 algorithm.
593 The hash is calculated in software.
594 The SHA1 algorithm produces a 160-bit (20-byte) hash value
595 (digest).
596
597config SPL_SHA256
598 bool "Enable SHA256 support in SPL"
599 default y if SHA256
600 help
601 This option enables support of hashing using SHA256 algorithm.
602 The hash is calculated in software.
603 The SHA256 algorithm produces a 256-bit (32-byte) hash value
604 (digest).
605
606config SPL_SHA512
607 bool "Enable SHA512 support in SPL"
608 default y if SHA512
609 help
610 This option enables support of hashing using SHA512 algorithm.
611 The hash is calculated in software.
612 The SHA512 algorithm produces a 512-bit (64-byte) hash value
613 (digest).
614
615config SPL_SHA384
616 bool "Enable SHA384 support in SPL"
617 default y if SHA384
618 select SPL_SHA512
619 help
620 This option enables support of hashing using SHA384 algorithm.
621 The hash is calculated in software. This is also selects SHA512,
622 because these implementations share the bulk of the code..
623 The SHA384 algorithm produces a 384-bit (48-byte) hash value
624 (digest).
625
Simon Glass383dd572021-09-25 19:43:18 -0600626config SPL_SHA_HW_ACCEL
627 bool "Enable hardware acceleration for SHA hash functions"
628 default y if SHA_HW_ACCEL
629 help
630 This option enables hardware acceleration for the SHA1 and SHA256
631 hashing algorithms. This affects the 'hash' command and also the
632 hash_lookup_algo() function.
633
634config SPL_SHA_PROG_HW_ACCEL
635 bool "Enable Progressive hashing support using hardware in SPL"
636 depends on SHA_PROG_HW_ACCEL
637 default y
638 help
639 This option enables hardware-acceleration for SHA progressive
640 hashing.
641 Data can be streamed in a block at a time and the hashing is
642 performed in hardware.
643
Simon Glassf7b37c22021-09-25 19:43:17 -0600644endif
645
Simon Glass540883b2023-02-22 09:34:01 -0700646config VPL_SHA1
647 bool "Enable SHA1 support in VPL"
648 depends on VPL
649 default y if SHA1
650 help
651 This option enables support of hashing using SHA1 algorithm.
652 The hash is calculated in software.
653 The SHA1 algorithm produces a 160-bit (20-byte) hash value
654 (digest).
655
656config VPL_SHA256
657 bool "Enable SHA256 support in VPL"
658 depends on VPL
659 default y if SHA256
660 help
661 This option enables support of hashing using SHA256 algorithm.
662 The hash is calculated in software.
663 The SHA256 algorithm produces a 256-bit (32-byte) hash value
664 (digest).
665
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200666if SHA_HW_ACCEL
667
668config SHA512_HW_ACCEL
669 bool "Enable hardware acceleration for SHA512"
Alexandru Gagniuc5df5d692021-09-02 19:54:18 -0500670 depends on SHA512
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200671 help
672 This option enables hardware acceleration for the SHA384 and SHA512
673 hashing algorithms. This affects the 'hash' command and also the
674 hash_lookup_algo() function.
gaurav ranaef201592015-02-20 12:51:46 +0530675
676config SHA_PROG_HW_ACCEL
677 bool "Enable Progressive hashing support using hardware"
gaurav ranaef201592015-02-20 12:51:46 +0530678 help
Joel Stanley92efc1f2021-02-17 13:50:42 +1030679 This option enables hardware-acceleration for SHA progressive
680 hashing.
681 Data can be streamed in a block at a time and the hashing is
682 performed in hardware.
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000683
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200684endif
685
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000686config MD5
Simon Glassd33d0db2020-05-06 08:03:56 -0600687 bool "Support MD5 algorithm"
688 help
689 This option enables MD5 support. MD5 is an algorithm designed
690 in 1991 that produces a 16-byte digest (or checksum) from its input
691 data. It has a number of vulnerabilities which preclude its use in
692 security applications, but it can be useful for providing a quick
693 checksum of a block of data.
694
695config SPL_MD5
696 bool "Support MD5 algorithm in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400697 depends on SPL
Simon Glassd33d0db2020-05-06 08:03:56 -0600698 help
699 This option enables MD5 support in SPL. MD5 is an algorithm designed
700 in 1991 that produces a 16-byte digest (or checksum) from its input
701 data. It has a number of vulnerabilities which preclude its use in
702 security applications, but it can be useful for providing a quick
703 checksum of a block of data.
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000704
Simon Glass2b95b492023-01-07 14:57:20 -0700705config CRC8
706 def_bool y
707 help
708 Enables CRC8 support in U-Boot. This is normally required. CRC8 is
709 a simple and fast checksumming algorithm which does a bytewise
710 checksum with feedback to produce an 8-bit result. The code is small
711 and it does not require a lookup table (unlike CRC32).
712
713config SPL_CRC8
714 bool "Support CRC8 in SPL"
715 depends on SPL
716 help
717 Enables CRC8 support in SPL. This is not normally required. CRC8 is
718 a simple and fast checksumming algorithm which does a bytewise
719 checksum with feedback to produce an 8-bit result. The code is small
720 and it does not require a lookup table (unlike CRC32).
721
Sean Anderson01349c12023-10-14 16:47:49 -0400722config SPL_CRC16
723 bool "Support CRC16 in SPL"
724 depends on SPL
725 help
726 Enables CRC16 support in SPL. This is not normally required.
727
Simon Glass577226c2021-09-25 19:43:24 -0600728config CRC32
729 def_bool y
730 help
731 Enables CRC32 support in U-Boot. This is normally required.
732
Marek Behúncdccc032017-09-03 17:00:23 +0200733config CRC32C
734 bool
735
Marek Behúnb139a7f2019-04-29 22:40:43 +0200736config XXHASH
737 bool
738
gaurav ranaef201592015-02-20 12:51:46 +0530739endmenu
740
Julius Wernerf41a3ca2015-10-06 20:03:53 -0700741menu "Compression Support"
742
743config LZ4
744 bool "Enable LZ4 decompression support"
745 help
746 If this option is set, support for LZ4 compressed images
747 is included. The LZ4 algorithm can run in-place as long as the
748 compressed image is loaded to the end of the output buffer, and
749 trades lower compression ratios for much faster decompression.
Patrick Delaunaycd831af2021-03-10 10:16:28 +0100750
Julius Wernerf41a3ca2015-10-06 20:03:53 -0700751 NOTE: This implements the release version of the LZ4 frame
752 format as generated by default by the 'lz4' command line tool.
753 This is not the same as the outdated, less efficient legacy
754 frame format currently (2015) implemented in the Linux kernel
755 (generated by 'lz4 -l'). The two formats are incompatible.
756
Simon Glass264aa5f2017-05-17 03:25:42 -0600757config LZMA
758 bool "Enable LZMA decompression support"
759 help
760 This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
761 a dictionary compression algorithm that provides a high compression
762 ratio and fairly fast decompression speed. See also
763 CONFIG_CMD_LZMADEC which provides a decode command.
764
Boris Brezillonaa57d0f2017-02-27 18:22:06 +0100765config LZO
Tom Rinic20bb732017-07-22 18:36:16 -0400766 bool "Enable LZO decompression support"
767 help
Oleksandr Suvorov30a4c312021-09-01 16:05:08 +0300768 This enables support for the LZO compression algorithm.
York Suna6945fe2017-08-15 11:14:43 -0700769
Marek Vasutaeaa29d2019-03-08 16:06:55 +0100770config GZIP
Heiko Schocherb93cc602019-04-29 08:59:38 +0200771 bool "Enable gzip decompression support"
Marek Vasutaeaa29d2019-03-08 16:06:55 +0100772 select ZLIB
773 default y
774 help
775 This enables support for GZIP compression algorithm.
776
Joao Marcos Costaae8abb12020-07-30 15:33:49 +0200777config ZLIB_UNCOMPRESS
778 bool "Enables zlib's uncompress() functionality"
779 help
780 This enables an extra zlib functionality: the uncompress() function,
781 which decompresses data from a buffer into another, knowing their
782 sizes. Unlike gunzip(), there is no header parsing.
783
Michael Walle3a6e3512020-05-22 14:07:36 +0200784config GZIP_COMPRESSED
785 bool
786 select ZLIB
787
Atish Patra1fa79622020-03-05 16:24:21 -0800788config BZIP2
789 bool "Enable bzip2 decompression support"
790 help
791 This enables support for BZIP2 compression algorithm.
792
Marek Vasutaeaa29d2019-03-08 16:06:55 +0100793config ZLIB
794 bool
795 default y
796 help
797 This enables ZLIB compression lib.
798
Marek Behúne87e2002019-04-29 22:40:44 +0200799config ZSTD
800 bool "Enable Zstandard decompression support"
801 select XXHASH
802 help
803 This enables Zstandard decompression library.
804
Brandon Maierdbe88da2023-01-12 10:27:45 -0600805if ZSTD
806
807config ZSTD_LIB_MINIFY
808 bool "Minify Zstandard code"
809 default y
810 help
811 This disables various optional components and changes the
812 compilation flags to prioritize space-saving.
813
814 For detailed info, see zstd's lib/README.md
815
816 https://github.com/facebook/zstd/blob/dev/lib/README.md
817
818endif
819
Simon Glass1af8b152023-02-22 09:33:54 -0700820config SPL_BZIP2
821 bool "Enable bzip2 decompression support for SPL build"
822 depends on SPL
823 help
824 This enables support for bzip2 compression algorithm for SPL boot.
825
Simon Glasse107bcd2018-11-06 15:21:30 -0700826config SPL_LZ4
827 bool "Enable LZ4 decompression support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400828 depends on SPL
Simon Glasse107bcd2018-11-06 15:21:30 -0700829 help
Marcin Juszkiewicza360c2c2020-05-26 19:07:15 +0200830 This enables support for the LZ4 decompression algorithm in SPL. LZ4
Simon Glasse107bcd2018-11-06 15:21:30 -0700831 is a lossless data compression algorithm that is focused on
832 fast compression and decompression speed. It belongs to the LZ77
833 family of byte-oriented compression schemes.
834
developer6a4e1d32020-04-21 09:28:38 +0200835config SPL_LZMA
836 bool "Enable LZMA decompression support for SPL build"
Tom Rini0a83cc22022-06-10 23:03:09 -0400837 depends on SPL
developer6a4e1d32020-04-21 09:28:38 +0200838 help
Marcin Juszkiewicza360c2c2020-05-26 19:07:15 +0200839 This enables support for LZMA compression algorithm for SPL boot.
developer6a4e1d32020-04-21 09:28:38 +0200840
Simon Glasse7ca7da2022-04-30 00:56:53 -0600841config VPL_LZMA
842 bool "Enable LZMA decompression support for VPL build"
843 default y if LZMA
844 help
845 This enables support for LZMA compression algorithm for VPL boot.
846
Jean-Jacques Hiblotdbde2882017-09-15 12:57:30 +0200847config SPL_LZO
848 bool "Enable LZO decompression support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400849 depends on SPL
Jean-Jacques Hiblotdbde2882017-09-15 12:57:30 +0200850 help
851 This enables support for LZO compression algorithm in the SPL.
852
York Suna6945fe2017-08-15 11:14:43 -0700853config SPL_GZIP
854 bool "Enable gzip decompression support for SPL build"
855 select SPL_ZLIB
856 help
Oleksandr Suvorov30a4c312021-09-01 16:05:08 +0300857 This enables support for the GZIP compression algorithm for SPL boot.
York Suna6945fe2017-08-15 11:14:43 -0700858
859config SPL_ZLIB
860 bool
861 help
862 This enables compression lib for SPL boot.
863
Marek Behúne87e2002019-04-29 22:40:44 +0200864config SPL_ZSTD
865 bool "Enable Zstandard decompression support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400866 depends on SPL
Marek Behúne87e2002019-04-29 22:40:44 +0200867 select XXHASH
868 help
869 This enables Zstandard decompression library in the SPL.
870
Julius Wernerf41a3ca2015-10-06 20:03:53 -0700871endmenu
872
Przemyslaw Marczak37550132015-04-20 20:07:40 +0200873config ERRNO_STR
874 bool "Enable function for getting errno-related string message"
875 help
876 The function errno_str(int errno), returns a pointer to the errno
877 corresponding text message:
878 - if errno is null or positive number - a pointer to "Success" message
879 - if errno is negative - a pointer to errno related message
880
Alexey Brodkin2d2fa492018-06-05 17:17:57 +0300881config HEXDUMP
882 bool "Enable hexdump"
883 help
884 This enables functions for printing dumps of binary data.
885
Simon Glassa37fd4d2020-09-12 11:13:35 -0600886config SPL_HEXDUMP
887 bool "Enable hexdump in SPL"
Heinrich Schuchardt11df0722021-07-24 17:35:46 +0200888 depends on SPL && HEXDUMP
Simon Glassa37fd4d2020-09-12 11:13:35 -0600889 help
890 This enables functions for printing dumps of binary data in
891 SPL.
892
Sean Anderson3b4a6f52020-10-27 19:55:36 -0400893config GETOPT
894 bool "Enable getopt"
895 help
896 This enables functions for parsing command-line options.
897
Simon Glassa66c5412016-02-22 22:55:42 -0700898config OF_LIBFDT
899 bool "Enable the FDT library"
900 default y if OF_CONTROL
901 help
902 This enables the FDT library (libfdt). It provides functions for
903 accessing binary device tree images in memory, such as adding and
Anatolij Gustschinda707d42017-08-18 17:58:51 +0200904 removing nodes and properties, scanning through the tree and finding
Simon Glassa66c5412016-02-22 22:55:42 -0700905 particular compatible nodes. The library operates on a flattened
906 version of the device tree.
907
Simon Glassc48044d2019-10-27 09:47:40 -0600908config OF_LIBFDT_ASSUME_MASK
909 hex "Mask of conditions to assume for libfdt"
910 depends on OF_LIBFDT || FIT
Tom Rinif18679c2023-08-02 11:09:43 -0400911 default 0x0
Simon Glassc48044d2019-10-27 09:47:40 -0600912 help
913 Use this to change the assumptions made by libfdt about the
914 device tree it is working with. A value of 0 means that no assumptions
915 are made, and libfdt is able to deal with malicious data. A value of
916 0xff means all assumptions are made and any invalid data may cause
917 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
918
Maxime Ripard9e901ce2016-07-05 10:26:44 +0200919config OF_LIBFDT_OVERLAY
920 bool "Enable the FDT library overlay support"
Tom Rinic1e49ba2018-05-08 08:52:17 -0400921 depends on OF_LIBFDT
Praneeth Bajjuri7b71a012018-04-25 16:03:23 -0500922 default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
Maxime Ripard9e901ce2016-07-05 10:26:44 +0200923 help
924 This enables the FDT library (libfdt) overlay support.
925
Tom Rinid2cd4312022-08-02 07:33:27 -0400926config SYS_FDT_PAD
927 hex "Maximum size of the FDT memory area passeed to the OS"
928 depends on OF_LIBFDT
929 default 0x13000 if FMAN_ENET || QE || U_QE
930 default 0x3000
931 help
932 During OS boot, we allocate a region of memory within the bootmap
933 for the FDT. This is the size that we will expand the FDT that we
934 are using will be extended to be, in bytes.
935
Simon Glass8b426922016-02-22 22:55:45 -0700936config SPL_OF_LIBFDT
937 bool "Enable the FDT library for SPL"
Simon Glasse7ca7da2022-04-30 00:56:53 -0600938 depends on SPL_LIBGENERIC_SUPPORT
Simon Glass8b426922016-02-22 22:55:45 -0700939 default y if SPL_OF_CONTROL
940 help
941 This enables the FDT library (libfdt). It provides functions for
942 accessing binary device tree images in memory, such as adding and
Anatolij Gustschinda707d42017-08-18 17:58:51 +0200943 removing nodes and properties, scanning through the tree and finding
Simon Glass8b426922016-02-22 22:55:45 -0700944 particular compatible nodes. The library operates on a flattened
945 version of the device tree.
946
Simon Glassc48044d2019-10-27 09:47:40 -0600947config SPL_OF_LIBFDT_ASSUME_MASK
948 hex "Mask of conditions to assume for libfdt"
Tom Rini0a83cc22022-06-10 23:03:09 -0400949 depends on SPL_OF_LIBFDT || (FIT && SPL)
Simon Glassc48044d2019-10-27 09:47:40 -0600950 default 0xff
951 help
952 Use this to change the assumptions made by libfdt in SPL about the
953 device tree it is working with. A value of 0 means that no assumptions
954 are made, and libfdt is able to deal with malicious data. A value of
955 0xff means all assumptions are made and any invalid data may cause
956 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
957
Simon Glassca8ec4b2018-10-01 12:22:21 -0600958config TPL_OF_LIBFDT
959 bool "Enable the FDT library for TPL"
Simon Glasse7ca7da2022-04-30 00:56:53 -0600960 depends on TPL_LIBGENERIC_SUPPORT
Simon Glassca8ec4b2018-10-01 12:22:21 -0600961 default y if TPL_OF_CONTROL
962 help
963 This enables the FDT library (libfdt). It provides functions for
964 accessing binary device tree images in memory, such as adding and
965 removing nodes and properties, scanning through the tree and finding
966 particular compatible nodes. The library operates on a flattened
967 version of the device tree.
968
Simon Glassc48044d2019-10-27 09:47:40 -0600969config TPL_OF_LIBFDT_ASSUME_MASK
970 hex "Mask of conditions to assume for libfdt"
Tom Rini36a4ca02022-06-08 08:24:39 -0400971 depends on TPL_OF_LIBFDT || (FIT && TPL)
Simon Glassc48044d2019-10-27 09:47:40 -0600972 default 0xff
973 help
974 Use this to change the assumptions made by libfdt in TPL about the
975 device tree it is working with. A value of 0 means that no assumptions
976 are made, and libfdt is able to deal with malicious data. A value of
977 0xff means all assumptions are made and any invalid data may cause
978 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
979
Simon Glasse7ca7da2022-04-30 00:56:53 -0600980config VPL_OF_LIBFDT
981 bool "Enable the FDT library for VPL"
Tom Rini7fb323b2022-06-08 08:24:40 -0400982 depends on VPL
Simon Glasse7ca7da2022-04-30 00:56:53 -0600983 default y if VPL_OF_CONTROL && !VPL_OF_PLATDATA
984 help
985 This enables the FDT library (libfdt). It provides functions for
986 accessing binary device tree images in memory, such as adding and
987 removing nodes and properties, scanning through the tree and finding
988 particular compatible nodes. The library operates on a flattened
989 version of the device tree.
990
991config VPL_OF_LIBFDT_ASSUME_MASK
992 hex "Mask of conditions to assume for libfdt"
Tom Rini7fb323b2022-06-08 08:24:40 -0400993 depends on VPL_OF_LIBFDT || (FIT && VPL)
Simon Glasse7ca7da2022-04-30 00:56:53 -0600994 default 0xff
995 help
996 Use this to change the assumptions made by libfdt in SPL about the
997 device tree it is working with. A value of 0 means that no assumptions
998 are made, and libfdt is able to deal with malicious data. A value of
999 0xff means all assumptions are made and any invalid data may cause
1000 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
1001
Alexander Graffb228082016-08-19 01:23:23 +02001002menu "System tables"
Alexander Graf66f96e12016-08-19 01:23:29 +02001003 depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
Alexander Graffb228082016-08-19 01:23:23 +02001004
Simon Glass5d093f32020-11-04 09:57:25 -07001005config BLOBLIST_TABLES
1006 bool "Put tables in a bloblist"
Patrick Rudolphad392d52024-10-23 15:20:07 +02001007 depends on BLOBLIST
1008 default y if (ARM && EFI_LOADER && GENERATE_ACPI_TABLE)
1009 default n
Simon Glass5d093f32020-11-04 09:57:25 -07001010 help
Patrick Rudolphad392d52024-10-23 15:20:07 +02001011 On x86 normally tables are placed at address 0xf0000 and can be up
1012 to 64KB long. With this option, tables are instead placed in the
1013 bloblist with a pointer from 0xf0000. The size can then be larger
1014 and the tables can be placed high in memory.
1015 On other architectures the tables are always placed in high memory.
Simon Glass5d093f32020-11-04 09:57:25 -07001016
Alexander Graffb228082016-08-19 01:23:23 +02001017config GENERATE_SMBIOS_TABLE
1018 bool "Generate an SMBIOS (System Management BIOS) table"
Simon Glass5059dbe2023-09-19 21:00:13 -06001019 depends on SMBIOS
Alexander Graffb228082016-08-19 01:23:23 +02001020 default y
Alexander Graffb228082016-08-19 01:23:23 +02001021 help
1022 The System Management BIOS (SMBIOS) specification addresses how
1023 motherboard and system vendors present management information about
1024 their products in a standard format by extending the BIOS interface
1025 on Intel architecture systems.
1026
1027 Check http://www.dmtf.org/standards/smbios for details.
1028
Tom Rinid0dca222023-11-20 15:17:23 -05001029 See also SYSINFO_SMBIOS which allows SMBIOS values to be provided in
Simon Glass052a03e2020-11-05 06:32:11 -07001030 the devicetree.
1031
Simon Glasse70648e2023-09-14 10:55:39 -06001032endmenu
1033
Tero Kristocfbe15c2021-06-11 11:45:02 +03001034config LIB_RATIONAL
1035 bool "enable continued fraction calculation routines"
1036
1037config SPL_LIB_RATIONAL
1038 bool "enable continued fraction calculation routines for SPL"
1039 depends on SPL
1040
AKASHI Takahirof7025262019-11-13 09:44:53 +09001041config ASN1_COMPILER
1042 bool
Philippe Reynes2aba9442022-03-28 22:56:54 +02001043 help
1044 ASN.1 (Abstract Syntax Notation One) is a standard interface
1045 description language for defining data structures that can be
1046 serialized and deserialized in a cross-platform way. It is
1047 broadly used in telecommunications and computer networking,
1048 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1049 This option enables the support of the asn1 compiler.
AKASHI Takahirof7025262019-11-13 09:44:53 +09001050
AKASHI Takahiro3a888712019-11-13 09:44:55 +09001051config ASN1_DECODER
1052 bool
1053 help
Philippe Reynes2aba9442022-03-28 22:56:54 +02001054 ASN.1 (Abstract Syntax Notation One) is a standard interface
1055 description language for defining data structures that can be
1056 serialized and deserialized in a cross-platform way. It is
1057 broadly used in telecommunications and computer networking,
1058 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1059 This option enables the support of the asn1 decoder.
AKASHI Takahiro3a888712019-11-13 09:44:55 +09001060
Philippe Reynescf538b52022-03-28 22:56:56 +02001061config SPL_ASN1_DECODER
1062 bool
1063 help
1064 ASN.1 (Abstract Syntax Notation One) is a standard interface
1065 description language for defining data structures that can be
1066 serialized and deserialized in a cross-platform way. It is
1067 broadly used in telecommunications and computer networking,
1068 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1069 This option enables the support of the asn1 decoder in the SPL.
1070
AKASHI Takahiro54923642019-11-13 09:44:57 +09001071config OID_REGISTRY
1072 bool
1073 help
Philippe Reynese35c3a22022-03-28 22:56:55 +02001074 In computing, object identifiers or OIDs are an identifier mechanism
1075 standardized by the International Telecommunication Union (ITU) and
1076 ISO/IEC for naming any object, concept, or "thing" with a globally
1077 unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier).
AKASHI Takahiro54923642019-11-13 09:44:57 +09001078 Enable fast lookup object identifier registry.
1079
Philippe Reynescf538b52022-03-28 22:56:56 +02001080config SPL_OID_REGISTRY
1081 bool
1082 help
1083 In computing, object identifiers or OIDs are an identifier mechanism
1084 standardized by the International Telecommunication Union (ITU) and
1085 ISO/IEC for naming any object, concept, or "thing" with a globally
1086 unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier).
1087 Enable fast lookup object identifier registry in the SPL.
1088
Simon Glass5059dbe2023-09-19 21:00:13 -06001089config SMBIOS
1090 bool "SMBIOS support"
1091 depends on X86 || EFI_LOADER
1092 default y
Simon Glassaadec122023-09-20 07:29:51 -06001093 select LAST_STAGE_INIT
Simon Glass5059dbe2023-09-19 21:00:13 -06001094 help
1095 Indicates that this platform can support System Management BIOS
1096 (SMBIOS) tables. These provide various pieces of information about
1097 the board, such as the manufacturer and the model name.
1098
1099 See GENERATE_SMBIOS_TABLE which controls whether U-Boot actually
1100 creates these tables, rather than them coming from a previous firmware
1101 stage.
1102
Christian Gmeiner19859982020-11-03 15:34:51 +01001103config SMBIOS_PARSER
1104 bool "SMBIOS parser"
1105 help
1106 A simple parser for SMBIOS data.
1107
Michal Simekdd5000ef2024-04-16 08:55:16 +02001108source "lib/optee/Kconfig"
Simon Glass9539e692015-07-31 09:31:36 -06001109
Thierry Reding52c7f1f32019-03-21 19:10:04 +01001110config TEST_FDTDEC
1111 bool "enable fdtdec test"
1112 depends on OF_LIBFDT
1113
AKASHI Takahiro51ba5222019-11-13 09:44:49 +09001114config LIB_DATE
1115 bool
1116
Keerthy76f361a2020-02-12 13:55:03 +05301117config LIB_ELF
1118 bool
1119 help
Patrick Delaunayfb67df82021-01-04 15:33:28 +01001120 Support basic elf loading/validating functions.
1121 This supports for 32 bit and 64 bit versions.
Keerthy76f361a2020-02-12 13:55:03 +05301122
Patrick Delaunayd62063d2021-03-10 10:16:25 +01001123config LMB
1124 bool "Enable the logical memory blocks library (lmb)"
Tom Rini53320122022-04-06 09:21:25 -04001125 default y if ARC || ARM || M68K || MICROBLAZE || MIPS || \
Patrick Delaunayd62063d2021-03-10 10:16:25 +01001126 NIOS2 || PPC || RISCV || SANDBOX || SH || X86 || XTENSA
Sughosh Ganuad3b6e92024-08-26 17:29:29 +05301127 select ARCH_MISC_INIT if PPC
Patrick Delaunayd62063d2021-03-10 10:16:25 +01001128 help
Sughosh Ganu69db78f2024-08-26 17:29:21 +05301129 Support the library logical memory blocks. This will require
1130 a malloc() implementation for defining the data structures
1131 needed for maintaining the LMB memory map.
1132
1133config SPL_LMB
1134 bool "Enable LMB module for SPL"
1135 depends on SPL && SPL_FRAMEWORK && SPL_SYS_MALLOC
1136 help
1137 Enable support for Logical Memory Block library routines in
1138 SPL. This will require a malloc() implementation for defining
1139 the data structures needed for maintaining the LMB memory map.
Patrick Delaunayd62063d2021-03-10 10:16:25 +01001140
Sughosh Ganu1a36d442024-10-15 21:07:11 +05301141config LMB_ARCH_MEM_MAP
1142 bool "Add an architecture specific memory map"
1143 depends on LMB
Sughosh Ganu526eebd2024-10-15 21:07:13 +05301144 default y if FSL_LAYERSCAPE || X86
Sughosh Ganu1a36d442024-10-15 21:07:11 +05301145 help
1146 Some architectures have special or unique aspects which need
1147 consideration when adding memory ranges to the list of available
1148 memory map. Enable this config in such scenarios which allow
1149 architectures and boards to define their own memory map.
1150
1151config SPL_LMB_ARCH_MEM_MAP
1152 bool "Add an architecture specific memory map"
1153 depends on SPL_LMB
1154 help
1155 Some architectures have special or unique scenarios which need
1156 consideration when adding memory ranges to the list of available
1157 memory map. Enable this config in such scenarios which allow
1158 architectures and boards to define their own memory map.
1159
Simon Glass42d97e52022-12-21 16:08:28 -07001160config PHANDLE_CHECK_SEQ
1161 bool "Enable phandle check while getting sequence number"
1162 help
1163 When there are multiple device tree nodes with same name,
Anand Moon6c368f42024-06-23 23:10:21 +05301164 enable this config option to distinguish them using
Simon Glass42d97e52022-12-21 16:08:28 -07001165 phandles in fdtdec_get_alias_seq() function.
1166
Eugen Hristevdb6bbcb2022-01-04 18:20:19 +02001167endmenu
Sughosh Ganu1cadae22022-10-21 18:16:03 +05301168
Michal Simekdd5000ef2024-04-16 08:55:16 +02001169source "lib/fwu_updates/Kconfig"