blob: 08318843231990d28aaa0447b2d3b1b0a028e3b3 [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
19 bool "System timer counts down rathe than up"
20
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
76
Kautuk Consul1c03ab92022-12-07 17:12:34 +053077config SEMIHOSTING
78 bool "Support semihosting"
Kautuk Consulae3527f2022-12-07 17:12:35 +053079 depends on ARM || RISCV
Kautuk Consul1c03ab92022-12-07 17:12:34 +053080 help
81 Semihosting is a method for a target to communicate with a host
82 debugger. It uses special instructions which the debugger will trap
83 on and interpret. This allows U-Boot to read/write files, print to
84 the console, and execute arbitrary commands on the host system.
85
86 Enabling this option will add support for reading and writing files
87 on the host system. If you don't have a debugger attached then trying
88 to do this will likely cause U-Boot to hang. Say 'n' if you are unsure.
89
90config SEMIHOSTING_FALLBACK
91 bool "Recover gracefully when semihosting fails"
Kautuk Consulae3527f2022-12-07 17:12:35 +053092 depends on SEMIHOSTING && (ARM64 || RISCV)
Kautuk Consul1c03ab92022-12-07 17:12:34 +053093 default y
94 help
95 Normally, if U-Boot makes a semihosting call and no debugger is
96 attached, then it will panic due to a synchronous abort
97 exception. This config adds an exception handler which will allow
98 U-Boot to recover. Say 'y' if unsure.
99
100config SPL_SEMIHOSTING
101 bool "Support semihosting in SPL"
Kautuk Consulae3527f2022-12-07 17:12:35 +0530102 depends on SPL && (ARM || RISCV)
Kautuk Consul1c03ab92022-12-07 17:12:34 +0530103 help
104 Semihosting is a method for a target to communicate with a host
105 debugger. It uses special instructions which the debugger will trap
106 on and interpret. This allows U-Boot to read/write files, print to
107 the console, and execute arbitrary commands on the host system.
108
109 Enabling this option will add support for reading and writing files
110 on the host system. If you don't have a debugger attached then trying
111 to do this will likely cause U-Boot to hang. Say 'n' if you are unsure.
112
113config SPL_SEMIHOSTING_FALLBACK
114 bool "Recover gracefully when semihosting fails in SPL"
Kautuk Consulae3527f2022-12-07 17:12:35 +0530115 depends on SPL_SEMIHOSTING && (ARM64 || RISCV)
116 select ARMV8_SPL_EXCEPTION_VECTORS if ARM64
Kautuk Consul1c03ab92022-12-07 17:12:34 +0530117 default y
118 help
119 Normally, if U-Boot makes a semihosting call and no debugger is
120 attached, then it will panic due to a synchronous abort
121 exception. This config adds an exception handler which will allow
122 U-Boot to recover. Say 'y' if unsure.
123
Alex Kiernan14ad44a2018-04-19 04:32:54 +0000124config PRINTF
125 bool
126 default y
127
128config SPL_PRINTF
129 bool
130 select SPL_SPRINTF
Simon Glass27084c02019-09-25 08:56:27 -0600131 select SPL_STRTO if !SPL_USE_TINY_PRINTF
Alex Kiernan14ad44a2018-04-19 04:32:54 +0000132
133config TPL_PRINTF
134 bool
135 select TPL_SPRINTF
Simon Glass27084c02019-09-25 08:56:27 -0600136 select TPL_STRTO if !TPL_USE_TINY_PRINTF
Alex Kiernan14ad44a2018-04-19 04:32:54 +0000137
Simon Glass747093d2022-04-30 00:56:53 -0600138config VPL_PRINTF
139 bool
140 select VPL_SPRINTF
141 select VPL_STRTO if !VPL_USE_TINY_PRINTF
142
Alex Kiernan14ad44a2018-04-19 04:32:54 +0000143config SPRINTF
144 bool
145 default y
146
147config SPL_SPRINTF
148 bool
149
150config TPL_SPRINTF
151 bool
152
Simon Glass747093d2022-04-30 00:56:53 -0600153config VPL_SPRINTF
154 bool
155
Andrii Anisove87dfb02020-08-06 12:42:52 +0300156config SSCANF
157 bool
Andrii Anisove87dfb02020-08-06 12:42:52 +0300158
Alex Kiernan14ad44a2018-04-19 04:32:54 +0000159config STRTO
160 bool
161 default y
162
163config SPL_STRTO
164 bool
165
166config TPL_STRTO
167 bool
168
Simon Glass747093d2022-04-30 00:56:53 -0600169config VPL_STRTO
170 bool
171
Alex Kiernanc232d142018-05-29 15:30:52 +0000172config IMAGE_SPARSE
173 bool
174
175config IMAGE_SPARSE_FILLBUF_SIZE
176 hex "Android sparse image CHUNK_TYPE_FILL buffer size"
177 default 0x80000
178 depends on IMAGE_SPARSE
179 help
180 Set the size of the fill buffer used when processing CHUNK_TYPE_FILL
181 chunks.
182
Masahiro Yamada45ccec82014-10-24 01:30:43 +0900183config USE_PRIVATE_LIBGCC
184 bool "Use private libgcc"
185 depends on HAVE_PRIVATE_LIBGCC
Marek Vasut91b86e22016-05-26 18:01:47 +0200186 default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS)
Masahiro Yamada45ccec82014-10-24 01:30:43 +0900187 help
188 This option allows you to use the built-in libgcc implementation
Masahiro Yamada67976302016-03-30 20:17:42 +0900189 of U-Boot instead of the one provided by the compiler.
Masahiro Yamada45ccec82014-10-24 01:30:43 +0900190 If unsure, say N.
191
Masahiro Yamada8c688bc2014-10-24 01:30:40 +0900192config SYS_HZ
193 int
194 default 1000
195 help
196 The frequency of the timer returned by get_timer().
197 get_timer() must operate in milliseconds and this option must be
198 set to 1000.
199
Simon Glass27084c02019-09-25 08:56:27 -0600200config SPL_USE_TINY_PRINTF
Thomas Hebb37ef1772019-11-10 08:23:53 -0800201 bool "Enable tiny printf() version in SPL"
Simon Glass27084c02019-09-25 08:56:27 -0600202 depends on SPL
Tom Rini2a51e162019-06-08 12:46:18 -0400203 default y
Stefan Roese7d9cde12015-11-23 07:00:22 +0100204 help
205 This option enables a tiny, stripped down printf version.
206 This should only be used in space limited environments,
207 like SPL versions with hard memory limits. This version
208 reduces the code size by about 2.5KiB on armv7.
209
210 The supported format specifiers are %c, %s, %u/%d and %x.
211
Simon Glass27084c02019-09-25 08:56:27 -0600212config TPL_USE_TINY_PRINTF
Thomas Hebb37ef1772019-11-10 08:23:53 -0800213 bool "Enable tiny printf() version in TPL"
Simon Glass27084c02019-09-25 08:56:27 -0600214 depends on TPL
215 default y if SPL_USE_TINY_PRINTF
216 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 Glass747093d2022-04-30 00:56:53 -0600224config VPL_USE_TINY_PRINTF
225 bool "Enable tiny printf() version for VPL"
226 depends on VPL
227 help
228 This option enables a tiny, stripped down printf version.
229 This should only be used in space limited environments,
230 like SPL versions with hard memory limits. This version
231 reduces the code size by about 2.5KiB on armv7.
232
233 The supported format specifiers are %c, %s, %u/%d and %x.
234
Masahiro Yamada7e3caa82017-12-04 12:37:00 +0900235config PANIC_HANG
236 bool "Do not reset the system on fatal error"
237 help
238 Define this option to stop the system in case of a fatal error,
239 so that you have to reset it manually. This is probably NOT a good
240 idea for an embedded system where you want the system to reboot
241 automatically as fast as possible, but it may be useful during
242 development since you can try to debug the conditions that lead to
243 the situation.
244
Joe Hershberger1a606502015-04-21 17:02:42 -0500245config REGEX
246 bool "Enable regular expression support"
Joe Hershbergerf7848d92015-06-22 17:57:36 -0500247 default y if NET
Joe Hershberger1a606502015-04-21 17:02:42 -0500248 help
249 If this variable is defined, U-Boot is linked against the
250 SLRE (Super Light Regular Expression) library, which adds
251 regex support to some commands, for example "env grep" and
252 "setexpr".
253
Adam Forda5a37562018-02-06 10:18:18 -0600254choice
255 prompt "Pseudo-random library support type"
Heinrich Schuchardt16112352020-01-19 19:28:12 +0100256 depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID || \
Heinrich Schuchardt28cef9c2020-11-20 12:55:22 +0100257 RNG_SANDBOX || UT_LIB && AES || FAT_WRITE
Adam Forda5a37562018-02-06 10:18:18 -0600258 default LIB_RAND
Masahiro Yamada3850dbe2015-06-11 19:16:43 +0900259 help
Adam Forda5a37562018-02-06 10:18:18 -0600260 Select the library to provide pseudo-random number generator
261 functions. LIB_HW_RAND supports certain hardware engines that
262 provide this functionality. If in doubt, select LIB_RAND.
263
264config LIB_RAND
265 bool "Pseudo-random library support"
266
267config LIB_HW_RAND
Marcin Juszkiewicz43e442a2020-05-26 19:07:15 +0200268 bool "HW Engine for random library support"
Adam Forda5a37562018-02-06 10:18:18 -0600269
270endchoice
Michal Simek9ba9e852015-05-25 11:37:22 +0200271
Simon Glasse1722fc2021-12-01 09:02:36 -0700272config SUPPORT_ACPI
273 bool
274 help
275 Enable this if your arch or board can support generating ACPI
276 (Advanced Configuration and Power Interface) tables. In this case
277 U-Boot can generate these tables and pass them to the Operating
278 System.
279
280config GENERATE_ACPI_TABLE
281 bool "Generate an ACPI (Advanced Configuration and Power Interface) table"
282 depends on SUPPORT_ACPI
283 select QFW if QEMU
284 help
285 The Advanced Configuration and Power Interface (ACPI) specification
286 provides an open standard for device configuration and management
287 by the operating system. It defines platform-independent interfaces
288 for configuration and power management monitoring.
289
Simon Glassab4458b2017-04-02 09:50:28 -0600290config SPL_TINY_MEMSET
291 bool "Use a very small memset() in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400292 depends on SPL
Simon Glassab4458b2017-04-02 09:50:28 -0600293 help
294 The faster memset() is the arch-specific one (if available) enabled
295 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
296 better performance by writing a word at a time. But in very
Chris Packham6e705112019-01-13 22:13:28 +1300297 size-constrained environments even this may be too big. Enable this
Simon Glassab4458b2017-04-02 09:50:28 -0600298 option to reduce code size slightly at the cost of some speed.
299
Philipp Tomsich96b90822017-08-03 22:52:04 +0200300config TPL_TINY_MEMSET
301 bool "Use a very small memset() in TPL"
Tom Rini8bea4bf2022-06-08 08:24:39 -0400302 depends on TPL
Philipp Tomsich96b90822017-08-03 22:52:04 +0200303 help
304 The faster memset() is the arch-specific one (if available) enabled
305 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
306 better performance by writing a word at a time. But in very
Chris Packham6e705112019-01-13 22:13:28 +1300307 size-constrained environments even this may be too big. Enable this
Philipp Tomsich96b90822017-08-03 22:52:04 +0200308 option to reduce code size slightly at the cost of some speed.
309
Boris Brezillonaa049152017-02-27 18:22:05 +0100310config RBTREE
311 bool
312
Nandor Handa5337a2017-11-08 15:35:14 +0000313config BITREVERSE
314 bool "Bit reverse library from Linux"
315
Simon Glassa24a78d2019-04-08 13:20:51 -0600316config TRACE
317 bool "Support for tracing of function calls and timing"
318 imply CMD_TRACE
Simon Glass12619d42022-12-21 16:08:26 -0700319 imply TIMER_EARLY
Simon Glassa24a78d2019-04-08 13:20:51 -0600320 help
321 Enables function tracing within U-Boot. This allows recording of call
322 traces including timing information. The command can write data to
323 memory for exporting for analysis (e.g. using bootchart).
324 See doc/README.trace for full details.
325
Simon Glass1c6eb072019-04-08 13:20:52 -0600326config TRACE_BUFFER_SIZE
327 hex "Size of trace buffer in U-Boot"
328 depends on TRACE
329 default 0x01000000
330 help
331 Sets the size of the trace buffer in U-Boot. This is allocated from
332 memory during relocation. If this buffer is too small, the trace
333 history will be truncated, with later records omitted.
334
335 If early trace is enabled (i.e. before relocation), this buffer must
336 be large enough to include all the data from the early trace buffer as
337 well, since this is copied over to the main buffer during relocation.
338
339 A trace record is emitted for each function call and each record is
340 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
341 the size is too small then 'trace stats' will show a message saying
342 how many records were dropped due to buffer overflow.
343
Heinrich Schuchardtda0fb5f2019-06-02 13:30:09 +0200344config TRACE_CALL_DEPTH_LIMIT
345 int "Trace call depth limit"
346 depends on TRACE
347 default 15
348 help
349 Sets the maximum call depth up to which function calls are recorded.
350
Simon Glass1c6eb072019-04-08 13:20:52 -0600351config TRACE_EARLY
352 bool "Enable tracing before relocation"
353 depends on TRACE
354 help
355 Sometimes it is helpful to trace execution of U-Boot before
356 relocation. This is possible by using a arch-specific, fixed buffer
357 position in memory. Enable this option to start tracing as early as
358 possible after U-Boot starts.
359
360config TRACE_EARLY_SIZE
361 hex "Size of early trace buffer in U-Boot"
362 depends on TRACE_EARLY
363 default 0x00100000
364 help
365 Sets the size of the early trace buffer in bytes. This is used to hold
366 tracing information before relocation.
367
Heinrich Schuchardtda0fb5f2019-06-02 13:30:09 +0200368config TRACE_EARLY_CALL_DEPTH_LIMIT
369 int "Early trace call depth limit"
370 depends on TRACE_EARLY
Simon Glassc33425c2023-01-15 14:15:44 -0700371 default 15
Heinrich Schuchardtda0fb5f2019-06-02 13:30:09 +0200372 help
373 Sets the maximum call depth up to which function calls are recorded
374 during early tracing.
375
Simon Glass1c6eb072019-04-08 13:20:52 -0600376config TRACE_EARLY_ADDR
377 hex "Address of early trace buffer in U-Boot"
378 depends on TRACE_EARLY
379 default 0x00100000
380 help
381 Sets the address of the early trace buffer in U-Boot. This memory
382 must be accessible before relocation.
383
384 A trace record is emitted for each function call and each record is
385 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
386 the size is too small then the message which says the amount of early
387 data being coped will the the same as the
388
Loic Poulain334a9b92021-11-25 18:16:14 +0100389config CIRCBUF
390 bool "Enable circular buffer support"
391
Simon Glassd1389402015-06-23 15:38:23 -0600392source lib/dhry/Kconfig
393
Simon Glassb1a873d2017-04-26 22:27:49 -0600394menu "Security support"
395
396config AES
397 bool "Support the AES algorithm"
398 help
399 This provides a means to encrypt and decrypt data using the AES
400 (Advanced Encryption Standard). This algorithm uses a symetric key
401 and is widely used as a streaming cipher. Different key lengths are
402 supported by the algorithm but only a 128-bit key is supported at
403 present.
404
Alexandru Gagniuc928a8be2021-07-29 11:47:16 -0500405source lib/ecdsa/Kconfig
Ruchika Guptad9f23c72015-01-23 16:01:56 +0530406source lib/rsa/Kconfig
AKASHI Takahirob4adf622019-11-13 09:45:00 +0900407source lib/crypto/Kconfig
Steffen Jaeckel26dd9932021-07-08 15:57:33 +0200408source lib/crypt/Kconfig
Ruchika Guptac4beb222015-01-23 16:01:51 +0530409
Simon Glassa7d660b2015-08-22 18:31:19 -0600410config TPM
411 bool "Trusted Platform Module (TPM) Support"
Simon Glass2419cd12015-10-03 06:39:36 -0600412 depends on DM
Sughosh Ganue67ffb52022-07-22 21:32:04 +0530413 imply DM_RNG
Simon Glassa7d660b2015-08-22 18:31:19 -0600414 help
415 This enables support for TPMs which can be used to provide security
416 features for your board. The TPM can be connected via LPC or I2C
417 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
418 command to interactive the TPM. Driver model support is provided
419 for the low-level TPM interface, but only one TPM is supported at
420 a time by the TPM library.
421
Simon Glass63078962018-10-01 12:22:19 -0600422config SPL_TPM
423 bool "Trusted Platform Module (TPM) Support in SPL"
424 depends on SPL_DM
Simon Glass0c16fca2023-01-07 14:57:20 -0700425 imply SPL_CRC8
Simon Glass63078962018-10-01 12:22:19 -0600426 help
427 This enables support for TPMs which can be used to provide security
428 features for your board. The TPM can be connected via LPC or I2C
429 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
430 command to interactive the TPM. Driver model support is provided
431 for the low-level TPM interface, but only one TPM is supported at
432 a time by the TPM library.
433
434config TPL_TPM
435 bool "Trusted Platform Module (TPM) Support in TPL"
436 depends on TPL_DM
437 help
438 This enables support for TPMs which can be used to provide security
439 features for your board. The TPM can be connected via LPC or I2C
440 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
441 command to interactive the TPM. Driver model support is provided
442 for the low-level TPM interface, but only one TPM is supported at
443 a time by the TPM library.
444
Simon Glass747093d2022-04-30 00:56:53 -0600445config VPL_TPM
446 bool "Trusted Platform Module (TPM) Support in VPL"
447 depends on VPL_DM
448 help
449 This enables support for TPMs which can be used to provide security
450 features for your board. The TPM can be connected via LPC or I2C
451 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
452 command to interactive the TPM. Driver model support is provided
453 for the low-level TPM interface, but only one TPM is supported at
454 a time by the TPM library.
455
Simon Glassb1a873d2017-04-26 22:27:49 -0600456endmenu
457
Igor Opaniuk33305842018-06-03 21:56:37 +0300458menu "Android Verified Boot"
459
460config LIBAVB
461 bool "Android Verified Boot 2.0 support"
462 depends on ANDROID_BOOT_IMAGE
Igor Opaniuk33305842018-06-03 21:56:37 +0300463 help
464 This enables support of Android Verified Boot 2.0 which can be used
465 to assure the end user of the integrity of the software running on a
466 device. Introduces such features as boot chain of trust, rollback
467 protection etc.
468
469endmenu
470
gaurav rana94e3c8c2015-02-20 12:51:46 +0530471menu "Hashing Support"
472
Qu Wenruo7c3fd5c2021-12-27 14:12:07 +0800473config BLAKE2
474 bool "Enable BLAKE2 support"
475 help
476 This option enables support of hashing using BLAKE2B algorithm.
477 The hash is calculated in software.
478 The BLAKE2 algorithm produces a hash value (digest) between 1 and
479 64 bytes.
480
gaurav rana94e3c8c2015-02-20 12:51:46 +0530481config SHA1
482 bool "Enable SHA1 support"
483 help
484 This option enables support of hashing using SHA1 algorithm.
485 The hash is calculated in software.
486 The SHA1 algorithm produces a 160-bit (20-byte) hash value
487 (digest).
488
489config SHA256
490 bool "Enable SHA256 support"
491 help
492 This option enables support of hashing using SHA256 algorithm.
493 The hash is calculated in software.
494 The SHA256 algorithm produces a 256-bit (32-byte) hash value
495 (digest).
496
Reuben Dowled16b38f2020-04-16 17:36:52 +1200497config SHA512
498 bool "Enable SHA512 support"
Reuben Dowled16b38f2020-04-16 17:36:52 +1200499 help
500 This option enables support of hashing using SHA512 algorithm.
501 The hash is calculated in software.
502 The SHA512 algorithm produces a 512-bit (64-byte) hash value
503 (digest).
504
505config SHA384
506 bool "Enable SHA384 support"
Alexandru Gagniuce60e4492021-09-02 19:54:18 -0500507 select SHA512
Reuben Dowled16b38f2020-04-16 17:36:52 +1200508 help
509 This option enables support of hashing using SHA384 algorithm.
Alexandru Gagniuce60e4492021-09-02 19:54:18 -0500510 The hash is calculated in software. This is also selects SHA512,
511 because these implementations share the bulk of the code..
Reuben Dowled16b38f2020-04-16 17:36:52 +1200512 The SHA384 algorithm produces a 384-bit (48-byte) hash value
513 (digest).
514
gaurav rana94e3c8c2015-02-20 12:51:46 +0530515config SHA_HW_ACCEL
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200516 bool "Enable hardware acceleration for SHA hash functions"
gaurav rana94e3c8c2015-02-20 12:51:46 +0530517 help
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200518 This option enables hardware acceleration for the SHA1 and SHA256
519 hashing algorithms. This affects the 'hash' command and also the
520 hash_lookup_algo() function.
521
Simon Glass603d15a2021-09-25 19:43:17 -0600522if SPL
523
524config SPL_SHA1
525 bool "Enable SHA1 support in SPL"
526 default y if SHA1
527 help
528 This option enables support of hashing using SHA1 algorithm.
529 The hash is calculated in software.
530 The SHA1 algorithm produces a 160-bit (20-byte) hash value
531 (digest).
532
533config SPL_SHA256
534 bool "Enable SHA256 support in SPL"
535 default y if SHA256
536 help
537 This option enables support of hashing using SHA256 algorithm.
538 The hash is calculated in software.
539 The SHA256 algorithm produces a 256-bit (32-byte) hash value
540 (digest).
541
542config SPL_SHA512
543 bool "Enable SHA512 support in SPL"
544 default y if SHA512
545 help
546 This option enables support of hashing using SHA512 algorithm.
547 The hash is calculated in software.
548 The SHA512 algorithm produces a 512-bit (64-byte) hash value
549 (digest).
550
551config SPL_SHA384
552 bool "Enable SHA384 support in SPL"
553 default y if SHA384
554 select SPL_SHA512
555 help
556 This option enables support of hashing using SHA384 algorithm.
557 The hash is calculated in software. This is also selects SHA512,
558 because these implementations share the bulk of the code..
559 The SHA384 algorithm produces a 384-bit (48-byte) hash value
560 (digest).
561
Simon Glass2c212562021-09-25 19:43:18 -0600562config SPL_SHA_HW_ACCEL
563 bool "Enable hardware acceleration for SHA hash functions"
564 default y if SHA_HW_ACCEL
565 help
566 This option enables hardware acceleration for the SHA1 and SHA256
567 hashing algorithms. This affects the 'hash' command and also the
568 hash_lookup_algo() function.
569
570config SPL_SHA_PROG_HW_ACCEL
571 bool "Enable Progressive hashing support using hardware in SPL"
572 depends on SHA_PROG_HW_ACCEL
573 default y
574 help
575 This option enables hardware-acceleration for SHA progressive
576 hashing.
577 Data can be streamed in a block at a time and the hashing is
578 performed in hardware.
579
Simon Glass603d15a2021-09-25 19:43:17 -0600580endif
581
Simon Glass5a6bc162023-02-22 09:34:01 -0700582config VPL_SHA1
583 bool "Enable SHA1 support in VPL"
584 depends on VPL
585 default y if SHA1
586 help
587 This option enables support of hashing using SHA1 algorithm.
588 The hash is calculated in software.
589 The SHA1 algorithm produces a 160-bit (20-byte) hash value
590 (digest).
591
592config VPL_SHA256
593 bool "Enable SHA256 support in VPL"
594 depends on VPL
595 default y if SHA256
596 help
597 This option enables support of hashing using SHA256 algorithm.
598 The hash is calculated in software.
599 The SHA256 algorithm produces a 256-bit (32-byte) hash value
600 (digest).
601
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200602if SHA_HW_ACCEL
603
604config SHA512_HW_ACCEL
605 bool "Enable hardware acceleration for SHA512"
Alexandru Gagniuce60e4492021-09-02 19:54:18 -0500606 depends on SHA512
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200607 help
608 This option enables hardware acceleration for the SHA384 and SHA512
609 hashing algorithms. This affects the 'hash' command and also the
610 hash_lookup_algo() function.
gaurav rana94e3c8c2015-02-20 12:51:46 +0530611
612config SHA_PROG_HW_ACCEL
613 bool "Enable Progressive hashing support using hardware"
gaurav rana94e3c8c2015-02-20 12:51:46 +0530614 help
Joel Stanleya479f102021-02-17 13:50:42 +1030615 This option enables hardware-acceleration for SHA progressive
616 hashing.
617 Data can be streamed in a block at a time and the hashing is
618 performed in hardware.
Andre Przywarabea79d72017-03-15 01:19:05 +0000619
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200620endif
621
Andre Przywarabea79d72017-03-15 01:19:05 +0000622config MD5
Simon Glass8239be62020-05-06 08:03:56 -0600623 bool "Support MD5 algorithm"
624 help
625 This option enables MD5 support. MD5 is an algorithm designed
626 in 1991 that produces a 16-byte digest (or checksum) from its input
627 data. It has a number of vulnerabilities which preclude its use in
628 security applications, but it can be useful for providing a quick
629 checksum of a block of data.
630
631config SPL_MD5
632 bool "Support MD5 algorithm in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400633 depends on SPL
Simon Glass8239be62020-05-06 08:03:56 -0600634 help
635 This option enables MD5 support in SPL. MD5 is an algorithm designed
636 in 1991 that produces a 16-byte digest (or checksum) from its input
637 data. It has a number of vulnerabilities which preclude its use in
638 security applications, but it can be useful for providing a quick
639 checksum of a block of data.
Andre Przywarabea79d72017-03-15 01:19:05 +0000640
Simon Glass0c16fca2023-01-07 14:57:20 -0700641config CRC8
642 def_bool y
643 help
644 Enables CRC8 support in U-Boot. This is normally required. CRC8 is
645 a simple and fast checksumming algorithm which does a bytewise
646 checksum with feedback to produce an 8-bit result. The code is small
647 and it does not require a lookup table (unlike CRC32).
648
649config SPL_CRC8
650 bool "Support CRC8 in SPL"
651 depends on SPL
652 help
653 Enables CRC8 support in SPL. This is not normally required. CRC8 is
654 a simple and fast checksumming algorithm which does a bytewise
655 checksum with feedback to produce an 8-bit result. The code is small
656 and it does not require a lookup table (unlike CRC32).
657
Simon Glasse7d285b2021-09-25 19:43:24 -0600658config CRC32
659 def_bool y
660 help
661 Enables CRC32 support in U-Boot. This is normally required.
662
Marek Behún85d8bf52017-09-03 17:00:23 +0200663config CRC32C
664 bool
665
Marek Behún83a486b2019-04-29 22:40:43 +0200666config XXHASH
667 bool
668
gaurav rana94e3c8c2015-02-20 12:51:46 +0530669endmenu
670
Julius Werner027b7282015-10-06 20:03:53 -0700671menu "Compression Support"
672
673config LZ4
674 bool "Enable LZ4 decompression support"
675 help
676 If this option is set, support for LZ4 compressed images
677 is included. The LZ4 algorithm can run in-place as long as the
678 compressed image is loaded to the end of the output buffer, and
679 trades lower compression ratios for much faster decompression.
Patrick Delaunay4fa01502021-03-10 10:16:28 +0100680
Julius Werner027b7282015-10-06 20:03:53 -0700681 NOTE: This implements the release version of the LZ4 frame
682 format as generated by default by the 'lz4' command line tool.
683 This is not the same as the outdated, less efficient legacy
684 frame format currently (2015) implemented in the Linux kernel
685 (generated by 'lz4 -l'). The two formats are incompatible.
686
Simon Glassaed998a2017-05-17 03:25:42 -0600687config LZMA
688 bool "Enable LZMA decompression support"
689 help
690 This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
691 a dictionary compression algorithm that provides a high compression
692 ratio and fairly fast decompression speed. See also
693 CONFIG_CMD_LZMADEC which provides a decode command.
694
Boris Brezillon173aafb2017-02-27 18:22:06 +0100695config LZO
Tom Rinid56b4b12017-07-22 18:36:16 -0400696 bool "Enable LZO decompression support"
697 help
Oleksandr Suvorov5145bc72021-09-01 16:05:08 +0300698 This enables support for the LZO compression algorithm.
York Sun7264f292017-08-15 11:14:43 -0700699
Marek Vasut95f4bbd2019-03-08 16:06:55 +0100700config GZIP
Heiko Schocher51323612019-04-29 08:59:38 +0200701 bool "Enable gzip decompression support"
Marek Vasut95f4bbd2019-03-08 16:06:55 +0100702 select ZLIB
703 default y
704 help
705 This enables support for GZIP compression algorithm.
706
Joao Marcos Costa81014f72020-07-30 15:33:49 +0200707config ZLIB_UNCOMPRESS
708 bool "Enables zlib's uncompress() functionality"
709 help
710 This enables an extra zlib functionality: the uncompress() function,
711 which decompresses data from a buffer into another, knowing their
712 sizes. Unlike gunzip(), there is no header parsing.
713
Michael Walleeff5a542020-05-22 14:07:36 +0200714config GZIP_COMPRESSED
715 bool
716 select ZLIB
717
Atish Patra2a2119e2020-03-05 16:24:21 -0800718config BZIP2
719 bool "Enable bzip2 decompression support"
720 help
721 This enables support for BZIP2 compression algorithm.
722
Marek Vasut95f4bbd2019-03-08 16:06:55 +0100723config ZLIB
724 bool
725 default y
726 help
727 This enables ZLIB compression lib.
728
Marek Behún8509f222019-04-29 22:40:44 +0200729config ZSTD
730 bool "Enable Zstandard decompression support"
731 select XXHASH
732 help
733 This enables Zstandard decompression library.
734
Brandon Maier4b9b25d2023-01-12 10:27:45 -0600735if ZSTD
736
737config ZSTD_LIB_MINIFY
738 bool "Minify Zstandard code"
739 default y
740 help
741 This disables various optional components and changes the
742 compilation flags to prioritize space-saving.
743
744 For detailed info, see zstd's lib/README.md
745
746 https://github.com/facebook/zstd/blob/dev/lib/README.md
747
748endif
749
Simon Glassae625d92023-02-22 09:33:54 -0700750config SPL_BZIP2
751 bool "Enable bzip2 decompression support for SPL build"
752 depends on SPL
753 help
754 This enables support for bzip2 compression algorithm for SPL boot.
755
Simon Glass048c6e82018-11-06 15:21:30 -0700756config SPL_LZ4
757 bool "Enable LZ4 decompression support in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400758 depends on SPL
Simon Glass048c6e82018-11-06 15:21:30 -0700759 help
Marcin Juszkiewicz43e442a2020-05-26 19:07:15 +0200760 This enables support for the LZ4 decompression algorithm in SPL. LZ4
Simon Glass048c6e82018-11-06 15:21:30 -0700761 is a lossless data compression algorithm that is focused on
762 fast compression and decompression speed. It belongs to the LZ77
763 family of byte-oriented compression schemes.
764
Weijie Gao04cb3992020-04-21 09:28:38 +0200765config SPL_LZMA
766 bool "Enable LZMA decompression support for SPL build"
Tom Rinib3401992022-06-10 23:03:09 -0400767 depends on SPL
Weijie Gao04cb3992020-04-21 09:28:38 +0200768 help
Marcin Juszkiewicz43e442a2020-05-26 19:07:15 +0200769 This enables support for LZMA compression algorithm for SPL boot.
Weijie Gao04cb3992020-04-21 09:28:38 +0200770
Simon Glass747093d2022-04-30 00:56:53 -0600771config VPL_LZMA
772 bool "Enable LZMA decompression support for VPL build"
773 default y if LZMA
774 help
775 This enables support for LZMA compression algorithm for VPL boot.
776
Jean-Jacques Hiblotf52bdf42017-09-15 12:57:30 +0200777config SPL_LZO
778 bool "Enable LZO decompression support in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400779 depends on SPL
Jean-Jacques Hiblotf52bdf42017-09-15 12:57:30 +0200780 help
781 This enables support for LZO compression algorithm in the SPL.
782
York Sun7264f292017-08-15 11:14:43 -0700783config SPL_GZIP
784 bool "Enable gzip decompression support for SPL build"
785 select SPL_ZLIB
786 help
Oleksandr Suvorov5145bc72021-09-01 16:05:08 +0300787 This enables support for the GZIP compression algorithm for SPL boot.
York Sun7264f292017-08-15 11:14:43 -0700788
789config SPL_ZLIB
790 bool
791 help
792 This enables compression lib for SPL boot.
793
Marek Behún8509f222019-04-29 22:40:44 +0200794config SPL_ZSTD
795 bool "Enable Zstandard decompression support in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400796 depends on SPL
Marek Behún8509f222019-04-29 22:40:44 +0200797 select XXHASH
798 help
799 This enables Zstandard decompression library in the SPL.
800
Julius Werner027b7282015-10-06 20:03:53 -0700801endmenu
802
Przemyslaw Marczak6501ff62015-04-20 20:07:40 +0200803config ERRNO_STR
804 bool "Enable function for getting errno-related string message"
805 help
806 The function errno_str(int errno), returns a pointer to the errno
807 corresponding text message:
808 - if errno is null or positive number - a pointer to "Success" message
809 - if errno is negative - a pointer to errno related message
810
Alexey Brodkinf8c987f2018-06-05 17:17:57 +0300811config HEXDUMP
812 bool "Enable hexdump"
813 help
814 This enables functions for printing dumps of binary data.
815
Simon Glass26637e22020-09-12 11:13:35 -0600816config SPL_HEXDUMP
817 bool "Enable hexdump in SPL"
Heinrich Schuchardtfa3f1f12021-07-24 17:35:46 +0200818 depends on SPL && HEXDUMP
Simon Glass26637e22020-09-12 11:13:35 -0600819 help
820 This enables functions for printing dumps of binary data in
821 SPL.
822
Sean Anderson72eda502020-10-27 19:55:36 -0400823config GETOPT
824 bool "Enable getopt"
825 help
826 This enables functions for parsing command-line options.
827
Simon Glass69e173e2016-02-22 22:55:42 -0700828config OF_LIBFDT
829 bool "Enable the FDT library"
830 default y if OF_CONTROL
831 help
832 This enables the FDT library (libfdt). It provides functions for
833 accessing binary device tree images in memory, such as adding and
Anatolij Gustschinf1a7ba12017-08-18 17:58:51 +0200834 removing nodes and properties, scanning through the tree and finding
Simon Glass69e173e2016-02-22 22:55:42 -0700835 particular compatible nodes. The library operates on a flattened
836 version of the device tree.
837
Simon Glass0d76afc2019-10-27 09:47:40 -0600838config OF_LIBFDT_ASSUME_MASK
839 hex "Mask of conditions to assume for libfdt"
840 depends on OF_LIBFDT || FIT
841 default 0
842 help
843 Use this to change the assumptions made by libfdt about the
844 device tree it is working with. A value of 0 means that no assumptions
845 are made, and libfdt is able to deal with malicious data. A value of
846 0xff means all assumptions are made and any invalid data may cause
847 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
848
Maxime Ripardddf67f72016-07-05 10:26:44 +0200849config OF_LIBFDT_OVERLAY
850 bool "Enable the FDT library overlay support"
Tom Rini64175722018-05-08 08:52:17 -0400851 depends on OF_LIBFDT
Praneeth Bajjuri58a46f82018-04-25 16:03:23 -0500852 default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
Maxime Ripardddf67f72016-07-05 10:26:44 +0200853 help
854 This enables the FDT library (libfdt) overlay support.
855
Tom Rini40ed7be2022-08-02 07:33:27 -0400856config SYS_FDT_PAD
857 hex "Maximum size of the FDT memory area passeed to the OS"
858 depends on OF_LIBFDT
859 default 0x13000 if FMAN_ENET || QE || U_QE
860 default 0x3000
861 help
862 During OS boot, we allocate a region of memory within the bootmap
863 for the FDT. This is the size that we will expand the FDT that we
864 are using will be extended to be, in bytes.
865
Simon Glassaa34fbc2016-02-22 22:55:45 -0700866config SPL_OF_LIBFDT
867 bool "Enable the FDT library for SPL"
Simon Glass747093d2022-04-30 00:56:53 -0600868 depends on SPL_LIBGENERIC_SUPPORT
Simon Glassaa34fbc2016-02-22 22:55:45 -0700869 default y if SPL_OF_CONTROL
870 help
871 This enables the FDT library (libfdt). It provides functions for
872 accessing binary device tree images in memory, such as adding and
Anatolij Gustschinf1a7ba12017-08-18 17:58:51 +0200873 removing nodes and properties, scanning through the tree and finding
Simon Glassaa34fbc2016-02-22 22:55:45 -0700874 particular compatible nodes. The library operates on a flattened
875 version of the device tree.
876
Simon Glass0d76afc2019-10-27 09:47:40 -0600877config SPL_OF_LIBFDT_ASSUME_MASK
878 hex "Mask of conditions to assume for libfdt"
Tom Rinib3401992022-06-10 23:03:09 -0400879 depends on SPL_OF_LIBFDT || (FIT && SPL)
Simon Glass0d76afc2019-10-27 09:47:40 -0600880 default 0xff
881 help
882 Use this to change the assumptions made by libfdt in SPL about the
883 device tree it is working with. A value of 0 means that no assumptions
884 are made, and libfdt is able to deal with malicious data. A value of
885 0xff means all assumptions are made and any invalid data may cause
886 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
887
Simon Glass5592a632018-10-01 12:22:21 -0600888config TPL_OF_LIBFDT
889 bool "Enable the FDT library for TPL"
Simon Glass747093d2022-04-30 00:56:53 -0600890 depends on TPL_LIBGENERIC_SUPPORT
Simon Glass5592a632018-10-01 12:22:21 -0600891 default y if TPL_OF_CONTROL
892 help
893 This enables the FDT library (libfdt). It provides functions for
894 accessing binary device tree images in memory, such as adding and
895 removing nodes and properties, scanning through the tree and finding
896 particular compatible nodes. The library operates on a flattened
897 version of the device tree.
898
Simon Glass0d76afc2019-10-27 09:47:40 -0600899config TPL_OF_LIBFDT_ASSUME_MASK
900 hex "Mask of conditions to assume for libfdt"
Tom Rini8bea4bf2022-06-08 08:24:39 -0400901 depends on TPL_OF_LIBFDT || (FIT && TPL)
Simon Glass0d76afc2019-10-27 09:47:40 -0600902 default 0xff
903 help
904 Use this to change the assumptions made by libfdt in TPL about the
905 device tree it is working with. A value of 0 means that no assumptions
906 are made, and libfdt is able to deal with malicious data. A value of
907 0xff means all assumptions are made and any invalid data may cause
908 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
909
Simon Glass747093d2022-04-30 00:56:53 -0600910config VPL_OF_LIBFDT
911 bool "Enable the FDT library for VPL"
Tom Rini13ce3512022-06-08 08:24:40 -0400912 depends on VPL
Simon Glass747093d2022-04-30 00:56:53 -0600913 default y if VPL_OF_CONTROL && !VPL_OF_PLATDATA
914 help
915 This enables the FDT library (libfdt). It provides functions for
916 accessing binary device tree images in memory, such as adding and
917 removing nodes and properties, scanning through the tree and finding
918 particular compatible nodes. The library operates on a flattened
919 version of the device tree.
920
921config VPL_OF_LIBFDT_ASSUME_MASK
922 hex "Mask of conditions to assume for libfdt"
Tom Rini13ce3512022-06-08 08:24:40 -0400923 depends on VPL_OF_LIBFDT || (FIT && VPL)
Simon Glass747093d2022-04-30 00:56:53 -0600924 default 0xff
925 help
926 Use this to change the assumptions made by libfdt in SPL about the
927 device tree it is working with. A value of 0 means that no assumptions
928 are made, and libfdt is able to deal with malicious data. A value of
929 0xff means all assumptions are made and any invalid data may cause
930 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
931
Heiko Schocherebf7fff2016-10-06 07:31:45 +0200932config FDT_FIXUP_PARTITIONS
933 bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
934 depends on OF_LIBFDT
Masahiro Yamadaab948cd2018-07-20 11:04:09 +0900935 depends on CMD_MTDPARTS
Heiko Schocherebf7fff2016-10-06 07:31:45 +0200936 help
937 Allow overwriting defined partitions in the device tree blob
938 using partition info defined in the 'mtdparts' environment
939 variable.
940
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200941menu "System tables"
Alexander Grafe663b352016-08-19 01:23:29 +0200942 depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200943
Simon Glassd2cb7a22020-11-04 09:57:25 -0700944config BLOBLIST_TABLES
945 bool "Put tables in a bloblist"
Simon Glassf2c14422021-03-15 18:11:22 +1300946 depends on X86 && BLOBLIST
Simon Glassd2cb7a22020-11-04 09:57:25 -0700947 help
948 Normally tables are placed at address 0xf0000 and can be up to 64KB
949 long. With this option, tables are instead placed in the bloblist
950 with a pointer from 0xf0000. The size can then be larger and the
951 tables can be placed high in memory.
952
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200953config GENERATE_SMBIOS_TABLE
954 bool "Generate an SMBIOS (System Management BIOS) table"
955 default y
Alexander Grafe663b352016-08-19 01:23:29 +0200956 depends on X86 || EFI_LOADER
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200957 help
958 The System Management BIOS (SMBIOS) specification addresses how
959 motherboard and system vendors present management information about
960 their products in a standard format by extending the BIOS interface
961 on Intel architecture systems.
962
963 Check http://www.dmtf.org/standards/smbios for details.
964
Simon Glass44c74bd2020-11-05 06:32:11 -0700965 See also SMBIOS_SYSINFO which allows SMBIOS values to be provided in
966 the devicetree.
967
Tero Kristo7d0f3fb2021-06-11 11:45:02 +0300968config LIB_RATIONAL
969 bool "enable continued fraction calculation routines"
970
971config SPL_LIB_RATIONAL
972 bool "enable continued fraction calculation routines for SPL"
973 depends on SPL
974
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200975endmenu
976
AKASHI Takahiro2b121962019-11-13 09:44:53 +0900977config ASN1_COMPILER
978 bool
Philippe Reynesa0e71d92022-03-28 22:56:54 +0200979 help
980 ASN.1 (Abstract Syntax Notation One) is a standard interface
981 description language for defining data structures that can be
982 serialized and deserialized in a cross-platform way. It is
983 broadly used in telecommunications and computer networking,
984 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
985 This option enables the support of the asn1 compiler.
AKASHI Takahiro2b121962019-11-13 09:44:53 +0900986
AKASHI Takahiroab8a0e02019-11-13 09:44:55 +0900987config ASN1_DECODER
988 bool
989 help
Philippe Reynesa0e71d92022-03-28 22:56:54 +0200990 ASN.1 (Abstract Syntax Notation One) is a standard interface
991 description language for defining data structures that can be
992 serialized and deserialized in a cross-platform way. It is
993 broadly used in telecommunications and computer networking,
994 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
995 This option enables the support of the asn1 decoder.
AKASHI Takahiroab8a0e02019-11-13 09:44:55 +0900996
Philippe Reynesfd210fe2022-03-28 22:56:56 +0200997config SPL_ASN1_DECODER
998 bool
999 help
1000 ASN.1 (Abstract Syntax Notation One) is a standard interface
1001 description language for defining data structures that can be
1002 serialized and deserialized in a cross-platform way. It is
1003 broadly used in telecommunications and computer networking,
1004 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1005 This option enables the support of the asn1 decoder in the SPL.
1006
AKASHI Takahiroa9b45e62019-11-13 09:44:57 +09001007config OID_REGISTRY
1008 bool
1009 help
Philippe Reynes7d44a982022-03-28 22:56:55 +02001010 In computing, object identifiers or OIDs are an identifier mechanism
1011 standardized by the International Telecommunication Union (ITU) and
1012 ISO/IEC for naming any object, concept, or "thing" with a globally
1013 unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier).
AKASHI Takahiroa9b45e62019-11-13 09:44:57 +09001014 Enable fast lookup object identifier registry.
1015
Philippe Reynesfd210fe2022-03-28 22:56:56 +02001016config SPL_OID_REGISTRY
1017 bool
1018 help
1019 In computing, object identifiers or OIDs are an identifier mechanism
1020 standardized by the International Telecommunication Union (ITU) and
1021 ISO/IEC for naming any object, concept, or "thing" with a globally
1022 unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier).
1023 Enable fast lookup object identifier registry in the SPL.
1024
Christian Gmeiner415eab02020-11-03 15:34:51 +01001025config SMBIOS_PARSER
1026 bool "SMBIOS parser"
1027 help
1028 A simple parser for SMBIOS data.
1029
Simon Glass867a6ac2015-07-31 09:31:36 -06001030source lib/efi/Kconfig
Alexander Grafed980b82016-03-04 01:10:07 +01001031source lib/efi_loader/Kconfig
Bryan O'Donoghue32ce6172018-03-13 16:50:27 +00001032source lib/optee/Kconfig
Simon Glass867a6ac2015-07-31 09:31:36 -06001033
Thierry Reding54969b42019-03-21 19:10:04 +01001034config TEST_FDTDEC
1035 bool "enable fdtdec test"
1036 depends on OF_LIBFDT
1037
AKASHI Takahiro05429b62019-11-13 09:44:49 +09001038config LIB_DATE
1039 bool
1040
Keerthy805b3ca2020-02-12 13:55:03 +05301041config LIB_ELF
1042 bool
1043 help
Patrick Delaunay6205bbb2021-01-04 15:33:28 +01001044 Support basic elf loading/validating functions.
1045 This supports for 32 bit and 64 bit versions.
Keerthy805b3ca2020-02-12 13:55:03 +05301046
Patrick Delaunay77b8cfe2021-03-10 10:16:25 +01001047config LMB
1048 bool "Enable the logical memory blocks library (lmb)"
Tom Rini11232132022-04-06 09:21:25 -04001049 default y if ARC || ARM || M68K || MICROBLAZE || MIPS || \
Patrick Delaunay77b8cfe2021-03-10 10:16:25 +01001050 NIOS2 || PPC || RISCV || SANDBOX || SH || X86 || XTENSA
1051 help
1052 Support the library logical memory blocks.
1053
Patrick Delaunay6d665022021-03-10 10:16:31 +01001054config LMB_USE_MAX_REGIONS
Heinrich Schuchardtac7606a2021-11-14 09:38:53 +01001055 bool "Use a common number of memory and reserved regions in lmb lib"
Patrick Delaunay6d665022021-03-10 10:16:31 +01001056 depends on LMB
Tom Rini948d3992023-02-08 10:18:26 -05001057 default y
Patrick Delaunay6d665022021-03-10 10:16:31 +01001058 help
1059 Define the number of supported memory regions in the library logical
1060 memory blocks.
1061 This feature allow to reduce the lmb library size by using compiler
1062 optimization when LMB_MEMORY_REGIONS == LMB_RESERVED_REGIONS.
Patrick Delaunay4fa01502021-03-10 10:16:28 +01001063
1064config LMB_MAX_REGIONS
1065 int "Number of memory and reserved regions in lmb lib"
Patrick Delaunay6d665022021-03-10 10:16:31 +01001066 depends on LMB && LMB_USE_MAX_REGIONS
Sjoerd Simons2dc16a22023-01-19 09:38:17 +01001067 default 16
Patrick Delaunay4fa01502021-03-10 10:16:28 +01001068 help
1069 Define the number of supported regions, memory and reserved, in the
1070 library logical memory blocks.
Patrick Delaunay6d665022021-03-10 10:16:31 +01001071
1072config LMB_MEMORY_REGIONS
1073 int "Number of memory regions in lmb lib"
1074 depends on LMB && !LMB_USE_MAX_REGIONS
1075 default 8
1076 help
1077 Define the number of supported memory regions in the library logical
1078 memory blocks.
1079 The minimal value is CONFIG_NR_DRAM_BANKS.
1080
1081config LMB_RESERVED_REGIONS
1082 int "Number of reserved regions in lmb lib"
1083 depends on LMB && !LMB_USE_MAX_REGIONS
1084 default 8
1085 help
1086 Define the number of supported reserved regions in the library logical
1087 memory blocks.
1088
Simon Glassebc1d502022-12-21 16:08:28 -07001089config PHANDLE_CHECK_SEQ
1090 bool "Enable phandle check while getting sequence number"
1091 help
1092 When there are multiple device tree nodes with same name,
1093 enable this config option to distinguish them using
1094 phandles in fdtdec_get_alias_seq() function.
1095
Eugen Hristev97f2a742022-01-04 18:20:19 +02001096endmenu
Sughosh Ganu86794052022-10-21 18:16:03 +05301097
1098menu "FWU Multi Bank Updates"
1099
1100source lib/fwu_updates/Kconfig
1101
1102endmenu