blob: 67a60160dac588720fd3ce7234e9154334f8c5d0 [file] [log] [blame]
Masahiro Yamadaed363232014-09-16 16:32:58 +09001menu "Library routines"
2
Marek Szyprowski69be8fd2020-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 Menge0103152021-02-25 17:22:36 +08009 This library only works in the post-relocation phase.
10
Marek Szyprowski69be8fd2020-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 Rini3b8dfc42022-11-16 13:10:38 -050018config SYS_TIMER_COUNTS_DOWN
Marek Vasutc61df342023-03-19 04:13:02 +010019 bool "System timer counts down rather than up"
Tom Rini3b8dfc42022-11-16 13:10:38 -050020
Simon Glass6405ab72021-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 Ford6ef2f902017-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 Glass3c10dc92019-12-06 21:41:34 -070038config BINMAN_FDT
39 bool "Allow access to binman information in the device tree"
Bin Meng56e72572021-02-03 21:20:02 +080040 depends on BINMAN && DM && OF_CONTROL
Bin Meng1621d3c2021-05-10 20:23:36 +080041 default y if OF_SEPARATE || OF_EMBED
Simon Glass3c10dc92019-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 Yamadab0928da2014-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 Glass1a46cb62021-07-02 12:36:17 -060056config CHARSET
57 bool
Simon Glass1a46cb62021-07-02 12:36:17 -060058
Faiz Abbas36c18772018-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 Meng2895c4b2018-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 Yamada45ccec82014-10-24 01:30:43 +090071config HAVE_PRIVATE_LIBGCC
72 bool
73
Adam Forda451bc22018-02-06 12:14:28 -060074config LIB_UUID
75 bool
Caleb Connolly4c5e1ff2024-08-30 13:34:32 +010076 select SHA1
Adam Forda451bc22018-02-06 12:14:28 -060077
AKASHI Takahiroa4dc3d52023-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 Glass3b510802023-02-22 09:34:11 -070085config SPL_LIB_UUID
86 depends on SPL
87 bool
88
Kautuk Consul1c03ab92022-12-07 17:12:34 +053089config SEMIHOSTING
90 bool "Support semihosting"
Kautuk Consulae3527f2022-12-07 17:12:35 +053091 depends on ARM || RISCV
Kautuk Consul1c03ab92022-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 Anderson47cfdb22023-10-27 16:40:15 -0400104 depends on SEMIHOSTING
Kautuk Consul1c03ab92022-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 Consulae3527f2022-12-07 17:12:35 +0530114 depends on SPL && (ARM || RISCV)
Kautuk Consul1c03ab92022-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 Anderson47cfdb22023-10-27 16:40:15 -0400127 depends on SPL_SEMIHOSTING
Kautuk Consulae3527f2022-12-07 17:12:35 +0530128 select ARMV8_SPL_EXCEPTION_VECTORS if ARM64
Kautuk Consul1c03ab92022-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 Kiernan14ad44a2018-04-19 04:32:54 +0000136config PRINTF
137 bool
138 default y
139
140config SPL_PRINTF
141 bool
142 select SPL_SPRINTF
Simon Glass27084c02019-09-25 08:56:27 -0600143 select SPL_STRTO if !SPL_USE_TINY_PRINTF
Alex Kiernan14ad44a2018-04-19 04:32:54 +0000144
145config TPL_PRINTF
146 bool
147 select TPL_SPRINTF
Simon Glass27084c02019-09-25 08:56:27 -0600148 select TPL_STRTO if !TPL_USE_TINY_PRINTF
Alex Kiernan14ad44a2018-04-19 04:32:54 +0000149
Simon Glass747093d2022-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 Kiernan14ad44a2018-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 Glass747093d2022-04-30 00:56:53 -0600165config VPL_SPRINTF
166 bool
167
Andrii Anisove87dfb02020-08-06 12:42:52 +0300168config SSCANF
169 bool
Andrii Anisove87dfb02020-08-06 12:42:52 +0300170
Alex Kiernan14ad44a2018-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 Glass747093d2022-04-30 00:56:53 -0600181config VPL_STRTO
182 bool
183
Alex Kiernanc232d142018-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 Yamada45ccec82014-10-24 01:30:43 +0900195config USE_PRIVATE_LIBGCC
196 bool "Use private libgcc"
197 depends on HAVE_PRIVATE_LIBGCC
Marek Vasut91b86e22016-05-26 18:01:47 +0200198 default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS)
Masahiro Yamada45ccec82014-10-24 01:30:43 +0900199 help
200 This option allows you to use the built-in libgcc implementation
Masahiro Yamada67976302016-03-30 20:17:42 +0900201 of U-Boot instead of the one provided by the compiler.
Masahiro Yamada45ccec82014-10-24 01:30:43 +0900202 If unsure, say N.
203
Masahiro Yamada8c688bc2014-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 Glass27084c02019-09-25 08:56:27 -0600212config SPL_USE_TINY_PRINTF
Thomas Hebb37ef1772019-11-10 08:23:53 -0800213 bool "Enable tiny printf() version in SPL"
Simon Glass27084c02019-09-25 08:56:27 -0600214 depends on SPL
Tom Rini2a51e162019-06-08 12:46:18 -0400215 default y
Stefan Roese7d9cde12015-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 Glass27084c02019-09-25 08:56:27 -0600224config TPL_USE_TINY_PRINTF
Thomas Hebb37ef1772019-11-10 08:23:53 -0800225 bool "Enable tiny printf() version in TPL"
Simon Glass27084c02019-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 Glass747093d2022-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 Yamada7e3caa82017-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 Hershberger1a606502015-04-21 17:02:42 -0500257config REGEX
258 bool "Enable regular expression support"
Joe Hershbergerf7848d92015-06-22 17:57:36 -0500259 default y if NET
Joe Hershberger1a606502015-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 Forda5a37562018-02-06 10:18:18 -0600266choice
267 prompt "Pseudo-random library support type"
Heinrich Schuchardt16112352020-01-19 19:28:12 +0100268 depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID || \
Heinrich Schuchardt28cef9c2020-11-20 12:55:22 +0100269 RNG_SANDBOX || UT_LIB && AES || FAT_WRITE
Adam Forda5a37562018-02-06 10:18:18 -0600270 default LIB_RAND
Masahiro Yamada3850dbe2015-06-11 19:16:43 +0900271 help
Adam Forda5a37562018-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 Juszkiewicz43e442a2020-05-26 19:07:15 +0200280 bool "HW Engine for random library support"
Adam Forda5a37562018-02-06 10:18:18 -0600281
282endchoice
Michal Simek9ba9e852015-05-25 11:37:22 +0200283
Simon Glasse1722fc2021-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 Glass0992a902023-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 Glass0c45c762023-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 Glasse1722fc2021-12-01 09:02:36 -0700308config GENERATE_ACPI_TABLE
309 bool "Generate an ACPI (Advanced Configuration and Power Interface) table"
Simon Glass0992a902023-05-04 16:54:57 -0600310 depends on ACPI
Simon Glasse1722fc2021-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
Simon Glassab4458b2017-04-02 09:50:28 -0600318config SPL_TINY_MEMSET
319 bool "Use a very small memset() in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400320 depends on SPL
Simon Glassab4458b2017-04-02 09:50:28 -0600321 help
322 The faster memset() is the arch-specific one (if available) enabled
323 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
324 better performance by writing a word at a time. But in very
Chris Packham6e705112019-01-13 22:13:28 +1300325 size-constrained environments even this may be too big. Enable this
Simon Glassab4458b2017-04-02 09:50:28 -0600326 option to reduce code size slightly at the cost of some speed.
327
Philipp Tomsich96b90822017-08-03 22:52:04 +0200328config TPL_TINY_MEMSET
329 bool "Use a very small memset() in TPL"
Tom Rini8bea4bf2022-06-08 08:24:39 -0400330 depends on TPL
Philipp Tomsich96b90822017-08-03 22:52:04 +0200331 help
332 The faster memset() is the arch-specific one (if available) enabled
333 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
334 better performance by writing a word at a time. But in very
Chris Packham6e705112019-01-13 22:13:28 +1300335 size-constrained environments even this may be too big. Enable this
Philipp Tomsich96b90822017-08-03 22:52:04 +0200336 option to reduce code size slightly at the cost of some speed.
337
Boris Brezillonaa049152017-02-27 18:22:05 +0100338config RBTREE
339 bool
340
Nandor Handa5337a2017-11-08 15:35:14 +0000341config BITREVERSE
342 bool "Bit reverse library from Linux"
343
Simon Glassa24a78d2019-04-08 13:20:51 -0600344config TRACE
345 bool "Support for tracing of function calls and timing"
346 imply CMD_TRACE
Simon Glass12619d42022-12-21 16:08:26 -0700347 imply TIMER_EARLY
Simon Glassa24a78d2019-04-08 13:20:51 -0600348 help
349 Enables function tracing within U-Boot. This allows recording of call
350 traces including timing information. The command can write data to
351 memory for exporting for analysis (e.g. using bootchart).
Vincent Stehlé6d9a8512024-04-11 18:44:02 +0200352 See doc/develop/trace.rst for full details.
Simon Glassa24a78d2019-04-08 13:20:51 -0600353
Simon Glass1c6eb072019-04-08 13:20:52 -0600354config TRACE_BUFFER_SIZE
355 hex "Size of trace buffer in U-Boot"
356 depends on TRACE
357 default 0x01000000
358 help
359 Sets the size of the trace buffer in U-Boot. This is allocated from
360 memory during relocation. If this buffer is too small, the trace
361 history will be truncated, with later records omitted.
362
363 If early trace is enabled (i.e. before relocation), this buffer must
364 be large enough to include all the data from the early trace buffer as
365 well, since this is copied over to the main buffer during relocation.
366
367 A trace record is emitted for each function call and each record is
368 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
369 the size is too small then 'trace stats' will show a message saying
370 how many records were dropped due to buffer overflow.
371
Heinrich Schuchardtda0fb5f2019-06-02 13:30:09 +0200372config TRACE_CALL_DEPTH_LIMIT
373 int "Trace call depth limit"
374 depends on TRACE
375 default 15
376 help
377 Sets the maximum call depth up to which function calls are recorded.
378
Simon Glass1c6eb072019-04-08 13:20:52 -0600379config TRACE_EARLY
380 bool "Enable tracing before relocation"
381 depends on TRACE
382 help
383 Sometimes it is helpful to trace execution of U-Boot before
384 relocation. This is possible by using a arch-specific, fixed buffer
385 position in memory. Enable this option to start tracing as early as
386 possible after U-Boot starts.
387
388config TRACE_EARLY_SIZE
389 hex "Size of early trace buffer in U-Boot"
390 depends on TRACE_EARLY
391 default 0x00100000
392 help
393 Sets the size of the early trace buffer in bytes. This is used to hold
394 tracing information before relocation.
395
Heinrich Schuchardtda0fb5f2019-06-02 13:30:09 +0200396config TRACE_EARLY_CALL_DEPTH_LIMIT
397 int "Early trace call depth limit"
398 depends on TRACE_EARLY
Simon Glassc33425c2023-01-15 14:15:44 -0700399 default 15
Heinrich Schuchardtda0fb5f2019-06-02 13:30:09 +0200400 help
401 Sets the maximum call depth up to which function calls are recorded
402 during early tracing.
403
Simon Glass1c6eb072019-04-08 13:20:52 -0600404config TRACE_EARLY_ADDR
405 hex "Address of early trace buffer in U-Boot"
406 depends on TRACE_EARLY
Sughosh Ganu9b19e202024-08-26 17:29:32 +0530407 default 0x00200000
Simon Glass1c6eb072019-04-08 13:20:52 -0600408 help
409 Sets the address of the early trace buffer in U-Boot. This memory
410 must be accessible before relocation.
411
412 A trace record is emitted for each function call and each record is
413 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
414 the size is too small then the message which says the amount of early
415 data being coped will the the same as the
416
Loic Poulain334a9b92021-11-25 18:16:14 +0100417config CIRCBUF
418 bool "Enable circular buffer support"
419
Michal Simek953d3352024-04-16 08:55:16 +0200420source "lib/dhry/Kconfig"
Simon Glassd1389402015-06-23 15:38:23 -0600421
Raymond Mao13de8482024-10-03 14:50:15 -0700422menu "Alternative crypto libraries"
423source lib/mbedtls/Kconfig
424endmenu
425
Simon Glassb1a873d2017-04-26 22:27:49 -0600426menu "Security support"
427
428config AES
429 bool "Support the AES algorithm"
430 help
431 This provides a means to encrypt and decrypt data using the AES
432 (Advanced Encryption Standard). This algorithm uses a symetric key
433 and is widely used as a streaming cipher. Different key lengths are
434 supported by the algorithm but only a 128-bit key is supported at
435 present.
436
Michal Simek953d3352024-04-16 08:55:16 +0200437source "lib/ecdsa/Kconfig"
438source "lib/rsa/Kconfig"
439source "lib/crypto/Kconfig"
440source "lib/crypt/Kconfig"
Ruchika Guptac4beb222015-01-23 16:01:51 +0530441
Simon Glassa7d660b2015-08-22 18:31:19 -0600442config TPM
443 bool "Trusted Platform Module (TPM) Support"
Simon Glass2419cd12015-10-03 06:39:36 -0600444 depends on DM
Sughosh Ganue67ffb52022-07-22 21:32:04 +0530445 imply DM_RNG
Eddie James97707f12023-10-24 10:43:49 -0500446 select SHA1
Simon Glassa7d660b2015-08-22 18:31:19 -0600447 help
448 This enables support for TPMs which can be used to provide security
449 features for your board. The TPM can be connected via LPC or I2C
450 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
451 command to interactive the TPM. Driver model support is provided
452 for the low-level TPM interface, but only one TPM is supported at
453 a time by the TPM library.
Ilias Apalodimase7505b32024-06-23 14:48:18 +0300454 For size reasons only SHA1 is selected which is supported on TPM1.2.
455 If you want a fully functional TPM enable all hashing algorithms.
456 If you enabled measured boot all hashing algorithms are selected.
Simon Glassa7d660b2015-08-22 18:31:19 -0600457
Simon Glass63078962018-10-01 12:22:19 -0600458config SPL_TPM
459 bool "Trusted Platform Module (TPM) Support in SPL"
460 depends on SPL_DM
Simon Glass0c16fca2023-01-07 14:57:20 -0700461 imply SPL_CRC8
Simon Glass63078962018-10-01 12:22:19 -0600462 help
463 This enables support for TPMs which can be used to provide security
464 features for your board. The TPM can be connected via LPC or I2C
465 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
466 command to interactive the TPM. Driver model support is provided
467 for the low-level TPM interface, but only one TPM is supported at
468 a time by the TPM library.
469
470config TPL_TPM
471 bool "Trusted Platform Module (TPM) Support in TPL"
472 depends on TPL_DM
473 help
474 This enables support for TPMs which can be used to provide security
475 features for your board. The TPM can be connected via LPC or I2C
476 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
477 command to interactive the TPM. Driver model support is provided
478 for the low-level TPM interface, but only one TPM is supported at
479 a time by the TPM library.
480
Simon Glass747093d2022-04-30 00:56:53 -0600481config VPL_TPM
482 bool "Trusted Platform Module (TPM) Support in VPL"
483 depends on VPL_DM
484 help
485 This enables support for TPMs which can be used to provide security
486 features for your board. The TPM can be connected via LPC or I2C
487 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
488 command to interactive the TPM. Driver model support is provided
489 for the low-level TPM interface, but only one TPM is supported at
490 a time by the TPM library.
491
Simon Glassb1a873d2017-04-26 22:27:49 -0600492endmenu
493
Igor Opaniuk33305842018-06-03 21:56:37 +0300494menu "Android Verified Boot"
495
496config LIBAVB
497 bool "Android Verified Boot 2.0 support"
498 depends on ANDROID_BOOT_IMAGE
Igor Opaniuk33305842018-06-03 21:56:37 +0300499 help
500 This enables support of Android Verified Boot 2.0 which can be used
501 to assure the end user of the integrity of the software running on a
502 device. Introduces such features as boot chain of trust, rollback
503 protection etc.
504
505endmenu
506
gaurav rana94e3c8c2015-02-20 12:51:46 +0530507menu "Hashing Support"
508
Qu Wenruo7c3fd5c2021-12-27 14:12:07 +0800509config BLAKE2
510 bool "Enable BLAKE2 support"
511 help
512 This option enables support of hashing using BLAKE2B algorithm.
513 The hash is calculated in software.
514 The BLAKE2 algorithm produces a hash value (digest) between 1 and
515 64 bytes.
516
gaurav rana94e3c8c2015-02-20 12:51:46 +0530517config SHA1
518 bool "Enable SHA1 support"
519 help
520 This option enables support of hashing using SHA1 algorithm.
521 The hash is calculated in software.
522 The SHA1 algorithm produces a 160-bit (20-byte) hash value
523 (digest).
524
525config SHA256
526 bool "Enable SHA256 support"
527 help
528 This option enables support of hashing using SHA256 algorithm.
529 The hash is calculated in software.
530 The SHA256 algorithm produces a 256-bit (32-byte) hash value
531 (digest).
532
Reuben Dowled16b38f2020-04-16 17:36:52 +1200533config SHA512
534 bool "Enable SHA512 support"
Manorit Chawdhrydfe00b32023-07-14 11:22:39 +0530535 default y if TI_SECURE_DEVICE && FIT_SIGNATURE
Reuben Dowled16b38f2020-04-16 17:36:52 +1200536 help
537 This option enables support of hashing using SHA512 algorithm.
538 The hash is calculated in software.
539 The SHA512 algorithm produces a 512-bit (64-byte) hash value
540 (digest).
541
542config SHA384
543 bool "Enable SHA384 support"
Alexandru Gagniuce60e4492021-09-02 19:54:18 -0500544 select SHA512
Reuben Dowled16b38f2020-04-16 17:36:52 +1200545 help
546 This option enables support of hashing using SHA384 algorithm.
Alexandru Gagniuce60e4492021-09-02 19:54:18 -0500547 The hash is calculated in software. This is also selects SHA512,
548 because these implementations share the bulk of the code..
Reuben Dowled16b38f2020-04-16 17:36:52 +1200549 The SHA384 algorithm produces a 384-bit (48-byte) hash value
550 (digest).
551
gaurav rana94e3c8c2015-02-20 12:51:46 +0530552config SHA_HW_ACCEL
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200553 bool "Enable hardware acceleration for SHA hash functions"
gaurav rana94e3c8c2015-02-20 12:51:46 +0530554 help
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200555 This option enables hardware acceleration for the SHA1 and SHA256
556 hashing algorithms. This affects the 'hash' command and also the
557 hash_lookup_algo() function.
558
Simon Glass603d15a2021-09-25 19:43:17 -0600559if SPL
560
Oleksandr Suvorovaf62d832023-08-03 19:05:40 +0300561config SPL_CRC32
562 bool "Enable CRC32 support in SPL"
563 default y if SPL_LEGACY_IMAGE_SUPPORT || SPL_EFI_PARTITION
564 default y if SPL_ENV_SUPPORT || TPL_BLOBLIST
565 help
566 This option enables support of hashing using CRC32 algorithm.
567 The CRC32 algorithm produces 32-bit checksum value. For FIT
568 images, this is the least secure type of checksum, suitable for
569 detected accidental image corruption. For secure applications you
570 should consider SHA256 or SHA384.
571
Simon Glass603d15a2021-09-25 19:43:17 -0600572config SPL_SHA1
573 bool "Enable SHA1 support in SPL"
574 default y if SHA1
575 help
576 This option enables support of hashing using SHA1 algorithm.
577 The hash is calculated in software.
578 The SHA1 algorithm produces a 160-bit (20-byte) hash value
579 (digest).
580
581config SPL_SHA256
582 bool "Enable SHA256 support in SPL"
583 default y if SHA256
584 help
585 This option enables support of hashing using SHA256 algorithm.
586 The hash is calculated in software.
587 The SHA256 algorithm produces a 256-bit (32-byte) hash value
588 (digest).
589
590config SPL_SHA512
591 bool "Enable SHA512 support in SPL"
592 default y if SHA512
593 help
594 This option enables support of hashing using SHA512 algorithm.
595 The hash is calculated in software.
596 The SHA512 algorithm produces a 512-bit (64-byte) hash value
597 (digest).
598
599config SPL_SHA384
600 bool "Enable SHA384 support in SPL"
601 default y if SHA384
602 select SPL_SHA512
603 help
604 This option enables support of hashing using SHA384 algorithm.
605 The hash is calculated in software. This is also selects SHA512,
606 because these implementations share the bulk of the code..
607 The SHA384 algorithm produces a 384-bit (48-byte) hash value
608 (digest).
609
Simon Glass2c212562021-09-25 19:43:18 -0600610config SPL_SHA_HW_ACCEL
611 bool "Enable hardware acceleration for SHA hash functions"
612 default y if SHA_HW_ACCEL
613 help
614 This option enables hardware acceleration for the SHA1 and SHA256
615 hashing algorithms. This affects the 'hash' command and also the
616 hash_lookup_algo() function.
617
618config SPL_SHA_PROG_HW_ACCEL
619 bool "Enable Progressive hashing support using hardware in SPL"
620 depends on SHA_PROG_HW_ACCEL
621 default y
622 help
623 This option enables hardware-acceleration for SHA progressive
624 hashing.
625 Data can be streamed in a block at a time and the hashing is
626 performed in hardware.
627
Simon Glass603d15a2021-09-25 19:43:17 -0600628endif
629
Simon Glass5a6bc162023-02-22 09:34:01 -0700630config VPL_SHA1
631 bool "Enable SHA1 support in VPL"
632 depends on VPL
633 default y if SHA1
634 help
635 This option enables support of hashing using SHA1 algorithm.
636 The hash is calculated in software.
637 The SHA1 algorithm produces a 160-bit (20-byte) hash value
638 (digest).
639
640config VPL_SHA256
641 bool "Enable SHA256 support in VPL"
642 depends on VPL
643 default y if SHA256
644 help
645 This option enables support of hashing using SHA256 algorithm.
646 The hash is calculated in software.
647 The SHA256 algorithm produces a 256-bit (32-byte) hash value
648 (digest).
649
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200650if SHA_HW_ACCEL
651
652config SHA512_HW_ACCEL
653 bool "Enable hardware acceleration for SHA512"
Alexandru Gagniuce60e4492021-09-02 19:54:18 -0500654 depends on SHA512
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200655 help
656 This option enables hardware acceleration for the SHA384 and SHA512
657 hashing algorithms. This affects the 'hash' command and also the
658 hash_lookup_algo() function.
gaurav rana94e3c8c2015-02-20 12:51:46 +0530659
660config SHA_PROG_HW_ACCEL
661 bool "Enable Progressive hashing support using hardware"
gaurav rana94e3c8c2015-02-20 12:51:46 +0530662 help
Joel Stanleya479f102021-02-17 13:50:42 +1030663 This option enables hardware-acceleration for SHA progressive
664 hashing.
665 Data can be streamed in a block at a time and the hashing is
666 performed in hardware.
Andre Przywarabea79d72017-03-15 01:19:05 +0000667
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200668endif
669
Andre Przywarabea79d72017-03-15 01:19:05 +0000670config MD5
Simon Glass8239be62020-05-06 08:03:56 -0600671 bool "Support MD5 algorithm"
672 help
673 This option enables MD5 support. MD5 is an algorithm designed
674 in 1991 that produces a 16-byte digest (or checksum) from its input
675 data. It has a number of vulnerabilities which preclude its use in
676 security applications, but it can be useful for providing a quick
677 checksum of a block of data.
678
679config SPL_MD5
680 bool "Support MD5 algorithm in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400681 depends on SPL
Simon Glass8239be62020-05-06 08:03:56 -0600682 help
683 This option enables MD5 support in SPL. MD5 is an algorithm designed
684 in 1991 that produces a 16-byte digest (or checksum) from its input
685 data. It has a number of vulnerabilities which preclude its use in
686 security applications, but it can be useful for providing a quick
687 checksum of a block of data.
Andre Przywarabea79d72017-03-15 01:19:05 +0000688
Simon Glass0c16fca2023-01-07 14:57:20 -0700689config CRC8
690 def_bool y
691 help
692 Enables CRC8 support in U-Boot. This is normally required. CRC8 is
693 a simple and fast checksumming algorithm which does a bytewise
694 checksum with feedback to produce an 8-bit result. The code is small
695 and it does not require a lookup table (unlike CRC32).
696
697config SPL_CRC8
698 bool "Support CRC8 in SPL"
699 depends on SPL
700 help
701 Enables CRC8 support in SPL. This is not normally required. CRC8 is
702 a simple and fast checksumming algorithm which does a bytewise
703 checksum with feedback to produce an 8-bit result. The code is small
704 and it does not require a lookup table (unlike CRC32).
705
Sean Anderson44071cd2023-10-14 16:47:49 -0400706config SPL_CRC16
707 bool "Support CRC16 in SPL"
708 depends on SPL
709 help
710 Enables CRC16 support in SPL. This is not normally required.
711
Simon Glasse7d285b2021-09-25 19:43:24 -0600712config CRC32
713 def_bool y
714 help
715 Enables CRC32 support in U-Boot. This is normally required.
716
Marek Behún85d8bf52017-09-03 17:00:23 +0200717config CRC32C
718 bool
719
Marek Behún83a486b2019-04-29 22:40:43 +0200720config XXHASH
721 bool
722
gaurav rana94e3c8c2015-02-20 12:51:46 +0530723endmenu
724
Julius Werner027b7282015-10-06 20:03:53 -0700725menu "Compression Support"
726
727config LZ4
728 bool "Enable LZ4 decompression support"
729 help
730 If this option is set, support for LZ4 compressed images
731 is included. The LZ4 algorithm can run in-place as long as the
732 compressed image is loaded to the end of the output buffer, and
733 trades lower compression ratios for much faster decompression.
Patrick Delaunay4fa01502021-03-10 10:16:28 +0100734
Julius Werner027b7282015-10-06 20:03:53 -0700735 NOTE: This implements the release version of the LZ4 frame
736 format as generated by default by the 'lz4' command line tool.
737 This is not the same as the outdated, less efficient legacy
738 frame format currently (2015) implemented in the Linux kernel
739 (generated by 'lz4 -l'). The two formats are incompatible.
740
Simon Glassaed998a2017-05-17 03:25:42 -0600741config LZMA
742 bool "Enable LZMA decompression support"
743 help
744 This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
745 a dictionary compression algorithm that provides a high compression
746 ratio and fairly fast decompression speed. See also
747 CONFIG_CMD_LZMADEC which provides a decode command.
748
Boris Brezillon173aafb2017-02-27 18:22:06 +0100749config LZO
Tom Rinid56b4b12017-07-22 18:36:16 -0400750 bool "Enable LZO decompression support"
751 help
Oleksandr Suvorov5145bc72021-09-01 16:05:08 +0300752 This enables support for the LZO compression algorithm.
York Sun7264f292017-08-15 11:14:43 -0700753
Marek Vasut95f4bbd2019-03-08 16:06:55 +0100754config GZIP
Heiko Schocher51323612019-04-29 08:59:38 +0200755 bool "Enable gzip decompression support"
Marek Vasut95f4bbd2019-03-08 16:06:55 +0100756 select ZLIB
757 default y
758 help
759 This enables support for GZIP compression algorithm.
760
Joao Marcos Costa81014f72020-07-30 15:33:49 +0200761config ZLIB_UNCOMPRESS
762 bool "Enables zlib's uncompress() functionality"
763 help
764 This enables an extra zlib functionality: the uncompress() function,
765 which decompresses data from a buffer into another, knowing their
766 sizes. Unlike gunzip(), there is no header parsing.
767
Michael Walleeff5a542020-05-22 14:07:36 +0200768config GZIP_COMPRESSED
769 bool
770 select ZLIB
771
Atish Patra2a2119e2020-03-05 16:24:21 -0800772config BZIP2
773 bool "Enable bzip2 decompression support"
774 help
775 This enables support for BZIP2 compression algorithm.
776
Marek Vasut95f4bbd2019-03-08 16:06:55 +0100777config ZLIB
778 bool
779 default y
780 help
781 This enables ZLIB compression lib.
782
Marek Behún8509f222019-04-29 22:40:44 +0200783config ZSTD
784 bool "Enable Zstandard decompression support"
785 select XXHASH
786 help
787 This enables Zstandard decompression library.
788
Brandon Maier4b9b25d2023-01-12 10:27:45 -0600789if ZSTD
790
791config ZSTD_LIB_MINIFY
792 bool "Minify Zstandard code"
793 default y
794 help
795 This disables various optional components and changes the
796 compilation flags to prioritize space-saving.
797
798 For detailed info, see zstd's lib/README.md
799
800 https://github.com/facebook/zstd/blob/dev/lib/README.md
801
802endif
803
Simon Glassae625d92023-02-22 09:33:54 -0700804config SPL_BZIP2
805 bool "Enable bzip2 decompression support for SPL build"
806 depends on SPL
807 help
808 This enables support for bzip2 compression algorithm for SPL boot.
809
Simon Glass048c6e82018-11-06 15:21:30 -0700810config SPL_LZ4
811 bool "Enable LZ4 decompression support in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400812 depends on SPL
Simon Glass048c6e82018-11-06 15:21:30 -0700813 help
Marcin Juszkiewicz43e442a2020-05-26 19:07:15 +0200814 This enables support for the LZ4 decompression algorithm in SPL. LZ4
Simon Glass048c6e82018-11-06 15:21:30 -0700815 is a lossless data compression algorithm that is focused on
816 fast compression and decompression speed. It belongs to the LZ77
817 family of byte-oriented compression schemes.
818
Weijie Gao04cb3992020-04-21 09:28:38 +0200819config SPL_LZMA
820 bool "Enable LZMA decompression support for SPL build"
Tom Rinib3401992022-06-10 23:03:09 -0400821 depends on SPL
Weijie Gao04cb3992020-04-21 09:28:38 +0200822 help
Marcin Juszkiewicz43e442a2020-05-26 19:07:15 +0200823 This enables support for LZMA compression algorithm for SPL boot.
Weijie Gao04cb3992020-04-21 09:28:38 +0200824
Simon Glass747093d2022-04-30 00:56:53 -0600825config VPL_LZMA
826 bool "Enable LZMA decompression support for VPL build"
827 default y if LZMA
828 help
829 This enables support for LZMA compression algorithm for VPL boot.
830
Jean-Jacques Hiblotf52bdf42017-09-15 12:57:30 +0200831config SPL_LZO
832 bool "Enable LZO decompression support in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400833 depends on SPL
Jean-Jacques Hiblotf52bdf42017-09-15 12:57:30 +0200834 help
835 This enables support for LZO compression algorithm in the SPL.
836
York Sun7264f292017-08-15 11:14:43 -0700837config SPL_GZIP
838 bool "Enable gzip decompression support for SPL build"
839 select SPL_ZLIB
840 help
Oleksandr Suvorov5145bc72021-09-01 16:05:08 +0300841 This enables support for the GZIP compression algorithm for SPL boot.
York Sun7264f292017-08-15 11:14:43 -0700842
843config SPL_ZLIB
844 bool
845 help
846 This enables compression lib for SPL boot.
847
Marek Behún8509f222019-04-29 22:40:44 +0200848config SPL_ZSTD
849 bool "Enable Zstandard decompression support in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400850 depends on SPL
Marek Behún8509f222019-04-29 22:40:44 +0200851 select XXHASH
852 help
853 This enables Zstandard decompression library in the SPL.
854
Julius Werner027b7282015-10-06 20:03:53 -0700855endmenu
856
Przemyslaw Marczak6501ff62015-04-20 20:07:40 +0200857config ERRNO_STR
858 bool "Enable function for getting errno-related string message"
859 help
860 The function errno_str(int errno), returns a pointer to the errno
861 corresponding text message:
862 - if errno is null or positive number - a pointer to "Success" message
863 - if errno is negative - a pointer to errno related message
864
Alexey Brodkinf8c987f2018-06-05 17:17:57 +0300865config HEXDUMP
866 bool "Enable hexdump"
867 help
868 This enables functions for printing dumps of binary data.
869
Simon Glass26637e22020-09-12 11:13:35 -0600870config SPL_HEXDUMP
871 bool "Enable hexdump in SPL"
Heinrich Schuchardtfa3f1f12021-07-24 17:35:46 +0200872 depends on SPL && HEXDUMP
Simon Glass26637e22020-09-12 11:13:35 -0600873 help
874 This enables functions for printing dumps of binary data in
875 SPL.
876
Sean Anderson72eda502020-10-27 19:55:36 -0400877config GETOPT
878 bool "Enable getopt"
879 help
880 This enables functions for parsing command-line options.
881
Simon Glass69e173e2016-02-22 22:55:42 -0700882config OF_LIBFDT
883 bool "Enable the FDT library"
884 default y if OF_CONTROL
885 help
886 This enables the FDT library (libfdt). It provides functions for
887 accessing binary device tree images in memory, such as adding and
Anatolij Gustschinf1a7ba12017-08-18 17:58:51 +0200888 removing nodes and properties, scanning through the tree and finding
Simon Glass69e173e2016-02-22 22:55:42 -0700889 particular compatible nodes. The library operates on a flattened
890 version of the device tree.
891
Simon Glass0d76afc2019-10-27 09:47:40 -0600892config OF_LIBFDT_ASSUME_MASK
893 hex "Mask of conditions to assume for libfdt"
894 depends on OF_LIBFDT || FIT
Tom Rinia077ac12023-08-02 11:09:43 -0400895 default 0x0
Simon Glass0d76afc2019-10-27 09:47:40 -0600896 help
897 Use this to change the assumptions made by libfdt about the
898 device tree it is working with. A value of 0 means that no assumptions
899 are made, and libfdt is able to deal with malicious data. A value of
900 0xff means all assumptions are made and any invalid data may cause
901 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
902
Maxime Ripardddf67f72016-07-05 10:26:44 +0200903config OF_LIBFDT_OVERLAY
904 bool "Enable the FDT library overlay support"
Tom Rini64175722018-05-08 08:52:17 -0400905 depends on OF_LIBFDT
Praneeth Bajjuri58a46f82018-04-25 16:03:23 -0500906 default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
Maxime Ripardddf67f72016-07-05 10:26:44 +0200907 help
908 This enables the FDT library (libfdt) overlay support.
909
Tom Rini40ed7be2022-08-02 07:33:27 -0400910config SYS_FDT_PAD
911 hex "Maximum size of the FDT memory area passeed to the OS"
912 depends on OF_LIBFDT
913 default 0x13000 if FMAN_ENET || QE || U_QE
914 default 0x3000
915 help
916 During OS boot, we allocate a region of memory within the bootmap
917 for the FDT. This is the size that we will expand the FDT that we
918 are using will be extended to be, in bytes.
919
Simon Glassaa34fbc2016-02-22 22:55:45 -0700920config SPL_OF_LIBFDT
921 bool "Enable the FDT library for SPL"
Simon Glass747093d2022-04-30 00:56:53 -0600922 depends on SPL_LIBGENERIC_SUPPORT
Simon Glassaa34fbc2016-02-22 22:55:45 -0700923 default y if SPL_OF_CONTROL
924 help
925 This enables the FDT library (libfdt). It provides functions for
926 accessing binary device tree images in memory, such as adding and
Anatolij Gustschinf1a7ba12017-08-18 17:58:51 +0200927 removing nodes and properties, scanning through the tree and finding
Simon Glassaa34fbc2016-02-22 22:55:45 -0700928 particular compatible nodes. The library operates on a flattened
929 version of the device tree.
930
Simon Glass0d76afc2019-10-27 09:47:40 -0600931config SPL_OF_LIBFDT_ASSUME_MASK
932 hex "Mask of conditions to assume for libfdt"
Tom Rinib3401992022-06-10 23:03:09 -0400933 depends on SPL_OF_LIBFDT || (FIT && SPL)
Simon Glass0d76afc2019-10-27 09:47:40 -0600934 default 0xff
935 help
936 Use this to change the assumptions made by libfdt in SPL about the
937 device tree it is working with. A value of 0 means that no assumptions
938 are made, and libfdt is able to deal with malicious data. A value of
939 0xff means all assumptions are made and any invalid data may cause
940 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
941
Simon Glass5592a632018-10-01 12:22:21 -0600942config TPL_OF_LIBFDT
943 bool "Enable the FDT library for TPL"
Simon Glass747093d2022-04-30 00:56:53 -0600944 depends on TPL_LIBGENERIC_SUPPORT
Simon Glass5592a632018-10-01 12:22:21 -0600945 default y if TPL_OF_CONTROL
946 help
947 This enables the FDT library (libfdt). It provides functions for
948 accessing binary device tree images in memory, such as adding and
949 removing nodes and properties, scanning through the tree and finding
950 particular compatible nodes. The library operates on a flattened
951 version of the device tree.
952
Simon Glass0d76afc2019-10-27 09:47:40 -0600953config TPL_OF_LIBFDT_ASSUME_MASK
954 hex "Mask of conditions to assume for libfdt"
Tom Rini8bea4bf2022-06-08 08:24:39 -0400955 depends on TPL_OF_LIBFDT || (FIT && TPL)
Simon Glass0d76afc2019-10-27 09:47:40 -0600956 default 0xff
957 help
958 Use this to change the assumptions made by libfdt in TPL about the
959 device tree it is working with. A value of 0 means that no assumptions
960 are made, and libfdt is able to deal with malicious data. A value of
961 0xff means all assumptions are made and any invalid data may cause
962 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
963
Simon Glass747093d2022-04-30 00:56:53 -0600964config VPL_OF_LIBFDT
965 bool "Enable the FDT library for VPL"
Tom Rini13ce3512022-06-08 08:24:40 -0400966 depends on VPL
Simon Glass747093d2022-04-30 00:56:53 -0600967 default y if VPL_OF_CONTROL && !VPL_OF_PLATDATA
968 help
969 This enables the FDT library (libfdt). It provides functions for
970 accessing binary device tree images in memory, such as adding and
971 removing nodes and properties, scanning through the tree and finding
972 particular compatible nodes. The library operates on a flattened
973 version of the device tree.
974
975config VPL_OF_LIBFDT_ASSUME_MASK
976 hex "Mask of conditions to assume for libfdt"
Tom Rini13ce3512022-06-08 08:24:40 -0400977 depends on VPL_OF_LIBFDT || (FIT && VPL)
Simon Glass747093d2022-04-30 00:56:53 -0600978 default 0xff
979 help
980 Use this to change the assumptions made by libfdt in SPL about the
981 device tree it is working with. A value of 0 means that no assumptions
982 are made, and libfdt is able to deal with malicious data. A value of
983 0xff means all assumptions are made and any invalid data may cause
984 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
985
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200986menu "System tables"
Alexander Grafe663b352016-08-19 01:23:29 +0200987 depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200988
Simon Glassd2cb7a22020-11-04 09:57:25 -0700989config BLOBLIST_TABLES
990 bool "Put tables in a bloblist"
Simon Glassf2c14422021-03-15 18:11:22 +1300991 depends on X86 && BLOBLIST
Simon Glassd2cb7a22020-11-04 09:57:25 -0700992 help
993 Normally tables are placed at address 0xf0000 and can be up to 64KB
994 long. With this option, tables are instead placed in the bloblist
995 with a pointer from 0xf0000. The size can then be larger and the
996 tables can be placed high in memory.
997
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200998config GENERATE_SMBIOS_TABLE
999 bool "Generate an SMBIOS (System Management BIOS) table"
Simon Glass8c11d192023-09-19 21:00:13 -06001000 depends on SMBIOS
Alexander Graf4b6dddc2016-08-19 01:23:23 +02001001 default y
Alexander Graf4b6dddc2016-08-19 01:23:23 +02001002 help
1003 The System Management BIOS (SMBIOS) specification addresses how
1004 motherboard and system vendors present management information about
1005 their products in a standard format by extending the BIOS interface
1006 on Intel architecture systems.
1007
1008 Check http://www.dmtf.org/standards/smbios for details.
1009
Tom Rini253f9392023-11-20 15:17:23 -05001010 See also SYSINFO_SMBIOS which allows SMBIOS values to be provided in
Simon Glass44c74bd2020-11-05 06:32:11 -07001011 the devicetree.
1012
Simon Glassa90b5942023-09-14 10:55:39 -06001013endmenu
1014
Tero Kristo7d0f3fb2021-06-11 11:45:02 +03001015config LIB_RATIONAL
1016 bool "enable continued fraction calculation routines"
1017
1018config SPL_LIB_RATIONAL
1019 bool "enable continued fraction calculation routines for SPL"
1020 depends on SPL
1021
AKASHI Takahiro2b121962019-11-13 09:44:53 +09001022config ASN1_COMPILER
1023 bool
Philippe Reynesa0e71d92022-03-28 22:56:54 +02001024 help
1025 ASN.1 (Abstract Syntax Notation One) is a standard interface
1026 description language for defining data structures that can be
1027 serialized and deserialized in a cross-platform way. It is
1028 broadly used in telecommunications and computer networking,
1029 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1030 This option enables the support of the asn1 compiler.
AKASHI Takahiro2b121962019-11-13 09:44:53 +09001031
AKASHI Takahiroab8a0e02019-11-13 09:44:55 +09001032config ASN1_DECODER
1033 bool
1034 help
Philippe Reynesa0e71d92022-03-28 22:56:54 +02001035 ASN.1 (Abstract Syntax Notation One) is a standard interface
1036 description language for defining data structures that can be
1037 serialized and deserialized in a cross-platform way. It is
1038 broadly used in telecommunications and computer networking,
1039 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1040 This option enables the support of the asn1 decoder.
AKASHI Takahiroab8a0e02019-11-13 09:44:55 +09001041
Philippe Reynesfd210fe2022-03-28 22:56:56 +02001042config SPL_ASN1_DECODER
1043 bool
1044 help
1045 ASN.1 (Abstract Syntax Notation One) is a standard interface
1046 description language for defining data structures that can be
1047 serialized and deserialized in a cross-platform way. It is
1048 broadly used in telecommunications and computer networking,
1049 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1050 This option enables the support of the asn1 decoder in the SPL.
1051
AKASHI Takahiroa9b45e62019-11-13 09:44:57 +09001052config OID_REGISTRY
1053 bool
1054 help
Philippe Reynes7d44a982022-03-28 22:56:55 +02001055 In computing, object identifiers or OIDs are an identifier mechanism
1056 standardized by the International Telecommunication Union (ITU) and
1057 ISO/IEC for naming any object, concept, or "thing" with a globally
1058 unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier).
AKASHI Takahiroa9b45e62019-11-13 09:44:57 +09001059 Enable fast lookup object identifier registry.
1060
Philippe Reynesfd210fe2022-03-28 22:56:56 +02001061config SPL_OID_REGISTRY
1062 bool
1063 help
1064 In computing, object identifiers or OIDs are an identifier mechanism
1065 standardized by the International Telecommunication Union (ITU) and
1066 ISO/IEC for naming any object, concept, or "thing" with a globally
1067 unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier).
1068 Enable fast lookup object identifier registry in the SPL.
1069
Simon Glass8c11d192023-09-19 21:00:13 -06001070config SMBIOS
1071 bool "SMBIOS support"
1072 depends on X86 || EFI_LOADER
1073 default y
Simon Glass53fab132023-09-20 07:29:51 -06001074 select LAST_STAGE_INIT
Simon Glass8c11d192023-09-19 21:00:13 -06001075 help
1076 Indicates that this platform can support System Management BIOS
1077 (SMBIOS) tables. These provide various pieces of information about
1078 the board, such as the manufacturer and the model name.
1079
1080 See GENERATE_SMBIOS_TABLE which controls whether U-Boot actually
1081 creates these tables, rather than them coming from a previous firmware
1082 stage.
1083
Christian Gmeiner415eab02020-11-03 15:34:51 +01001084config SMBIOS_PARSER
1085 bool "SMBIOS parser"
1086 help
1087 A simple parser for SMBIOS data.
1088
Michal Simek953d3352024-04-16 08:55:16 +02001089source "lib/optee/Kconfig"
Simon Glass867a6ac2015-07-31 09:31:36 -06001090
Thierry Reding54969b42019-03-21 19:10:04 +01001091config TEST_FDTDEC
1092 bool "enable fdtdec test"
1093 depends on OF_LIBFDT
1094
AKASHI Takahiro05429b62019-11-13 09:44:49 +09001095config LIB_DATE
1096 bool
1097
Keerthy805b3ca2020-02-12 13:55:03 +05301098config LIB_ELF
1099 bool
1100 help
Patrick Delaunay6205bbb2021-01-04 15:33:28 +01001101 Support basic elf loading/validating functions.
1102 This supports for 32 bit and 64 bit versions.
Keerthy805b3ca2020-02-12 13:55:03 +05301103
Patrick Delaunay77b8cfe2021-03-10 10:16:25 +01001104config LMB
1105 bool "Enable the logical memory blocks library (lmb)"
Tom Rini11232132022-04-06 09:21:25 -04001106 default y if ARC || ARM || M68K || MICROBLAZE || MIPS || \
Patrick Delaunay77b8cfe2021-03-10 10:16:25 +01001107 NIOS2 || PPC || RISCV || SANDBOX || SH || X86 || XTENSA
Sughosh Ganu17f695d2024-08-26 17:29:29 +05301108 select ARCH_MISC_INIT if PPC
Patrick Delaunay77b8cfe2021-03-10 10:16:25 +01001109 help
Sughosh Ganu8281fde2024-08-26 17:29:21 +05301110 Support the library logical memory blocks. This will require
1111 a malloc() implementation for defining the data structures
1112 needed for maintaining the LMB memory map.
1113
1114config SPL_LMB
1115 bool "Enable LMB module for SPL"
1116 depends on SPL && SPL_FRAMEWORK && SPL_SYS_MALLOC
1117 help
1118 Enable support for Logical Memory Block library routines in
1119 SPL. This will require a malloc() implementation for defining
1120 the data structures needed for maintaining the LMB memory map.
Patrick Delaunay77b8cfe2021-03-10 10:16:25 +01001121
Simon Glassebc1d502022-12-21 16:08:28 -07001122config PHANDLE_CHECK_SEQ
1123 bool "Enable phandle check while getting sequence number"
1124 help
1125 When there are multiple device tree nodes with same name,
Anand Moon608a88c2024-06-23 23:10:21 +05301126 enable this config option to distinguish them using
Simon Glassebc1d502022-12-21 16:08:28 -07001127 phandles in fdtdec_get_alias_seq() function.
1128
Eugen Hristev97f2a742022-01-04 18:20:19 +02001129endmenu
Sughosh Ganu86794052022-10-21 18:16:03 +05301130
Michal Simek953d3352024-04-16 08:55:16 +02001131source "lib/fwu_updates/Kconfig"