blob: b27965fc480ddc92276c98d78bc8b3d5f1129a4c [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
Michal Simek15fa3a82024-11-01 10:17:54 +010048config BINMAN_DTB
49 string "binman DTB description"
50 depends on BINMAN
51 help
52 This enables option to point to different DTB file with binman node which
53 is outside of DTB used by the firmware. Use this option if information
54 about generated images shouldn't be the part of target binary. Or on system
55 with limited storage.
56
Masahiro Yamada3f053fe2014-09-16 16:32:59 +090057config CC_OPTIMIZE_LIBS_FOR_SPEED
58 bool "Optimize libraries for speed"
59 help
60 Enabling this option will pass "-O2" to gcc when compiling
61 under "lib" directory.
62
63 If unsure, say N.
64
Simon Glassc17db992021-07-02 12:36:17 -060065config CHARSET
66 bool
Simon Glassc17db992021-07-02 12:36:17 -060067
Faiz Abbas6199fb12018-02-06 19:15:58 +053068config DYNAMIC_CRC_TABLE
69 bool "Enable Dynamic tables for CRC"
70 help
71 Enable this option to calculate entries for CRC tables at runtime.
72 This can be helpful when reducing the size of the build image
73
Bin Mengb95e9db2018-10-15 02:21:15 -070074config HAVE_ARCH_IOMAP
75 bool
76 help
77 Enable this option if architecture provides io{read,write}{8,16,32}
78 I/O accessor functions.
79
Masahiro Yamada9520b712014-10-24 01:30:43 +090080config HAVE_PRIVATE_LIBGCC
81 bool
82
Adam Ford70c8f052018-02-06 12:14:28 -060083config LIB_UUID
84 bool
Caleb Connolly2f4f0be2024-08-30 13:34:32 +010085 select SHA1
Adam Ford70c8f052018-02-06 12:14:28 -060086
AKASHI Takahirod1e31582023-10-26 14:31:31 -040087config RANDOM_UUID
88 bool "GPT Random UUID generation"
89 select LIB_UUID
90 help
91 Enable the generation of partitions with random UUIDs if none
92 are provided.
93
Simon Glass8090d8d2023-02-22 09:34:11 -070094config SPL_LIB_UUID
95 depends on SPL
96 bool
97
Kautuk Consula51bb742022-12-07 17:12:34 +053098config SEMIHOSTING
99 bool "Support semihosting"
Kautuk Consulc86cb4a2022-12-07 17:12:35 +0530100 depends on ARM || RISCV
Kautuk Consula51bb742022-12-07 17:12:34 +0530101 help
102 Semihosting is a method for a target to communicate with a host
103 debugger. It uses special instructions which the debugger will trap
104 on and interpret. This allows U-Boot to read/write files, print to
105 the console, and execute arbitrary commands on the host system.
106
107 Enabling this option will add support for reading and writing files
108 on the host system. If you don't have a debugger attached then trying
109 to do this will likely cause U-Boot to hang. Say 'n' if you are unsure.
110
111config SEMIHOSTING_FALLBACK
112 bool "Recover gracefully when semihosting fails"
Sean Andersonbf641f22023-10-27 16:40:15 -0400113 depends on SEMIHOSTING
Kautuk Consula51bb742022-12-07 17:12:34 +0530114 default y
115 help
116 Normally, if U-Boot makes a semihosting call and no debugger is
117 attached, then it will panic due to a synchronous abort
118 exception. This config adds an exception handler which will allow
119 U-Boot to recover. Say 'y' if unsure.
120
121config SPL_SEMIHOSTING
122 bool "Support semihosting in SPL"
Kautuk Consulc86cb4a2022-12-07 17:12:35 +0530123 depends on SPL && (ARM || RISCV)
Kautuk Consula51bb742022-12-07 17:12:34 +0530124 help
125 Semihosting is a method for a target to communicate with a host
126 debugger. It uses special instructions which the debugger will trap
127 on and interpret. This allows U-Boot to read/write files, print to
128 the console, and execute arbitrary commands on the host system.
129
130 Enabling this option will add support for reading and writing files
131 on the host system. If you don't have a debugger attached then trying
132 to do this will likely cause U-Boot to hang. Say 'n' if you are unsure.
133
134config SPL_SEMIHOSTING_FALLBACK
135 bool "Recover gracefully when semihosting fails in SPL"
Sean Andersonbf641f22023-10-27 16:40:15 -0400136 depends on SPL_SEMIHOSTING
Kautuk Consulc86cb4a2022-12-07 17:12:35 +0530137 select ARMV8_SPL_EXCEPTION_VECTORS if ARM64
Kautuk Consula51bb742022-12-07 17:12:34 +0530138 default y
139 help
140 Normally, if U-Boot makes a semihosting call and no debugger is
141 attached, then it will panic due to a synchronous abort
142 exception. This config adds an exception handler which will allow
143 U-Boot to recover. Say 'y' if unsure.
144
Alex Kiernan5b404282018-04-19 04:32:54 +0000145config PRINTF
146 bool
147 default y
148
149config SPL_PRINTF
150 bool
151 select SPL_SPRINTF
Simon Glass7611ac62019-09-25 08:56:27 -0600152 select SPL_STRTO if !SPL_USE_TINY_PRINTF
Alex Kiernan5b404282018-04-19 04:32:54 +0000153
154config TPL_PRINTF
155 bool
156 select TPL_SPRINTF
Simon Glass7611ac62019-09-25 08:56:27 -0600157 select TPL_STRTO if !TPL_USE_TINY_PRINTF
Alex Kiernan5b404282018-04-19 04:32:54 +0000158
Simon Glasse7ca7da2022-04-30 00:56:53 -0600159config VPL_PRINTF
160 bool
161 select VPL_SPRINTF
162 select VPL_STRTO if !VPL_USE_TINY_PRINTF
163
Alex Kiernan5b404282018-04-19 04:32:54 +0000164config SPRINTF
165 bool
166 default y
167
168config SPL_SPRINTF
169 bool
170
171config TPL_SPRINTF
172 bool
173
Simon Glasse7ca7da2022-04-30 00:56:53 -0600174config VPL_SPRINTF
175 bool
176
Andrii Anisov6e29ac42020-08-06 12:42:52 +0300177config SSCANF
178 bool
Andrii Anisov6e29ac42020-08-06 12:42:52 +0300179
Alex Kiernan5b404282018-04-19 04:32:54 +0000180config STRTO
181 bool
182 default y
183
184config SPL_STRTO
185 bool
186
187config TPL_STRTO
188 bool
189
Simon Glasse7ca7da2022-04-30 00:56:53 -0600190config VPL_STRTO
191 bool
192
Alex Kiernanc568bcb2018-05-29 15:30:52 +0000193config IMAGE_SPARSE
194 bool
195
196config IMAGE_SPARSE_FILLBUF_SIZE
197 hex "Android sparse image CHUNK_TYPE_FILL buffer size"
198 default 0x80000
199 depends on IMAGE_SPARSE
200 help
201 Set the size of the fill buffer used when processing CHUNK_TYPE_FILL
202 chunks.
203
Masahiro Yamada9520b712014-10-24 01:30:43 +0900204config USE_PRIVATE_LIBGCC
205 bool "Use private libgcc"
206 depends on HAVE_PRIVATE_LIBGCC
Marek Vasut4e0126e2016-05-26 18:01:47 +0200207 default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS)
Masahiro Yamada9520b712014-10-24 01:30:43 +0900208 help
209 This option allows you to use the built-in libgcc implementation
Masahiro Yamada1c6a5e42016-03-30 20:17:42 +0900210 of U-Boot instead of the one provided by the compiler.
Masahiro Yamada9520b712014-10-24 01:30:43 +0900211 If unsure, say N.
212
Masahiro Yamadae301fa02014-10-24 01:30:40 +0900213config SYS_HZ
214 int
215 default 1000
216 help
217 The frequency of the timer returned by get_timer().
218 get_timer() must operate in milliseconds and this option must be
219 set to 1000.
220
Simon Glass7611ac62019-09-25 08:56:27 -0600221config SPL_USE_TINY_PRINTF
Thomas Hebb0c12fb52019-11-10 08:23:53 -0800222 bool "Enable tiny printf() version in SPL"
Simon Glass7611ac62019-09-25 08:56:27 -0600223 depends on SPL
Tom Rinid0502b72019-06-08 12:46:18 -0400224 default y
Stefan Roese363ab7b2015-11-23 07:00:22 +0100225 help
226 This option enables a tiny, stripped down printf version.
227 This should only be used in space limited environments,
228 like SPL versions with hard memory limits. This version
229 reduces the code size by about 2.5KiB on armv7.
230
231 The supported format specifiers are %c, %s, %u/%d and %x.
232
Simon Glass7611ac62019-09-25 08:56:27 -0600233config TPL_USE_TINY_PRINTF
Thomas Hebb0c12fb52019-11-10 08:23:53 -0800234 bool "Enable tiny printf() version in TPL"
Simon Glass7611ac62019-09-25 08:56:27 -0600235 depends on TPL
236 default y if SPL_USE_TINY_PRINTF
237 help
238 This option enables a tiny, stripped down printf version.
239 This should only be used in space limited environments,
240 like SPL versions with hard memory limits. This version
241 reduces the code size by about 2.5KiB on armv7.
242
243 The supported format specifiers are %c, %s, %u/%d and %x.
244
Simon Glasse7ca7da2022-04-30 00:56:53 -0600245config VPL_USE_TINY_PRINTF
246 bool "Enable tiny printf() version for VPL"
247 depends on VPL
248 help
249 This option enables a tiny, stripped down printf version.
250 This should only be used in space limited environments,
251 like SPL versions with hard memory limits. This version
252 reduces the code size by about 2.5KiB on armv7.
253
254 The supported format specifiers are %c, %s, %u/%d and %x.
255
Masahiro Yamadaacede7a2017-12-04 12:37:00 +0900256config PANIC_HANG
257 bool "Do not reset the system on fatal error"
258 help
259 Define this option to stop the system in case of a fatal error,
260 so that you have to reset it manually. This is probably NOT a good
261 idea for an embedded system where you want the system to reboot
262 automatically as fast as possible, but it may be useful during
263 development since you can try to debug the conditions that lead to
264 the situation.
265
Joe Hershberger937d3e82015-04-21 17:02:42 -0500266config REGEX
267 bool "Enable regular expression support"
Joe Hershberger8ab8b722015-06-22 17:57:36 -0500268 default y if NET
Joe Hershberger937d3e82015-04-21 17:02:42 -0500269 help
270 If this variable is defined, U-Boot is linked against the
271 SLRE (Super Light Regular Expression) library, which adds
272 regex support to some commands, for example "env grep" and
273 "setexpr".
274
Adam Ford38003a62018-02-06 10:18:18 -0600275choice
276 prompt "Pseudo-random library support type"
Heinrich Schuchardtb2e67a22020-01-19 19:28:12 +0100277 depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID || \
Heinrich Schuchardtba9c44e2020-11-20 12:55:22 +0100278 RNG_SANDBOX || UT_LIB && AES || FAT_WRITE
Adam Ford38003a62018-02-06 10:18:18 -0600279 default LIB_RAND
Masahiro Yamada2743c072015-06-11 19:16:43 +0900280 help
Adam Ford38003a62018-02-06 10:18:18 -0600281 Select the library to provide pseudo-random number generator
282 functions. LIB_HW_RAND supports certain hardware engines that
283 provide this functionality. If in doubt, select LIB_RAND.
284
285config LIB_RAND
286 bool "Pseudo-random library support"
287
288config LIB_HW_RAND
Marcin Juszkiewicza360c2c2020-05-26 19:07:15 +0200289 bool "HW Engine for random library support"
Adam Ford38003a62018-02-06 10:18:18 -0600290
291endchoice
Michal Simek2c1b1db2015-05-25 11:37:22 +0200292
Simon Glassa6cee932021-12-01 09:02:36 -0700293config SUPPORT_ACPI
294 bool
295 help
296 Enable this if your arch or board can support generating ACPI
297 (Advanced Configuration and Power Interface) tables. In this case
298 U-Boot can generate these tables and pass them to the Operating
299 System.
300
Simon Glasse264be42023-05-04 16:54:57 -0600301config ACPI
302 bool "Enable support for ACPI libraries"
303 depends on SUPPORT_ACPI
304 help
305 Provides library functions for dealing with ACPI tables. This does
306 not necessarily include generation of tables
307 (see GENERATE_ACPI_TABLE), but allows for tables to be located.
308
Simon Glass1a2fcc22023-09-19 21:00:06 -0600309config SPL_ACPI
310 bool "Enable support for ACPI libraries in SPL"
311 depends on SPL && SUPPORT_ACPI
312 help
313 Provides library functions for dealing with ACPI tables in SPL. This
314 does not necessarily include generation of tables
315 (see GENERATE_ACPI_TABLE), but allows for tables to be located.
316
Simon Glassa6cee932021-12-01 09:02:36 -0700317config GENERATE_ACPI_TABLE
318 bool "Generate an ACPI (Advanced Configuration and Power Interface) table"
Simon Glasse264be42023-05-04 16:54:57 -0600319 depends on ACPI
Simon Glassa6cee932021-12-01 09:02:36 -0700320 select QFW if QEMU
321 help
322 The Advanced Configuration and Power Interface (ACPI) specification
323 provides an open standard for device configuration and management
324 by the operating system. It defines platform-independent interfaces
325 for configuration and power management monitoring.
326
Patrick Rudolph2f6f8d92024-10-23 15:20:13 +0200327config ACPI_PARKING_PROTOCOL
328 bool "Support ACPI parking protocol method"
329 depends on GENERATE_ACPI_TABLE
330 depends on ARMV8_MULTIENTRY
331 depends on BLOBLIST_TABLES
332 default y if !SEC_FIRMWARE_ARMV8_PSCI && !ARMV8_PSCI
333 help
334 Say Y here to support "ACPI parking protocol" enable method
335 for booting Linux.
336
337 To use this feature, you must do:
338 - Bring secondary CPUs into U-Boot proper in a board-specific
339 manner. This must be done *after* relocation. Otherwise, the
340 secondary CPUs will spin in unprotected memory-area because the
341 master CPU protects the relocated spin code.
342
Simon Glasse2f94ae2017-04-02 09:50:28 -0600343config SPL_TINY_MEMSET
344 bool "Use a very small memset() in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400345 depends on SPL
Simon Glasse2f94ae2017-04-02 09:50:28 -0600346 help
347 The faster memset() is the arch-specific one (if available) enabled
348 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
349 better performance by writing a word at a time. But in very
Chris Packham1c3b7ba2019-01-13 22:13:28 +1300350 size-constrained environments even this may be too big. Enable this
Simon Glasse2f94ae2017-04-02 09:50:28 -0600351 option to reduce code size slightly at the cost of some speed.
352
Philipp Tomsichfefc4ec2017-08-03 22:52:04 +0200353config TPL_TINY_MEMSET
354 bool "Use a very small memset() in TPL"
Tom Rini36a4ca02022-06-08 08:24:39 -0400355 depends on TPL
Philipp Tomsichfefc4ec2017-08-03 22:52:04 +0200356 help
357 The faster memset() is the arch-specific one (if available) enabled
358 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
359 better performance by writing a word at a time. But in very
Chris Packham1c3b7ba2019-01-13 22:13:28 +1300360 size-constrained environments even this may be too big. Enable this
Philipp Tomsichfefc4ec2017-08-03 22:52:04 +0200361 option to reduce code size slightly at the cost of some speed.
362
Boris Brezillon627dc182017-02-27 18:22:05 +0100363config RBTREE
364 bool
365
Nandor Hand5ea84a2017-11-08 15:35:14 +0000366config BITREVERSE
367 bool "Bit reverse library from Linux"
368
Simon Glassbfce7fc2019-04-08 13:20:51 -0600369config TRACE
370 bool "Support for tracing of function calls and timing"
371 imply CMD_TRACE
Simon Glass6b5424a2022-12-21 16:08:26 -0700372 imply TIMER_EARLY
Simon Glassbfce7fc2019-04-08 13:20:51 -0600373 help
374 Enables function tracing within U-Boot. This allows recording of call
375 traces including timing information. The command can write data to
376 memory for exporting for analysis (e.g. using bootchart).
Vincent Stehlé28c23622024-04-11 18:44:02 +0200377 See doc/develop/trace.rst for full details.
Simon Glassbfce7fc2019-04-08 13:20:51 -0600378
Simon Glass445078e2019-04-08 13:20:52 -0600379config TRACE_BUFFER_SIZE
380 hex "Size of trace buffer in U-Boot"
381 depends on TRACE
382 default 0x01000000
383 help
384 Sets the size of the trace buffer in U-Boot. This is allocated from
385 memory during relocation. If this buffer is too small, the trace
386 history will be truncated, with later records omitted.
387
388 If early trace is enabled (i.e. before relocation), this buffer must
389 be large enough to include all the data from the early trace buffer as
390 well, since this is copied over to the main buffer during relocation.
391
392 A trace record is emitted for each function call and each record is
393 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
394 the size is too small then 'trace stats' will show a message saying
395 how many records were dropped due to buffer overflow.
396
Heinrich Schuchardtc1a73792019-06-02 13:30:09 +0200397config TRACE_CALL_DEPTH_LIMIT
398 int "Trace call depth limit"
399 depends on TRACE
400 default 15
401 help
402 Sets the maximum call depth up to which function calls are recorded.
403
Simon Glass445078e2019-04-08 13:20:52 -0600404config TRACE_EARLY
405 bool "Enable tracing before relocation"
406 depends on TRACE
407 help
408 Sometimes it is helpful to trace execution of U-Boot before
409 relocation. This is possible by using a arch-specific, fixed buffer
410 position in memory. Enable this option to start tracing as early as
411 possible after U-Boot starts.
412
413config TRACE_EARLY_SIZE
414 hex "Size of early trace buffer in U-Boot"
415 depends on TRACE_EARLY
416 default 0x00100000
417 help
418 Sets the size of the early trace buffer in bytes. This is used to hold
419 tracing information before relocation.
420
Heinrich Schuchardtc1a73792019-06-02 13:30:09 +0200421config TRACE_EARLY_CALL_DEPTH_LIMIT
422 int "Early trace call depth limit"
423 depends on TRACE_EARLY
Simon Glass971574d2023-01-15 14:15:44 -0700424 default 15
Heinrich Schuchardtc1a73792019-06-02 13:30:09 +0200425 help
426 Sets the maximum call depth up to which function calls are recorded
427 during early tracing.
428
Simon Glass445078e2019-04-08 13:20:52 -0600429config TRACE_EARLY_ADDR
430 hex "Address of early trace buffer in U-Boot"
431 depends on TRACE_EARLY
Sughosh Ganu3f768682024-08-26 17:29:32 +0530432 default 0x00200000
Simon Glass445078e2019-04-08 13:20:52 -0600433 help
434 Sets the address of the early trace buffer in U-Boot. This memory
435 must be accessible before relocation.
436
437 A trace record is emitted for each function call and each record is
438 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
439 the size is too small then the message which says the amount of early
440 data being coped will the the same as the
441
Loic Poulain12797e62021-11-25 18:16:14 +0100442config CIRCBUF
443 bool "Enable circular buffer support"
444
Michal Simekdd5000ef2024-04-16 08:55:16 +0200445source "lib/dhry/Kconfig"
Simon Glass99dbe4b2015-06-23 15:38:23 -0600446
Raymond Mao87010c32024-10-03 14:50:15 -0700447menu "Alternative crypto libraries"
448source lib/mbedtls/Kconfig
449endmenu
450
Simon Glass528fdd12017-04-26 22:27:49 -0600451menu "Security support"
452
453config AES
454 bool "Support the AES algorithm"
455 help
456 This provides a means to encrypt and decrypt data using the AES
457 (Advanced Encryption Standard). This algorithm uses a symetric key
458 and is widely used as a streaming cipher. Different key lengths are
459 supported by the algorithm but only a 128-bit key is supported at
460 present.
461
Michal Simekdd5000ef2024-04-16 08:55:16 +0200462source "lib/ecdsa/Kconfig"
463source "lib/rsa/Kconfig"
464source "lib/crypto/Kconfig"
465source "lib/crypt/Kconfig"
Ruchika Gupta2c3822e2015-01-23 16:01:51 +0530466
Simon Glass350497c2015-08-22 18:31:19 -0600467config TPM
468 bool "Trusted Platform Module (TPM) Support"
Simon Glasscf294b02015-10-03 06:39:36 -0600469 depends on DM
Sughosh Ganu9737fab2022-07-22 21:32:04 +0530470 imply DM_RNG
Eddie James8ed7bb32023-10-24 10:43:49 -0500471 select SHA1
Simon Glass350497c2015-08-22 18:31:19 -0600472 help
473 This enables support for TPMs which can be used to provide security
474 features for your board. The TPM can be connected via LPC or I2C
475 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
476 command to interactive the TPM. Driver model support is provided
477 for the low-level TPM interface, but only one TPM is supported at
478 a time by the TPM library.
Ilias Apalodimas1e665f92024-06-23 14:48:18 +0300479 For size reasons only SHA1 is selected which is supported on TPM1.2.
480 If you want a fully functional TPM enable all hashing algorithms.
481 If you enabled measured boot all hashing algorithms are selected.
Simon Glass350497c2015-08-22 18:31:19 -0600482
Simon Glass93a45b12018-10-01 12:22:19 -0600483config SPL_TPM
484 bool "Trusted Platform Module (TPM) Support in SPL"
485 depends on SPL_DM
Simon Glass2b95b492023-01-07 14:57:20 -0700486 imply SPL_CRC8
Simon Glass93a45b12018-10-01 12:22:19 -0600487 help
488 This enables support for TPMs which can be used to provide security
489 features for your board. The TPM can be connected via LPC or I2C
490 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
491 command to interactive the TPM. Driver model support is provided
492 for the low-level TPM interface, but only one TPM is supported at
493 a time by the TPM library.
494
495config TPL_TPM
496 bool "Trusted Platform Module (TPM) Support in TPL"
497 depends on TPL_DM
498 help
499 This enables support for TPMs which can be used to provide security
500 features for your board. The TPM can be connected via LPC or I2C
501 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
502 command to interactive the TPM. Driver model support is provided
503 for the low-level TPM interface, but only one TPM is supported at
504 a time by the TPM library.
505
Simon Glasse7ca7da2022-04-30 00:56:53 -0600506config VPL_TPM
507 bool "Trusted Platform Module (TPM) Support in VPL"
508 depends on VPL_DM
509 help
510 This enables support for TPMs which can be used to provide security
511 features for your board. The TPM can be connected via LPC or I2C
512 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
513 command to interactive the TPM. Driver model support is provided
514 for the low-level TPM interface, but only one TPM is supported at
515 a time by the TPM library.
516
Raymond Maof0c91252025-01-27 06:58:48 -0800517config TPM_PCR_ALLOCATE
518 bool "Re-configurate TPM algorithms in run-time (PCR allocate)"
519 depends on TPM_V2 && (MEASURED_BOOT || EFI_TCG2_PROTOCOL)
520 help
521 This enables a detection for the dismatches of algorithms among TPM
522 device, eventlog from previous boot stage and U-Boot support.
523 A PCR allocate command will be sent to reconfigurate the TPM device
524 in run-time to make sure algorithms in TPM device, eventlog and
525 U-Boot are aligned with each other.
526 A system reboot will be proceeded after then to activate the new
527 algorithms.
528
Simon Glass528fdd12017-04-26 22:27:49 -0600529endmenu
530
Igor Opaniuk525d1d82018-06-03 21:56:37 +0300531menu "Android Verified Boot"
532
533config LIBAVB
534 bool "Android Verified Boot 2.0 support"
535 depends on ANDROID_BOOT_IMAGE
Igor Opaniuk525d1d82018-06-03 21:56:37 +0300536 help
537 This enables support of Android Verified Boot 2.0 which can be used
538 to assure the end user of the integrity of the software running on a
539 device. Introduces such features as boot chain of trust, rollback
540 protection etc.
541
542endmenu
543
gaurav ranaef201592015-02-20 12:51:46 +0530544menu "Hashing Support"
545
Qu Wenruob98e8a22021-12-27 14:12:07 +0800546config BLAKE2
547 bool "Enable BLAKE2 support"
548 help
549 This option enables support of hashing using BLAKE2B algorithm.
550 The hash is calculated in software.
551 The BLAKE2 algorithm produces a hash value (digest) between 1 and
552 64 bytes.
553
gaurav ranaef201592015-02-20 12:51:46 +0530554config SHA1
555 bool "Enable SHA1 support"
556 help
557 This option enables support of hashing using SHA1 algorithm.
558 The hash is calculated in software.
559 The SHA1 algorithm produces a 160-bit (20-byte) hash value
560 (digest).
561
562config SHA256
563 bool "Enable SHA256 support"
564 help
565 This option enables support of hashing using SHA256 algorithm.
566 The hash is calculated in software.
567 The SHA256 algorithm produces a 256-bit (32-byte) hash value
568 (digest).
569
Reuben Dowle1908fd92020-04-16 17:36:52 +1200570config SHA512
571 bool "Enable SHA512 support"
Manorit Chawdhrya58132a2023-07-14 11:22:39 +0530572 default y if TI_SECURE_DEVICE && FIT_SIGNATURE
Reuben Dowle1908fd92020-04-16 17:36:52 +1200573 help
574 This option enables support of hashing using SHA512 algorithm.
575 The hash is calculated in software.
576 The SHA512 algorithm produces a 512-bit (64-byte) hash value
577 (digest).
578
579config SHA384
580 bool "Enable SHA384 support"
Alexandru Gagniuc5df5d692021-09-02 19:54:18 -0500581 select SHA512
Reuben Dowle1908fd92020-04-16 17:36:52 +1200582 help
583 This option enables support of hashing using SHA384 algorithm.
Alexandru Gagniuc5df5d692021-09-02 19:54:18 -0500584 The hash is calculated in software. This is also selects SHA512,
585 because these implementations share the bulk of the code..
Reuben Dowle1908fd92020-04-16 17:36:52 +1200586 The SHA384 algorithm produces a 384-bit (48-byte) hash value
587 (digest).
588
gaurav ranaef201592015-02-20 12:51:46 +0530589config SHA_HW_ACCEL
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200590 bool "Enable hardware acceleration for SHA hash functions"
gaurav ranaef201592015-02-20 12:51:46 +0530591 help
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200592 This option enables hardware acceleration for the SHA1 and SHA256
593 hashing algorithms. This affects the 'hash' command and also the
594 hash_lookup_algo() function.
595
Simon Glassf7b37c22021-09-25 19:43:17 -0600596if SPL
597
Oleksandr Suvorov15a23ca2023-08-03 19:05:40 +0300598config SPL_CRC32
599 bool "Enable CRC32 support in SPL"
600 default y if SPL_LEGACY_IMAGE_SUPPORT || SPL_EFI_PARTITION
601 default y if SPL_ENV_SUPPORT || TPL_BLOBLIST
602 help
603 This option enables support of hashing using CRC32 algorithm.
604 The CRC32 algorithm produces 32-bit checksum value. For FIT
605 images, this is the least secure type of checksum, suitable for
606 detected accidental image corruption. For secure applications you
607 should consider SHA256 or SHA384.
608
Simon Glassf7b37c22021-09-25 19:43:17 -0600609config SPL_SHA1
610 bool "Enable SHA1 support in SPL"
611 default y if SHA1
612 help
613 This option enables support of hashing using SHA1 algorithm.
614 The hash is calculated in software.
615 The SHA1 algorithm produces a 160-bit (20-byte) hash value
616 (digest).
617
618config SPL_SHA256
619 bool "Enable SHA256 support in SPL"
620 default y if SHA256
621 help
622 This option enables support of hashing using SHA256 algorithm.
623 The hash is calculated in software.
624 The SHA256 algorithm produces a 256-bit (32-byte) hash value
625 (digest).
626
627config SPL_SHA512
628 bool "Enable SHA512 support in SPL"
629 default y if SHA512
630 help
631 This option enables support of hashing using SHA512 algorithm.
632 The hash is calculated in software.
633 The SHA512 algorithm produces a 512-bit (64-byte) hash value
634 (digest).
635
636config SPL_SHA384
637 bool "Enable SHA384 support in SPL"
638 default y if SHA384
639 select SPL_SHA512
640 help
641 This option enables support of hashing using SHA384 algorithm.
642 The hash is calculated in software. This is also selects SHA512,
643 because these implementations share the bulk of the code..
644 The SHA384 algorithm produces a 384-bit (48-byte) hash value
645 (digest).
646
Simon Glass383dd572021-09-25 19:43:18 -0600647config SPL_SHA_HW_ACCEL
648 bool "Enable hardware acceleration for SHA hash functions"
649 default y if SHA_HW_ACCEL
650 help
651 This option enables hardware acceleration for the SHA1 and SHA256
652 hashing algorithms. This affects the 'hash' command and also the
653 hash_lookup_algo() function.
654
655config SPL_SHA_PROG_HW_ACCEL
656 bool "Enable Progressive hashing support using hardware in SPL"
657 depends on SHA_PROG_HW_ACCEL
658 default y
659 help
660 This option enables hardware-acceleration for SHA progressive
661 hashing.
662 Data can be streamed in a block at a time and the hashing is
663 performed in hardware.
664
Simon Glassf7b37c22021-09-25 19:43:17 -0600665endif
666
Simon Glass540883b2023-02-22 09:34:01 -0700667config VPL_SHA1
668 bool "Enable SHA1 support in VPL"
669 depends on VPL
670 default y if SHA1
671 help
672 This option enables support of hashing using SHA1 algorithm.
673 The hash is calculated in software.
674 The SHA1 algorithm produces a 160-bit (20-byte) hash value
675 (digest).
676
677config VPL_SHA256
678 bool "Enable SHA256 support in VPL"
679 depends on VPL
680 default y if SHA256
681 help
682 This option enables support of hashing using SHA256 algorithm.
683 The hash is calculated in software.
684 The SHA256 algorithm produces a 256-bit (32-byte) hash value
685 (digest).
686
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200687if SHA_HW_ACCEL
688
689config SHA512_HW_ACCEL
690 bool "Enable hardware acceleration for SHA512"
Alexandru Gagniuc5df5d692021-09-02 19:54:18 -0500691 depends on SHA512
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200692 help
693 This option enables hardware acceleration for the SHA384 and SHA512
694 hashing algorithms. This affects the 'hash' command and also the
695 hash_lookup_algo() function.
gaurav ranaef201592015-02-20 12:51:46 +0530696
697config SHA_PROG_HW_ACCEL
698 bool "Enable Progressive hashing support using hardware"
gaurav ranaef201592015-02-20 12:51:46 +0530699 help
Joel Stanley92efc1f2021-02-17 13:50:42 +1030700 This option enables hardware-acceleration for SHA progressive
701 hashing.
702 Data can be streamed in a block at a time and the hashing is
703 performed in hardware.
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000704
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200705endif
706
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000707config MD5
Simon Glassd33d0db2020-05-06 08:03:56 -0600708 bool "Support MD5 algorithm"
709 help
710 This option enables MD5 support. MD5 is an algorithm designed
711 in 1991 that produces a 16-byte digest (or checksum) from its input
712 data. It has a number of vulnerabilities which preclude its use in
713 security applications, but it can be useful for providing a quick
714 checksum of a block of data.
715
716config SPL_MD5
717 bool "Support MD5 algorithm in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400718 depends on SPL
Simon Glassd33d0db2020-05-06 08:03:56 -0600719 help
720 This option enables MD5 support in SPL. MD5 is an algorithm designed
721 in 1991 that produces a 16-byte digest (or checksum) from its input
722 data. It has a number of vulnerabilities which preclude its use in
723 security applications, but it can be useful for providing a quick
724 checksum of a block of data.
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000725
Simon Glass2b95b492023-01-07 14:57:20 -0700726config CRC8
727 def_bool y
728 help
729 Enables CRC8 support in U-Boot. This is normally required. CRC8 is
730 a simple and fast checksumming algorithm which does a bytewise
731 checksum with feedback to produce an 8-bit result. The code is small
732 and it does not require a lookup table (unlike CRC32).
733
734config SPL_CRC8
735 bool "Support CRC8 in SPL"
736 depends on SPL
737 help
738 Enables CRC8 support in SPL. This is not normally required. CRC8 is
739 a simple and fast checksumming algorithm which does a bytewise
740 checksum with feedback to produce an 8-bit result. The code is small
741 and it does not require a lookup table (unlike CRC32).
742
Simon Glass4649af32024-12-19 11:29:05 -0700743config TPL_CRC8
744 bool "Support CRC8 in TPL"
745 depends on TPL
746 help
747 Enables CRC8 support in TPL. This is not normally required. CRC8 is
748 a simple and fast checksumming algorithm which does a bytewise
749 checksum with feedback to produce an 8-bit result. The code is small
750 and it does not require a lookup table (unlike CRC32).
751
752config VPL_CRC8
753 bool "Support CRC8 in VPL"
754 depends on VPL
755 help
756 Enables CRC8 support in VPL. This is not normally required. CRC8 is
757 a simple and fast checksumming algorithm which does a bytewise
758 checksum with feedback to produce an 8-bit result. The code is small
759 and it does not require a lookup table (unlike CRC32).
760
Sean Anderson01349c12023-10-14 16:47:49 -0400761config SPL_CRC16
762 bool "Support CRC16 in SPL"
763 depends on SPL
764 help
765 Enables CRC16 support in SPL. This is not normally required.
766
Simon Glass577226c2021-09-25 19:43:24 -0600767config CRC32
768 def_bool y
769 help
770 Enables CRC32 support in U-Boot. This is normally required.
771
Marek Behúncdccc032017-09-03 17:00:23 +0200772config CRC32C
773 bool
774
Marek Behúnb139a7f2019-04-29 22:40:43 +0200775config XXHASH
776 bool
777
gaurav ranaef201592015-02-20 12:51:46 +0530778endmenu
779
Julius Wernerf41a3ca2015-10-06 20:03:53 -0700780menu "Compression Support"
781
782config LZ4
783 bool "Enable LZ4 decompression support"
784 help
785 If this option is set, support for LZ4 compressed images
786 is included. The LZ4 algorithm can run in-place as long as the
787 compressed image is loaded to the end of the output buffer, and
788 trades lower compression ratios for much faster decompression.
Patrick Delaunaycd831af2021-03-10 10:16:28 +0100789
Julius Wernerf41a3ca2015-10-06 20:03:53 -0700790 NOTE: This implements the release version of the LZ4 frame
791 format as generated by default by the 'lz4' command line tool.
792 This is not the same as the outdated, less efficient legacy
793 frame format currently (2015) implemented in the Linux kernel
794 (generated by 'lz4 -l'). The two formats are incompatible.
795
Simon Glass264aa5f2017-05-17 03:25:42 -0600796config LZMA
797 bool "Enable LZMA decompression support"
798 help
799 This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
800 a dictionary compression algorithm that provides a high compression
801 ratio and fairly fast decompression speed. See also
802 CONFIG_CMD_LZMADEC which provides a decode command.
803
Boris Brezillonaa57d0f2017-02-27 18:22:06 +0100804config LZO
Tom Rinic20bb732017-07-22 18:36:16 -0400805 bool "Enable LZO decompression support"
806 help
Oleksandr Suvorov30a4c312021-09-01 16:05:08 +0300807 This enables support for the LZO compression algorithm.
York Suna6945fe2017-08-15 11:14:43 -0700808
Marek Vasutaeaa29d2019-03-08 16:06:55 +0100809config GZIP
Heiko Schocherb93cc602019-04-29 08:59:38 +0200810 bool "Enable gzip decompression support"
Marek Vasutaeaa29d2019-03-08 16:06:55 +0100811 select ZLIB
812 default y
813 help
814 This enables support for GZIP compression algorithm.
815
Joao Marcos Costaae8abb12020-07-30 15:33:49 +0200816config ZLIB_UNCOMPRESS
817 bool "Enables zlib's uncompress() functionality"
818 help
819 This enables an extra zlib functionality: the uncompress() function,
820 which decompresses data from a buffer into another, knowing their
821 sizes. Unlike gunzip(), there is no header parsing.
822
Michael Walle3a6e3512020-05-22 14:07:36 +0200823config GZIP_COMPRESSED
824 bool
825 select ZLIB
826
Atish Patra1fa79622020-03-05 16:24:21 -0800827config BZIP2
828 bool "Enable bzip2 decompression support"
829 help
830 This enables support for BZIP2 compression algorithm.
831
Marek Vasutaeaa29d2019-03-08 16:06:55 +0100832config ZLIB
833 bool
834 default y
835 help
836 This enables ZLIB compression lib.
837
Marek Behúne87e2002019-04-29 22:40:44 +0200838config ZSTD
839 bool "Enable Zstandard decompression support"
840 select XXHASH
841 help
842 This enables Zstandard decompression library.
843
Brandon Maierdbe88da2023-01-12 10:27:45 -0600844if ZSTD
845
846config ZSTD_LIB_MINIFY
847 bool "Minify Zstandard code"
848 default y
849 help
850 This disables various optional components and changes the
851 compilation flags to prioritize space-saving.
852
853 For detailed info, see zstd's lib/README.md
854
855 https://github.com/facebook/zstd/blob/dev/lib/README.md
856
857endif
858
Simon Glass1af8b152023-02-22 09:33:54 -0700859config SPL_BZIP2
860 bool "Enable bzip2 decompression support for SPL build"
861 depends on SPL
862 help
863 This enables support for bzip2 compression algorithm for SPL boot.
864
Simon Glasse107bcd2018-11-06 15:21:30 -0700865config SPL_LZ4
866 bool "Enable LZ4 decompression support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400867 depends on SPL
Simon Glasse107bcd2018-11-06 15:21:30 -0700868 help
Marcin Juszkiewicza360c2c2020-05-26 19:07:15 +0200869 This enables support for the LZ4 decompression algorithm in SPL. LZ4
Simon Glasse107bcd2018-11-06 15:21:30 -0700870 is a lossless data compression algorithm that is focused on
871 fast compression and decompression speed. It belongs to the LZ77
872 family of byte-oriented compression schemes.
873
Simon Glass2d311212024-12-19 11:29:03 -0700874config TPL_LZ4
875 bool "Enable LZ4 decompression support in TPL"
876 depends on TPL
877 help
878 This enables support for the LZ4 decompression algorithm in TPL. LZ4
879 is a lossless data compression algorithm that is focused on
880 fast compression and decompression speed. It belongs to the LZ77
881 family of byte-oriented compression schemes.
882
883config VPL_LZ4
884 bool "Enable LZ4 decompression support in VPL"
885 depends on VPL
886 help
887 This enables support for the LZ4 decompression algorithm in VPL. LZ4
888 is a lossless data compression algorithm that is focused on
889 fast compression and decompression speed. It belongs to the LZ77
890 family of byte-oriented compression schemes.
891
developer6a4e1d32020-04-21 09:28:38 +0200892config SPL_LZMA
893 bool "Enable LZMA decompression support for SPL build"
Tom Rini0a83cc22022-06-10 23:03:09 -0400894 depends on SPL
developer6a4e1d32020-04-21 09:28:38 +0200895 help
Marcin Juszkiewicza360c2c2020-05-26 19:07:15 +0200896 This enables support for LZMA compression algorithm for SPL boot.
developer6a4e1d32020-04-21 09:28:38 +0200897
Simon Glass2d311212024-12-19 11:29:03 -0700898config TPL_LZMA
899 bool "Enable LZMA decompression support for TPL build"
900 depends on TPL
901 help
902 This enables support for LZMA compression algorithm for TPL boot.
903
Simon Glasse7ca7da2022-04-30 00:56:53 -0600904config VPL_LZMA
905 bool "Enable LZMA decompression support for VPL build"
906 default y if LZMA
907 help
908 This enables support for LZMA compression algorithm for VPL boot.
909
Jean-Jacques Hiblotdbde2882017-09-15 12:57:30 +0200910config SPL_LZO
911 bool "Enable LZO decompression support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400912 depends on SPL
Jean-Jacques Hiblotdbde2882017-09-15 12:57:30 +0200913 help
914 This enables support for LZO compression algorithm in the SPL.
915
York Suna6945fe2017-08-15 11:14:43 -0700916config SPL_GZIP
917 bool "Enable gzip decompression support for SPL build"
918 select SPL_ZLIB
919 help
Oleksandr Suvorov30a4c312021-09-01 16:05:08 +0300920 This enables support for the GZIP compression algorithm for SPL boot.
York Suna6945fe2017-08-15 11:14:43 -0700921
Simon Glass2d311212024-12-19 11:29:03 -0700922config TPL_GZIP
923 bool "Enable gzip decompression support for SPL build"
924 select TPL_ZLIB
925 help
926 This enables support for the GZIP compression algorithm for TPL
927
York Suna6945fe2017-08-15 11:14:43 -0700928config SPL_ZLIB
929 bool
930 help
931 This enables compression lib for SPL boot.
932
Simon Glass2d311212024-12-19 11:29:03 -0700933config TPL_ZLIB
934 bool
935 help
936 This enables compression lib for TPL
937
Marek Behúne87e2002019-04-29 22:40:44 +0200938config SPL_ZSTD
939 bool "Enable Zstandard decompression support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400940 depends on SPL
Marek Behúne87e2002019-04-29 22:40:44 +0200941 select XXHASH
942 help
943 This enables Zstandard decompression library in the SPL.
944
Julius Wernerf41a3ca2015-10-06 20:03:53 -0700945endmenu
946
Przemyslaw Marczak37550132015-04-20 20:07:40 +0200947config ERRNO_STR
948 bool "Enable function for getting errno-related string message"
949 help
950 The function errno_str(int errno), returns a pointer to the errno
951 corresponding text message:
952 - if errno is null or positive number - a pointer to "Success" message
953 - if errno is negative - a pointer to errno related message
954
Alexey Brodkin2d2fa492018-06-05 17:17:57 +0300955config HEXDUMP
956 bool "Enable hexdump"
957 help
958 This enables functions for printing dumps of binary data.
959
Simon Glassa37fd4d2020-09-12 11:13:35 -0600960config SPL_HEXDUMP
961 bool "Enable hexdump in SPL"
Heinrich Schuchardt11df0722021-07-24 17:35:46 +0200962 depends on SPL && HEXDUMP
Simon Glassa37fd4d2020-09-12 11:13:35 -0600963 help
964 This enables functions for printing dumps of binary data in
965 SPL.
966
Sean Anderson3b4a6f52020-10-27 19:55:36 -0400967config GETOPT
968 bool "Enable getopt"
969 help
970 This enables functions for parsing command-line options.
971
Simon Glassa66c5412016-02-22 22:55:42 -0700972config OF_LIBFDT
973 bool "Enable the FDT library"
974 default y if OF_CONTROL
975 help
976 This enables the FDT library (libfdt). It provides functions for
977 accessing binary device tree images in memory, such as adding and
Anatolij Gustschinda707d42017-08-18 17:58:51 +0200978 removing nodes and properties, scanning through the tree and finding
Simon Glassa66c5412016-02-22 22:55:42 -0700979 particular compatible nodes. The library operates on a flattened
980 version of the device tree.
981
Simon Glassc48044d2019-10-27 09:47:40 -0600982config OF_LIBFDT_ASSUME_MASK
983 hex "Mask of conditions to assume for libfdt"
984 depends on OF_LIBFDT || FIT
Tom Rinif18679c2023-08-02 11:09:43 -0400985 default 0x0
Simon Glassc48044d2019-10-27 09:47:40 -0600986 help
987 Use this to change the assumptions made by libfdt about the
988 device tree it is working with. A value of 0 means that no assumptions
989 are made, and libfdt is able to deal with malicious data. A value of
990 0xff means all assumptions are made and any invalid data may cause
991 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
992
Maxime Ripard9e901ce2016-07-05 10:26:44 +0200993config OF_LIBFDT_OVERLAY
994 bool "Enable the FDT library overlay support"
Tom Rinic1e49ba2018-05-08 08:52:17 -0400995 depends on OF_LIBFDT
Praneeth Bajjuri7b71a012018-04-25 16:03:23 -0500996 default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
Maxime Ripard9e901ce2016-07-05 10:26:44 +0200997 help
998 This enables the FDT library (libfdt) overlay support.
999
Tom Rinid2cd4312022-08-02 07:33:27 -04001000config SYS_FDT_PAD
1001 hex "Maximum size of the FDT memory area passeed to the OS"
1002 depends on OF_LIBFDT
1003 default 0x13000 if FMAN_ENET || QE || U_QE
1004 default 0x3000
1005 help
1006 During OS boot, we allocate a region of memory within the bootmap
1007 for the FDT. This is the size that we will expand the FDT that we
1008 are using will be extended to be, in bytes.
1009
Simon Glass8b426922016-02-22 22:55:45 -07001010config SPL_OF_LIBFDT
1011 bool "Enable the FDT library for SPL"
Simon Glasse7ca7da2022-04-30 00:56:53 -06001012 depends on SPL_LIBGENERIC_SUPPORT
Simon Glass8b426922016-02-22 22:55:45 -07001013 default y if SPL_OF_CONTROL
1014 help
1015 This enables the FDT library (libfdt). It provides functions for
1016 accessing binary device tree images in memory, such as adding and
Anatolij Gustschinda707d42017-08-18 17:58:51 +02001017 removing nodes and properties, scanning through the tree and finding
Simon Glass8b426922016-02-22 22:55:45 -07001018 particular compatible nodes. The library operates on a flattened
1019 version of the device tree.
1020
Simon Glassc48044d2019-10-27 09:47:40 -06001021config SPL_OF_LIBFDT_ASSUME_MASK
1022 hex "Mask of conditions to assume for libfdt"
Tom Rini0a83cc22022-06-10 23:03:09 -04001023 depends on SPL_OF_LIBFDT || (FIT && SPL)
Simon Glassc48044d2019-10-27 09:47:40 -06001024 default 0xff
1025 help
1026 Use this to change the assumptions made by libfdt in SPL about the
1027 device tree it is working with. A value of 0 means that no assumptions
1028 are made, and libfdt is able to deal with malicious data. A value of
1029 0xff means all assumptions are made and any invalid data may cause
1030 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
1031
Simon Glassca8ec4b2018-10-01 12:22:21 -06001032config TPL_OF_LIBFDT
1033 bool "Enable the FDT library for TPL"
Simon Glasse7ca7da2022-04-30 00:56:53 -06001034 depends on TPL_LIBGENERIC_SUPPORT
Simon Glassca8ec4b2018-10-01 12:22:21 -06001035 default y if TPL_OF_CONTROL
1036 help
1037 This enables the FDT library (libfdt). It provides functions for
1038 accessing binary device tree images in memory, such as adding and
1039 removing nodes and properties, scanning through the tree and finding
1040 particular compatible nodes. The library operates on a flattened
1041 version of the device tree.
1042
Simon Glassc48044d2019-10-27 09:47:40 -06001043config TPL_OF_LIBFDT_ASSUME_MASK
1044 hex "Mask of conditions to assume for libfdt"
Tom Rini36a4ca02022-06-08 08:24:39 -04001045 depends on TPL_OF_LIBFDT || (FIT && TPL)
Simon Glassc48044d2019-10-27 09:47:40 -06001046 default 0xff
1047 help
1048 Use this to change the assumptions made by libfdt in TPL about the
1049 device tree it is working with. A value of 0 means that no assumptions
1050 are made, and libfdt is able to deal with malicious data. A value of
1051 0xff means all assumptions are made and any invalid data may cause
1052 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
1053
Simon Glasse7ca7da2022-04-30 00:56:53 -06001054config VPL_OF_LIBFDT
1055 bool "Enable the FDT library for VPL"
Tom Rini7fb323b2022-06-08 08:24:40 -04001056 depends on VPL
Simon Glasse7ca7da2022-04-30 00:56:53 -06001057 default y if VPL_OF_CONTROL && !VPL_OF_PLATDATA
1058 help
1059 This enables the FDT library (libfdt). It provides functions for
1060 accessing binary device tree images in memory, such as adding and
1061 removing nodes and properties, scanning through the tree and finding
1062 particular compatible nodes. The library operates on a flattened
1063 version of the device tree.
1064
1065config VPL_OF_LIBFDT_ASSUME_MASK
1066 hex "Mask of conditions to assume for libfdt"
Tom Rini7fb323b2022-06-08 08:24:40 -04001067 depends on VPL_OF_LIBFDT || (FIT && VPL)
Simon Glasse7ca7da2022-04-30 00:56:53 -06001068 default 0xff
1069 help
1070 Use this to change the assumptions made by libfdt in SPL about the
1071 device tree it is working with. A value of 0 means that no assumptions
1072 are made, and libfdt is able to deal with malicious data. A value of
1073 0xff means all assumptions are made and any invalid data may cause
1074 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
1075
Alexander Graffb228082016-08-19 01:23:23 +02001076menu "System tables"
Alexander Graf66f96e12016-08-19 01:23:29 +02001077 depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
Alexander Graffb228082016-08-19 01:23:23 +02001078
Simon Glass5d093f32020-11-04 09:57:25 -07001079config BLOBLIST_TABLES
1080 bool "Put tables in a bloblist"
Patrick Rudolphad392d52024-10-23 15:20:07 +02001081 depends on BLOBLIST
Simon Glass4d8c5202025-01-10 17:00:17 -07001082 default y if X86
Patrick Rudolphad392d52024-10-23 15:20:07 +02001083 default y if (ARM && EFI_LOADER && GENERATE_ACPI_TABLE)
1084 default n
Simon Glass5d093f32020-11-04 09:57:25 -07001085 help
Patrick Rudolphad392d52024-10-23 15:20:07 +02001086 On x86 normally tables are placed at address 0xf0000 and can be up
1087 to 64KB long. With this option, tables are instead placed in the
1088 bloblist with a pointer from 0xf0000. The size can then be larger
1089 and the tables can be placed high in memory.
1090 On other architectures the tables are always placed in high memory.
Simon Glass5d093f32020-11-04 09:57:25 -07001091
Alexander Graffb228082016-08-19 01:23:23 +02001092config GENERATE_SMBIOS_TABLE
1093 bool "Generate an SMBIOS (System Management BIOS) table"
Simon Glass5059dbe2023-09-19 21:00:13 -06001094 depends on SMBIOS
Alexander Graffb228082016-08-19 01:23:23 +02001095 default y
Alexander Graffb228082016-08-19 01:23:23 +02001096 help
1097 The System Management BIOS (SMBIOS) specification addresses how
1098 motherboard and system vendors present management information about
1099 their products in a standard format by extending the BIOS interface
1100 on Intel architecture systems.
1101
1102 Check http://www.dmtf.org/standards/smbios for details.
1103
Tom Rinid0dca222023-11-20 15:17:23 -05001104 See also SYSINFO_SMBIOS which allows SMBIOS values to be provided in
Simon Glass052a03e2020-11-05 06:32:11 -07001105 the devicetree.
1106
Raymond Maoa28ef802024-12-06 14:54:22 -08001107config GENERATE_SMBIOS_TABLE_VERBOSE
1108 bool "Generate a verbose SMBIOS (System Management BIOS) table"
1109 depends on GENERATE_SMBIOS_TABLE
1110 help
1111 Provide verbose SMBIOS information.
1112
Simon Glasse70648e2023-09-14 10:55:39 -06001113endmenu
1114
Tero Kristocfbe15c2021-06-11 11:45:02 +03001115config LIB_RATIONAL
1116 bool "enable continued fraction calculation routines"
1117
1118config SPL_LIB_RATIONAL
1119 bool "enable continued fraction calculation routines for SPL"
1120 depends on SPL
1121
AKASHI Takahirof7025262019-11-13 09:44:53 +09001122config ASN1_COMPILER
1123 bool
Philippe Reynes2aba9442022-03-28 22:56:54 +02001124 help
1125 ASN.1 (Abstract Syntax Notation One) is a standard interface
1126 description language for defining data structures that can be
1127 serialized and deserialized in a cross-platform way. It is
1128 broadly used in telecommunications and computer networking,
1129 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1130 This option enables the support of the asn1 compiler.
AKASHI Takahirof7025262019-11-13 09:44:53 +09001131
AKASHI Takahiro3a888712019-11-13 09:44:55 +09001132config ASN1_DECODER
1133 bool
1134 help
Philippe Reynes2aba9442022-03-28 22:56:54 +02001135 ASN.1 (Abstract Syntax Notation One) is a standard interface
1136 description language for defining data structures that can be
1137 serialized and deserialized in a cross-platform way. It is
1138 broadly used in telecommunications and computer networking,
1139 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1140 This option enables the support of the asn1 decoder.
AKASHI Takahiro3a888712019-11-13 09:44:55 +09001141
Philippe Reynescf538b52022-03-28 22:56:56 +02001142config SPL_ASN1_DECODER
1143 bool
1144 help
1145 ASN.1 (Abstract Syntax Notation One) is a standard interface
1146 description language for defining data structures that can be
1147 serialized and deserialized in a cross-platform way. It is
1148 broadly used in telecommunications and computer networking,
1149 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1150 This option enables the support of the asn1 decoder in the SPL.
1151
AKASHI Takahiro54923642019-11-13 09:44:57 +09001152config OID_REGISTRY
1153 bool
1154 help
Philippe Reynese35c3a22022-03-28 22:56:55 +02001155 In computing, object identifiers or OIDs are an identifier mechanism
1156 standardized by the International Telecommunication Union (ITU) and
1157 ISO/IEC for naming any object, concept, or "thing" with a globally
1158 unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier).
AKASHI Takahiro54923642019-11-13 09:44:57 +09001159 Enable fast lookup object identifier registry.
1160
Philippe Reynescf538b52022-03-28 22:56:56 +02001161config SPL_OID_REGISTRY
1162 bool
1163 help
1164 In computing, object identifiers or OIDs are an identifier mechanism
1165 standardized by the International Telecommunication Union (ITU) and
1166 ISO/IEC for naming any object, concept, or "thing" with a globally
1167 unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier).
1168 Enable fast lookup object identifier registry in the SPL.
1169
Simon Glass5059dbe2023-09-19 21:00:13 -06001170config SMBIOS
1171 bool "SMBIOS support"
1172 depends on X86 || EFI_LOADER
1173 default y
Simon Glassaadec122023-09-20 07:29:51 -06001174 select LAST_STAGE_INIT
Simon Glass5059dbe2023-09-19 21:00:13 -06001175 help
1176 Indicates that this platform can support System Management BIOS
1177 (SMBIOS) tables. These provide various pieces of information about
1178 the board, such as the manufacturer and the model name.
1179
1180 See GENERATE_SMBIOS_TABLE which controls whether U-Boot actually
1181 creates these tables, rather than them coming from a previous firmware
1182 stage.
1183
Christian Gmeiner19859982020-11-03 15:34:51 +01001184config SMBIOS_PARSER
1185 bool "SMBIOS parser"
1186 help
1187 A simple parser for SMBIOS data.
1188
Michal Simekdd5000ef2024-04-16 08:55:16 +02001189source "lib/optee/Kconfig"
Simon Glass9539e692015-07-31 09:31:36 -06001190
Thierry Reding52c7f1f32019-03-21 19:10:04 +01001191config TEST_FDTDEC
1192 bool "enable fdtdec test"
1193 depends on OF_LIBFDT
1194
AKASHI Takahiro51ba5222019-11-13 09:44:49 +09001195config LIB_DATE
1196 bool
1197
Keerthy76f361a2020-02-12 13:55:03 +05301198config LIB_ELF
1199 bool
1200 help
Patrick Delaunayfb67df82021-01-04 15:33:28 +01001201 Support basic elf loading/validating functions.
1202 This supports for 32 bit and 64 bit versions.
Keerthy76f361a2020-02-12 13:55:03 +05301203
Patrick Delaunayd62063d2021-03-10 10:16:25 +01001204config LMB
1205 bool "Enable the logical memory blocks library (lmb)"
Tom Rini53320122022-04-06 09:21:25 -04001206 default y if ARC || ARM || M68K || MICROBLAZE || MIPS || \
Patrick Delaunayd62063d2021-03-10 10:16:25 +01001207 NIOS2 || PPC || RISCV || SANDBOX || SH || X86 || XTENSA
Sughosh Ganuad3b6e92024-08-26 17:29:29 +05301208 select ARCH_MISC_INIT if PPC
Patrick Delaunayd62063d2021-03-10 10:16:25 +01001209 help
Sughosh Ganu69db78f2024-08-26 17:29:21 +05301210 Support the library logical memory blocks. This will require
1211 a malloc() implementation for defining the data structures
1212 needed for maintaining the LMB memory map.
1213
1214config SPL_LMB
1215 bool "Enable LMB module for SPL"
1216 depends on SPL && SPL_FRAMEWORK && SPL_SYS_MALLOC
1217 help
1218 Enable support for Logical Memory Block library routines in
1219 SPL. This will require a malloc() implementation for defining
1220 the data structures needed for maintaining the LMB memory map.
Patrick Delaunayd62063d2021-03-10 10:16:25 +01001221
Sughosh Ganu1a36d442024-10-15 21:07:11 +05301222config LMB_ARCH_MEM_MAP
1223 bool "Add an architecture specific memory map"
1224 depends on LMB
Sughosh Ganu526eebd2024-10-15 21:07:13 +05301225 default y if FSL_LAYERSCAPE || X86
Sughosh Ganu1a36d442024-10-15 21:07:11 +05301226 help
1227 Some architectures have special or unique aspects which need
1228 consideration when adding memory ranges to the list of available
1229 memory map. Enable this config in such scenarios which allow
1230 architectures and boards to define their own memory map.
1231
1232config SPL_LMB_ARCH_MEM_MAP
1233 bool "Add an architecture specific memory map"
1234 depends on SPL_LMB
1235 help
1236 Some architectures have special or unique scenarios which need
1237 consideration when adding memory ranges to the list of available
1238 memory map. Enable this config in such scenarios which allow
1239 architectures and boards to define their own memory map.
1240
Simon Glass42d97e52022-12-21 16:08:28 -07001241config PHANDLE_CHECK_SEQ
1242 bool "Enable phandle check while getting sequence number"
1243 help
1244 When there are multiple device tree nodes with same name,
Anand Moon6c368f42024-06-23 23:10:21 +05301245 enable this config option to distinguish them using
Simon Glass42d97e52022-12-21 16:08:28 -07001246 phandles in fdtdec_get_alias_seq() function.
1247
Eugen Hristevdb6bbcb2022-01-04 18:20:19 +02001248endmenu
Sughosh Ganu1cadae22022-10-21 18:16:03 +05301249
Michal Simekdd5000ef2024-04-16 08:55:16 +02001250source "lib/fwu_updates/Kconfig"