blob: 3926652db63959579560fd5422a96888292c5510 [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
76
Simon Glass3b510802023-02-22 09:34:11 -070077config SPL_LIB_UUID
78 depends on SPL
79 bool
80
Kautuk Consul1c03ab92022-12-07 17:12:34 +053081config SEMIHOSTING
82 bool "Support semihosting"
Kautuk Consulae3527f2022-12-07 17:12:35 +053083 depends on ARM || RISCV
Kautuk Consul1c03ab92022-12-07 17:12:34 +053084 help
85 Semihosting is a method for a target to communicate with a host
86 debugger. It uses special instructions which the debugger will trap
87 on and interpret. This allows U-Boot to read/write files, print to
88 the console, and execute arbitrary commands on the host system.
89
90 Enabling this option will add support for reading and writing files
91 on the host system. If you don't have a debugger attached then trying
92 to do this will likely cause U-Boot to hang. Say 'n' if you are unsure.
93
94config SEMIHOSTING_FALLBACK
95 bool "Recover gracefully when semihosting fails"
Kautuk Consulae3527f2022-12-07 17:12:35 +053096 depends on SEMIHOSTING && (ARM64 || RISCV)
Kautuk Consul1c03ab92022-12-07 17:12:34 +053097 default y
98 help
99 Normally, if U-Boot makes a semihosting call and no debugger is
100 attached, then it will panic due to a synchronous abort
101 exception. This config adds an exception handler which will allow
102 U-Boot to recover. Say 'y' if unsure.
103
104config SPL_SEMIHOSTING
105 bool "Support semihosting in SPL"
Kautuk Consulae3527f2022-12-07 17:12:35 +0530106 depends on SPL && (ARM || RISCV)
Kautuk Consul1c03ab92022-12-07 17:12:34 +0530107 help
108 Semihosting is a method for a target to communicate with a host
109 debugger. It uses special instructions which the debugger will trap
110 on and interpret. This allows U-Boot to read/write files, print to
111 the console, and execute arbitrary commands on the host system.
112
113 Enabling this option will add support for reading and writing files
114 on the host system. If you don't have a debugger attached then trying
115 to do this will likely cause U-Boot to hang. Say 'n' if you are unsure.
116
117config SPL_SEMIHOSTING_FALLBACK
118 bool "Recover gracefully when semihosting fails in SPL"
Kautuk Consulae3527f2022-12-07 17:12:35 +0530119 depends on SPL_SEMIHOSTING && (ARM64 || RISCV)
120 select ARMV8_SPL_EXCEPTION_VECTORS if ARM64
Kautuk Consul1c03ab92022-12-07 17:12:34 +0530121 default y
122 help
123 Normally, if U-Boot makes a semihosting call and no debugger is
124 attached, then it will panic due to a synchronous abort
125 exception. This config adds an exception handler which will allow
126 U-Boot to recover. Say 'y' if unsure.
127
Alex Kiernan14ad44a2018-04-19 04:32:54 +0000128config PRINTF
129 bool
130 default y
131
132config SPL_PRINTF
133 bool
134 select SPL_SPRINTF
Simon Glass27084c02019-09-25 08:56:27 -0600135 select SPL_STRTO if !SPL_USE_TINY_PRINTF
Alex Kiernan14ad44a2018-04-19 04:32:54 +0000136
137config TPL_PRINTF
138 bool
139 select TPL_SPRINTF
Simon Glass27084c02019-09-25 08:56:27 -0600140 select TPL_STRTO if !TPL_USE_TINY_PRINTF
Alex Kiernan14ad44a2018-04-19 04:32:54 +0000141
Simon Glass747093d2022-04-30 00:56:53 -0600142config VPL_PRINTF
143 bool
144 select VPL_SPRINTF
145 select VPL_STRTO if !VPL_USE_TINY_PRINTF
146
Alex Kiernan14ad44a2018-04-19 04:32:54 +0000147config SPRINTF
148 bool
149 default y
150
151config SPL_SPRINTF
152 bool
153
154config TPL_SPRINTF
155 bool
156
Simon Glass747093d2022-04-30 00:56:53 -0600157config VPL_SPRINTF
158 bool
159
Andrii Anisove87dfb02020-08-06 12:42:52 +0300160config SSCANF
161 bool
Andrii Anisove87dfb02020-08-06 12:42:52 +0300162
Alex Kiernan14ad44a2018-04-19 04:32:54 +0000163config STRTO
164 bool
165 default y
166
167config SPL_STRTO
168 bool
169
170config TPL_STRTO
171 bool
172
Simon Glass747093d2022-04-30 00:56:53 -0600173config VPL_STRTO
174 bool
175
Alex Kiernanc232d142018-05-29 15:30:52 +0000176config IMAGE_SPARSE
177 bool
178
179config IMAGE_SPARSE_FILLBUF_SIZE
180 hex "Android sparse image CHUNK_TYPE_FILL buffer size"
181 default 0x80000
182 depends on IMAGE_SPARSE
183 help
184 Set the size of the fill buffer used when processing CHUNK_TYPE_FILL
185 chunks.
186
Masahiro Yamada45ccec82014-10-24 01:30:43 +0900187config USE_PRIVATE_LIBGCC
188 bool "Use private libgcc"
189 depends on HAVE_PRIVATE_LIBGCC
Marek Vasut91b86e22016-05-26 18:01:47 +0200190 default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS)
Masahiro Yamada45ccec82014-10-24 01:30:43 +0900191 help
192 This option allows you to use the built-in libgcc implementation
Masahiro Yamada67976302016-03-30 20:17:42 +0900193 of U-Boot instead of the one provided by the compiler.
Masahiro Yamada45ccec82014-10-24 01:30:43 +0900194 If unsure, say N.
195
Masahiro Yamada8c688bc2014-10-24 01:30:40 +0900196config SYS_HZ
197 int
198 default 1000
199 help
200 The frequency of the timer returned by get_timer().
201 get_timer() must operate in milliseconds and this option must be
202 set to 1000.
203
Simon Glass27084c02019-09-25 08:56:27 -0600204config SPL_USE_TINY_PRINTF
Thomas Hebb37ef1772019-11-10 08:23:53 -0800205 bool "Enable tiny printf() version in SPL"
Simon Glass27084c02019-09-25 08:56:27 -0600206 depends on SPL
Tom Rini2a51e162019-06-08 12:46:18 -0400207 default y
Stefan Roese7d9cde12015-11-23 07:00:22 +0100208 help
209 This option enables a tiny, stripped down printf version.
210 This should only be used in space limited environments,
211 like SPL versions with hard memory limits. This version
212 reduces the code size by about 2.5KiB on armv7.
213
214 The supported format specifiers are %c, %s, %u/%d and %x.
215
Simon Glass27084c02019-09-25 08:56:27 -0600216config TPL_USE_TINY_PRINTF
Thomas Hebb37ef1772019-11-10 08:23:53 -0800217 bool "Enable tiny printf() version in TPL"
Simon Glass27084c02019-09-25 08:56:27 -0600218 depends on TPL
219 default y if SPL_USE_TINY_PRINTF
220 help
221 This option enables a tiny, stripped down printf version.
222 This should only be used in space limited environments,
223 like SPL versions with hard memory limits. This version
224 reduces the code size by about 2.5KiB on armv7.
225
226 The supported format specifiers are %c, %s, %u/%d and %x.
227
Simon Glass747093d2022-04-30 00:56:53 -0600228config VPL_USE_TINY_PRINTF
229 bool "Enable tiny printf() version for VPL"
230 depends on VPL
231 help
232 This option enables a tiny, stripped down printf version.
233 This should only be used in space limited environments,
234 like SPL versions with hard memory limits. This version
235 reduces the code size by about 2.5KiB on armv7.
236
237 The supported format specifiers are %c, %s, %u/%d and %x.
238
Masahiro Yamada7e3caa82017-12-04 12:37:00 +0900239config PANIC_HANG
240 bool "Do not reset the system on fatal error"
241 help
242 Define this option to stop the system in case of a fatal error,
243 so that you have to reset it manually. This is probably NOT a good
244 idea for an embedded system where you want the system to reboot
245 automatically as fast as possible, but it may be useful during
246 development since you can try to debug the conditions that lead to
247 the situation.
248
Joe Hershberger1a606502015-04-21 17:02:42 -0500249config REGEX
250 bool "Enable regular expression support"
Joe Hershbergerf7848d92015-06-22 17:57:36 -0500251 default y if NET
Joe Hershberger1a606502015-04-21 17:02:42 -0500252 help
253 If this variable is defined, U-Boot is linked against the
254 SLRE (Super Light Regular Expression) library, which adds
255 regex support to some commands, for example "env grep" and
256 "setexpr".
257
Adam Forda5a37562018-02-06 10:18:18 -0600258choice
259 prompt "Pseudo-random library support type"
Heinrich Schuchardt16112352020-01-19 19:28:12 +0100260 depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID || \
Heinrich Schuchardt28cef9c2020-11-20 12:55:22 +0100261 RNG_SANDBOX || UT_LIB && AES || FAT_WRITE
Adam Forda5a37562018-02-06 10:18:18 -0600262 default LIB_RAND
Masahiro Yamada3850dbe2015-06-11 19:16:43 +0900263 help
Adam Forda5a37562018-02-06 10:18:18 -0600264 Select the library to provide pseudo-random number generator
265 functions. LIB_HW_RAND supports certain hardware engines that
266 provide this functionality. If in doubt, select LIB_RAND.
267
268config LIB_RAND
269 bool "Pseudo-random library support"
270
271config LIB_HW_RAND
Marcin Juszkiewicz43e442a2020-05-26 19:07:15 +0200272 bool "HW Engine for random library support"
Adam Forda5a37562018-02-06 10:18:18 -0600273
274endchoice
Michal Simek9ba9e852015-05-25 11:37:22 +0200275
Simon Glasse1722fc2021-12-01 09:02:36 -0700276config SUPPORT_ACPI
277 bool
278 help
279 Enable this if your arch or board can support generating ACPI
280 (Advanced Configuration and Power Interface) tables. In this case
281 U-Boot can generate these tables and pass them to the Operating
282 System.
283
Simon Glass0992a902023-05-04 16:54:57 -0600284config ACPI
285 bool "Enable support for ACPI libraries"
286 depends on SUPPORT_ACPI
287 help
288 Provides library functions for dealing with ACPI tables. This does
289 not necessarily include generation of tables
290 (see GENERATE_ACPI_TABLE), but allows for tables to be located.
291
Simon Glasse1722fc2021-12-01 09:02:36 -0700292config GENERATE_ACPI_TABLE
293 bool "Generate an ACPI (Advanced Configuration and Power Interface) table"
Simon Glass0992a902023-05-04 16:54:57 -0600294 depends on ACPI
Simon Glasse1722fc2021-12-01 09:02:36 -0700295 select QFW if QEMU
296 help
297 The Advanced Configuration and Power Interface (ACPI) specification
298 provides an open standard for device configuration and management
299 by the operating system. It defines platform-independent interfaces
300 for configuration and power management monitoring.
301
Simon Glassab4458b2017-04-02 09:50:28 -0600302config SPL_TINY_MEMSET
303 bool "Use a very small memset() in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400304 depends on SPL
Simon Glassab4458b2017-04-02 09:50:28 -0600305 help
306 The faster memset() is the arch-specific one (if available) enabled
307 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
308 better performance by writing a word at a time. But in very
Chris Packham6e705112019-01-13 22:13:28 +1300309 size-constrained environments even this may be too big. Enable this
Simon Glassab4458b2017-04-02 09:50:28 -0600310 option to reduce code size slightly at the cost of some speed.
311
Philipp Tomsich96b90822017-08-03 22:52:04 +0200312config TPL_TINY_MEMSET
313 bool "Use a very small memset() in TPL"
Tom Rini8bea4bf2022-06-08 08:24:39 -0400314 depends on TPL
Philipp Tomsich96b90822017-08-03 22:52:04 +0200315 help
316 The faster memset() is the arch-specific one (if available) enabled
317 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
318 better performance by writing a word at a time. But in very
Chris Packham6e705112019-01-13 22:13:28 +1300319 size-constrained environments even this may be too big. Enable this
Philipp Tomsich96b90822017-08-03 22:52:04 +0200320 option to reduce code size slightly at the cost of some speed.
321
Boris Brezillonaa049152017-02-27 18:22:05 +0100322config RBTREE
323 bool
324
Nandor Handa5337a2017-11-08 15:35:14 +0000325config BITREVERSE
326 bool "Bit reverse library from Linux"
327
Simon Glassa24a78d2019-04-08 13:20:51 -0600328config TRACE
329 bool "Support for tracing of function calls and timing"
330 imply CMD_TRACE
Simon Glass12619d42022-12-21 16:08:26 -0700331 imply TIMER_EARLY
Simon Glassa24a78d2019-04-08 13:20:51 -0600332 help
333 Enables function tracing within U-Boot. This allows recording of call
334 traces including timing information. The command can write data to
335 memory for exporting for analysis (e.g. using bootchart).
336 See doc/README.trace for full details.
337
Simon Glass1c6eb072019-04-08 13:20:52 -0600338config TRACE_BUFFER_SIZE
339 hex "Size of trace buffer in U-Boot"
340 depends on TRACE
341 default 0x01000000
342 help
343 Sets the size of the trace buffer in U-Boot. This is allocated from
344 memory during relocation. If this buffer is too small, the trace
345 history will be truncated, with later records omitted.
346
347 If early trace is enabled (i.e. before relocation), this buffer must
348 be large enough to include all the data from the early trace buffer as
349 well, since this is copied over to the main buffer during relocation.
350
351 A trace record is emitted for each function call and each record is
352 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
353 the size is too small then 'trace stats' will show a message saying
354 how many records were dropped due to buffer overflow.
355
Heinrich Schuchardtda0fb5f2019-06-02 13:30:09 +0200356config TRACE_CALL_DEPTH_LIMIT
357 int "Trace call depth limit"
358 depends on TRACE
359 default 15
360 help
361 Sets the maximum call depth up to which function calls are recorded.
362
Simon Glass1c6eb072019-04-08 13:20:52 -0600363config TRACE_EARLY
364 bool "Enable tracing before relocation"
365 depends on TRACE
366 help
367 Sometimes it is helpful to trace execution of U-Boot before
368 relocation. This is possible by using a arch-specific, fixed buffer
369 position in memory. Enable this option to start tracing as early as
370 possible after U-Boot starts.
371
372config TRACE_EARLY_SIZE
373 hex "Size of early trace buffer in U-Boot"
374 depends on TRACE_EARLY
375 default 0x00100000
376 help
377 Sets the size of the early trace buffer in bytes. This is used to hold
378 tracing information before relocation.
379
Heinrich Schuchardtda0fb5f2019-06-02 13:30:09 +0200380config TRACE_EARLY_CALL_DEPTH_LIMIT
381 int "Early trace call depth limit"
382 depends on TRACE_EARLY
Simon Glassc33425c2023-01-15 14:15:44 -0700383 default 15
Heinrich Schuchardtda0fb5f2019-06-02 13:30:09 +0200384 help
385 Sets the maximum call depth up to which function calls are recorded
386 during early tracing.
387
Simon Glass1c6eb072019-04-08 13:20:52 -0600388config TRACE_EARLY_ADDR
389 hex "Address of early trace buffer in U-Boot"
390 depends on TRACE_EARLY
391 default 0x00100000
392 help
393 Sets the address of the early trace buffer in U-Boot. This memory
394 must be accessible before relocation.
395
396 A trace record is emitted for each function call and each record is
397 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
398 the size is too small then the message which says the amount of early
399 data being coped will the the same as the
400
Loic Poulain334a9b92021-11-25 18:16:14 +0100401config CIRCBUF
402 bool "Enable circular buffer support"
403
Simon Glassd1389402015-06-23 15:38:23 -0600404source lib/dhry/Kconfig
405
Simon Glassb1a873d2017-04-26 22:27:49 -0600406menu "Security support"
407
408config AES
409 bool "Support the AES algorithm"
410 help
411 This provides a means to encrypt and decrypt data using the AES
412 (Advanced Encryption Standard). This algorithm uses a symetric key
413 and is widely used as a streaming cipher. Different key lengths are
414 supported by the algorithm but only a 128-bit key is supported at
415 present.
416
Alexandru Gagniuc928a8be2021-07-29 11:47:16 -0500417source lib/ecdsa/Kconfig
Ruchika Guptad9f23c72015-01-23 16:01:56 +0530418source lib/rsa/Kconfig
AKASHI Takahirob4adf622019-11-13 09:45:00 +0900419source lib/crypto/Kconfig
Steffen Jaeckel26dd9932021-07-08 15:57:33 +0200420source lib/crypt/Kconfig
Ruchika Guptac4beb222015-01-23 16:01:51 +0530421
Simon Glassa7d660b2015-08-22 18:31:19 -0600422config TPM
423 bool "Trusted Platform Module (TPM) Support"
Simon Glass2419cd12015-10-03 06:39:36 -0600424 depends on DM
Sughosh Ganue67ffb52022-07-22 21:32:04 +0530425 imply DM_RNG
Simon Glassa7d660b2015-08-22 18:31: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
Simon Glass63078962018-10-01 12:22:19 -0600434config SPL_TPM
435 bool "Trusted Platform Module (TPM) Support in SPL"
436 depends on SPL_DM
Simon Glass0c16fca2023-01-07 14:57:20 -0700437 imply SPL_CRC8
Simon Glass63078962018-10-01 12:22:19 -0600438 help
439 This enables support for TPMs which can be used to provide security
440 features for your board. The TPM can be connected via LPC or I2C
441 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
442 command to interactive the TPM. Driver model support is provided
443 for the low-level TPM interface, but only one TPM is supported at
444 a time by the TPM library.
445
446config TPL_TPM
447 bool "Trusted Platform Module (TPM) Support in TPL"
448 depends on TPL_DM
449 help
450 This enables support for TPMs which can be used to provide security
451 features for your board. The TPM can be connected via LPC or I2C
452 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
453 command to interactive the TPM. Driver model support is provided
454 for the low-level TPM interface, but only one TPM is supported at
455 a time by the TPM library.
456
Simon Glass747093d2022-04-30 00:56:53 -0600457config VPL_TPM
458 bool "Trusted Platform Module (TPM) Support in VPL"
459 depends on VPL_DM
460 help
461 This enables support for TPMs which can be used to provide security
462 features for your board. The TPM can be connected via LPC or I2C
463 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
464 command to interactive the TPM. Driver model support is provided
465 for the low-level TPM interface, but only one TPM is supported at
466 a time by the TPM library.
467
Simon Glassb1a873d2017-04-26 22:27:49 -0600468endmenu
469
Igor Opaniuk33305842018-06-03 21:56:37 +0300470menu "Android Verified Boot"
471
472config LIBAVB
473 bool "Android Verified Boot 2.0 support"
474 depends on ANDROID_BOOT_IMAGE
Igor Opaniuk33305842018-06-03 21:56:37 +0300475 help
476 This enables support of Android Verified Boot 2.0 which can be used
477 to assure the end user of the integrity of the software running on a
478 device. Introduces such features as boot chain of trust, rollback
479 protection etc.
480
481endmenu
482
gaurav rana94e3c8c2015-02-20 12:51:46 +0530483menu "Hashing Support"
484
Qu Wenruo7c3fd5c2021-12-27 14:12:07 +0800485config BLAKE2
486 bool "Enable BLAKE2 support"
487 help
488 This option enables support of hashing using BLAKE2B algorithm.
489 The hash is calculated in software.
490 The BLAKE2 algorithm produces a hash value (digest) between 1 and
491 64 bytes.
492
gaurav rana94e3c8c2015-02-20 12:51:46 +0530493config SHA1
494 bool "Enable SHA1 support"
495 help
496 This option enables support of hashing using SHA1 algorithm.
497 The hash is calculated in software.
498 The SHA1 algorithm produces a 160-bit (20-byte) hash value
499 (digest).
500
501config SHA256
502 bool "Enable SHA256 support"
503 help
504 This option enables support of hashing using SHA256 algorithm.
505 The hash is calculated in software.
506 The SHA256 algorithm produces a 256-bit (32-byte) hash value
507 (digest).
508
Reuben Dowled16b38f2020-04-16 17:36:52 +1200509config SHA512
510 bool "Enable SHA512 support"
Manorit Chawdhrydfe00b32023-07-14 11:22:39 +0530511 default y if TI_SECURE_DEVICE && FIT_SIGNATURE
Reuben Dowled16b38f2020-04-16 17:36:52 +1200512 help
513 This option enables support of hashing using SHA512 algorithm.
514 The hash is calculated in software.
515 The SHA512 algorithm produces a 512-bit (64-byte) hash value
516 (digest).
517
518config SHA384
519 bool "Enable SHA384 support"
Alexandru Gagniuce60e4492021-09-02 19:54:18 -0500520 select SHA512
Reuben Dowled16b38f2020-04-16 17:36:52 +1200521 help
522 This option enables support of hashing using SHA384 algorithm.
Alexandru Gagniuce60e4492021-09-02 19:54:18 -0500523 The hash is calculated in software. This is also selects SHA512,
524 because these implementations share the bulk of the code..
Reuben Dowled16b38f2020-04-16 17:36:52 +1200525 The SHA384 algorithm produces a 384-bit (48-byte) hash value
526 (digest).
527
gaurav rana94e3c8c2015-02-20 12:51:46 +0530528config SHA_HW_ACCEL
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200529 bool "Enable hardware acceleration for SHA hash functions"
gaurav rana94e3c8c2015-02-20 12:51:46 +0530530 help
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200531 This option enables hardware acceleration for the SHA1 and SHA256
532 hashing algorithms. This affects the 'hash' command and also the
533 hash_lookup_algo() function.
534
Simon Glass603d15a2021-09-25 19:43:17 -0600535if SPL
536
537config SPL_SHA1
538 bool "Enable SHA1 support in SPL"
539 default y if SHA1
540 help
541 This option enables support of hashing using SHA1 algorithm.
542 The hash is calculated in software.
543 The SHA1 algorithm produces a 160-bit (20-byte) hash value
544 (digest).
545
546config SPL_SHA256
547 bool "Enable SHA256 support in SPL"
548 default y if SHA256
549 help
550 This option enables support of hashing using SHA256 algorithm.
551 The hash is calculated in software.
552 The SHA256 algorithm produces a 256-bit (32-byte) hash value
553 (digest).
554
555config SPL_SHA512
556 bool "Enable SHA512 support in SPL"
557 default y if SHA512
558 help
559 This option enables support of hashing using SHA512 algorithm.
560 The hash is calculated in software.
561 The SHA512 algorithm produces a 512-bit (64-byte) hash value
562 (digest).
563
564config SPL_SHA384
565 bool "Enable SHA384 support in SPL"
566 default y if SHA384
567 select SPL_SHA512
568 help
569 This option enables support of hashing using SHA384 algorithm.
570 The hash is calculated in software. This is also selects SHA512,
571 because these implementations share the bulk of the code..
572 The SHA384 algorithm produces a 384-bit (48-byte) hash value
573 (digest).
574
Simon Glass2c212562021-09-25 19:43:18 -0600575config SPL_SHA_HW_ACCEL
576 bool "Enable hardware acceleration for SHA hash functions"
577 default y if SHA_HW_ACCEL
578 help
579 This option enables hardware acceleration for the SHA1 and SHA256
580 hashing algorithms. This affects the 'hash' command and also the
581 hash_lookup_algo() function.
582
583config SPL_SHA_PROG_HW_ACCEL
584 bool "Enable Progressive hashing support using hardware in SPL"
585 depends on SHA_PROG_HW_ACCEL
586 default y
587 help
588 This option enables hardware-acceleration for SHA progressive
589 hashing.
590 Data can be streamed in a block at a time and the hashing is
591 performed in hardware.
592
Simon Glass603d15a2021-09-25 19:43:17 -0600593endif
594
Simon Glass5a6bc162023-02-22 09:34:01 -0700595config VPL_SHA1
596 bool "Enable SHA1 support in VPL"
597 depends on VPL
598 default y if SHA1
599 help
600 This option enables support of hashing using SHA1 algorithm.
601 The hash is calculated in software.
602 The SHA1 algorithm produces a 160-bit (20-byte) hash value
603 (digest).
604
605config VPL_SHA256
606 bool "Enable SHA256 support in VPL"
607 depends on VPL
608 default y if SHA256
609 help
610 This option enables support of hashing using SHA256 algorithm.
611 The hash is calculated in software.
612 The SHA256 algorithm produces a 256-bit (32-byte) hash value
613 (digest).
614
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200615if SHA_HW_ACCEL
616
617config SHA512_HW_ACCEL
618 bool "Enable hardware acceleration for SHA512"
Alexandru Gagniuce60e4492021-09-02 19:54:18 -0500619 depends on SHA512
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200620 help
621 This option enables hardware acceleration for the SHA384 and SHA512
622 hashing algorithms. This affects the 'hash' command and also the
623 hash_lookup_algo() function.
gaurav rana94e3c8c2015-02-20 12:51:46 +0530624
625config SHA_PROG_HW_ACCEL
626 bool "Enable Progressive hashing support using hardware"
gaurav rana94e3c8c2015-02-20 12:51:46 +0530627 help
Joel Stanleya479f102021-02-17 13:50:42 +1030628 This option enables hardware-acceleration for SHA progressive
629 hashing.
630 Data can be streamed in a block at a time and the hashing is
631 performed in hardware.
Andre Przywarabea79d72017-03-15 01:19:05 +0000632
Heinrich Schuchardte2ae4832021-05-14 07:08:27 +0200633endif
634
Andre Przywarabea79d72017-03-15 01:19:05 +0000635config MD5
Simon Glass8239be62020-05-06 08:03:56 -0600636 bool "Support MD5 algorithm"
637 help
638 This option enables MD5 support. MD5 is an algorithm designed
639 in 1991 that produces a 16-byte digest (or checksum) from its input
640 data. It has a number of vulnerabilities which preclude its use in
641 security applications, but it can be useful for providing a quick
642 checksum of a block of data.
643
644config SPL_MD5
645 bool "Support MD5 algorithm in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400646 depends on SPL
Simon Glass8239be62020-05-06 08:03:56 -0600647 help
648 This option enables MD5 support in SPL. MD5 is an algorithm designed
649 in 1991 that produces a 16-byte digest (or checksum) from its input
650 data. It has a number of vulnerabilities which preclude its use in
651 security applications, but it can be useful for providing a quick
652 checksum of a block of data.
Andre Przywarabea79d72017-03-15 01:19:05 +0000653
Simon Glass0c16fca2023-01-07 14:57:20 -0700654config CRC8
655 def_bool y
656 help
657 Enables CRC8 support in U-Boot. This is normally required. CRC8 is
658 a simple and fast checksumming algorithm which does a bytewise
659 checksum with feedback to produce an 8-bit result. The code is small
660 and it does not require a lookup table (unlike CRC32).
661
662config SPL_CRC8
663 bool "Support CRC8 in SPL"
664 depends on SPL
665 help
666 Enables CRC8 support in SPL. This is not normally required. CRC8 is
667 a simple and fast checksumming algorithm which does a bytewise
668 checksum with feedback to produce an 8-bit result. The code is small
669 and it does not require a lookup table (unlike CRC32).
670
Simon Glasse7d285b2021-09-25 19:43:24 -0600671config CRC32
672 def_bool y
673 help
674 Enables CRC32 support in U-Boot. This is normally required.
675
Marek Behún85d8bf52017-09-03 17:00:23 +0200676config CRC32C
677 bool
678
Marek Behún83a486b2019-04-29 22:40:43 +0200679config XXHASH
680 bool
681
gaurav rana94e3c8c2015-02-20 12:51:46 +0530682endmenu
683
Julius Werner027b7282015-10-06 20:03:53 -0700684menu "Compression Support"
685
686config LZ4
687 bool "Enable LZ4 decompression support"
688 help
689 If this option is set, support for LZ4 compressed images
690 is included. The LZ4 algorithm can run in-place as long as the
691 compressed image is loaded to the end of the output buffer, and
692 trades lower compression ratios for much faster decompression.
Patrick Delaunay4fa01502021-03-10 10:16:28 +0100693
Julius Werner027b7282015-10-06 20:03:53 -0700694 NOTE: This implements the release version of the LZ4 frame
695 format as generated by default by the 'lz4' command line tool.
696 This is not the same as the outdated, less efficient legacy
697 frame format currently (2015) implemented in the Linux kernel
698 (generated by 'lz4 -l'). The two formats are incompatible.
699
Simon Glassaed998a2017-05-17 03:25:42 -0600700config LZMA
701 bool "Enable LZMA decompression support"
702 help
703 This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
704 a dictionary compression algorithm that provides a high compression
705 ratio and fairly fast decompression speed. See also
706 CONFIG_CMD_LZMADEC which provides a decode command.
707
Boris Brezillon173aafb2017-02-27 18:22:06 +0100708config LZO
Tom Rinid56b4b12017-07-22 18:36:16 -0400709 bool "Enable LZO decompression support"
710 help
Oleksandr Suvorov5145bc72021-09-01 16:05:08 +0300711 This enables support for the LZO compression algorithm.
York Sun7264f292017-08-15 11:14:43 -0700712
Marek Vasut95f4bbd2019-03-08 16:06:55 +0100713config GZIP
Heiko Schocher51323612019-04-29 08:59:38 +0200714 bool "Enable gzip decompression support"
Marek Vasut95f4bbd2019-03-08 16:06:55 +0100715 select ZLIB
716 default y
717 help
718 This enables support for GZIP compression algorithm.
719
Joao Marcos Costa81014f72020-07-30 15:33:49 +0200720config ZLIB_UNCOMPRESS
721 bool "Enables zlib's uncompress() functionality"
722 help
723 This enables an extra zlib functionality: the uncompress() function,
724 which decompresses data from a buffer into another, knowing their
725 sizes. Unlike gunzip(), there is no header parsing.
726
Michael Walleeff5a542020-05-22 14:07:36 +0200727config GZIP_COMPRESSED
728 bool
729 select ZLIB
730
Atish Patra2a2119e2020-03-05 16:24:21 -0800731config BZIP2
732 bool "Enable bzip2 decompression support"
733 help
734 This enables support for BZIP2 compression algorithm.
735
Marek Vasut95f4bbd2019-03-08 16:06:55 +0100736config ZLIB
737 bool
738 default y
739 help
740 This enables ZLIB compression lib.
741
Marek Behún8509f222019-04-29 22:40:44 +0200742config ZSTD
743 bool "Enable Zstandard decompression support"
744 select XXHASH
745 help
746 This enables Zstandard decompression library.
747
Brandon Maier4b9b25d2023-01-12 10:27:45 -0600748if ZSTD
749
750config ZSTD_LIB_MINIFY
751 bool "Minify Zstandard code"
752 default y
753 help
754 This disables various optional components and changes the
755 compilation flags to prioritize space-saving.
756
757 For detailed info, see zstd's lib/README.md
758
759 https://github.com/facebook/zstd/blob/dev/lib/README.md
760
761endif
762
Simon Glassae625d92023-02-22 09:33:54 -0700763config SPL_BZIP2
764 bool "Enable bzip2 decompression support for SPL build"
765 depends on SPL
766 help
767 This enables support for bzip2 compression algorithm for SPL boot.
768
Simon Glass048c6e82018-11-06 15:21:30 -0700769config SPL_LZ4
770 bool "Enable LZ4 decompression support in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400771 depends on SPL
Simon Glass048c6e82018-11-06 15:21:30 -0700772 help
Marcin Juszkiewicz43e442a2020-05-26 19:07:15 +0200773 This enables support for the LZ4 decompression algorithm in SPL. LZ4
Simon Glass048c6e82018-11-06 15:21:30 -0700774 is a lossless data compression algorithm that is focused on
775 fast compression and decompression speed. It belongs to the LZ77
776 family of byte-oriented compression schemes.
777
Weijie Gao04cb3992020-04-21 09:28:38 +0200778config SPL_LZMA
779 bool "Enable LZMA decompression support for SPL build"
Tom Rinib3401992022-06-10 23:03:09 -0400780 depends on SPL
Weijie Gao04cb3992020-04-21 09:28:38 +0200781 help
Marcin Juszkiewicz43e442a2020-05-26 19:07:15 +0200782 This enables support for LZMA compression algorithm for SPL boot.
Weijie Gao04cb3992020-04-21 09:28:38 +0200783
Simon Glass747093d2022-04-30 00:56:53 -0600784config VPL_LZMA
785 bool "Enable LZMA decompression support for VPL build"
786 default y if LZMA
787 help
788 This enables support for LZMA compression algorithm for VPL boot.
789
Jean-Jacques Hiblotf52bdf42017-09-15 12:57:30 +0200790config SPL_LZO
791 bool "Enable LZO decompression support in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400792 depends on SPL
Jean-Jacques Hiblotf52bdf42017-09-15 12:57:30 +0200793 help
794 This enables support for LZO compression algorithm in the SPL.
795
York Sun7264f292017-08-15 11:14:43 -0700796config SPL_GZIP
797 bool "Enable gzip decompression support for SPL build"
798 select SPL_ZLIB
799 help
Oleksandr Suvorov5145bc72021-09-01 16:05:08 +0300800 This enables support for the GZIP compression algorithm for SPL boot.
York Sun7264f292017-08-15 11:14:43 -0700801
802config SPL_ZLIB
803 bool
804 help
805 This enables compression lib for SPL boot.
806
Marek Behún8509f222019-04-29 22:40:44 +0200807config SPL_ZSTD
808 bool "Enable Zstandard decompression support in SPL"
Tom Rinib3401992022-06-10 23:03:09 -0400809 depends on SPL
Marek Behún8509f222019-04-29 22:40:44 +0200810 select XXHASH
811 help
812 This enables Zstandard decompression library in the SPL.
813
Julius Werner027b7282015-10-06 20:03:53 -0700814endmenu
815
Przemyslaw Marczak6501ff62015-04-20 20:07:40 +0200816config ERRNO_STR
817 bool "Enable function for getting errno-related string message"
818 help
819 The function errno_str(int errno), returns a pointer to the errno
820 corresponding text message:
821 - if errno is null or positive number - a pointer to "Success" message
822 - if errno is negative - a pointer to errno related message
823
Alexey Brodkinf8c987f2018-06-05 17:17:57 +0300824config HEXDUMP
825 bool "Enable hexdump"
826 help
827 This enables functions for printing dumps of binary data.
828
Simon Glass26637e22020-09-12 11:13:35 -0600829config SPL_HEXDUMP
830 bool "Enable hexdump in SPL"
Heinrich Schuchardtfa3f1f12021-07-24 17:35:46 +0200831 depends on SPL && HEXDUMP
Simon Glass26637e22020-09-12 11:13:35 -0600832 help
833 This enables functions for printing dumps of binary data in
834 SPL.
835
Sean Anderson72eda502020-10-27 19:55:36 -0400836config GETOPT
837 bool "Enable getopt"
838 help
839 This enables functions for parsing command-line options.
840
Simon Glass69e173e2016-02-22 22:55:42 -0700841config OF_LIBFDT
842 bool "Enable the FDT library"
843 default y if OF_CONTROL
844 help
845 This enables the FDT library (libfdt). It provides functions for
846 accessing binary device tree images in memory, such as adding and
Anatolij Gustschinf1a7ba12017-08-18 17:58:51 +0200847 removing nodes and properties, scanning through the tree and finding
Simon Glass69e173e2016-02-22 22:55:42 -0700848 particular compatible nodes. The library operates on a flattened
849 version of the device tree.
850
Simon Glass0d76afc2019-10-27 09:47:40 -0600851config OF_LIBFDT_ASSUME_MASK
852 hex "Mask of conditions to assume for libfdt"
853 depends on OF_LIBFDT || FIT
854 default 0
855 help
856 Use this to change the assumptions made by libfdt about the
857 device tree it is working with. A value of 0 means that no assumptions
858 are made, and libfdt is able to deal with malicious data. A value of
859 0xff means all assumptions are made and any invalid data may cause
860 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
861
Maxime Ripardddf67f72016-07-05 10:26:44 +0200862config OF_LIBFDT_OVERLAY
863 bool "Enable the FDT library overlay support"
Tom Rini64175722018-05-08 08:52:17 -0400864 depends on OF_LIBFDT
Praneeth Bajjuri58a46f82018-04-25 16:03:23 -0500865 default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
Maxime Ripardddf67f72016-07-05 10:26:44 +0200866 help
867 This enables the FDT library (libfdt) overlay support.
868
Tom Rini40ed7be2022-08-02 07:33:27 -0400869config SYS_FDT_PAD
870 hex "Maximum size of the FDT memory area passeed to the OS"
871 depends on OF_LIBFDT
872 default 0x13000 if FMAN_ENET || QE || U_QE
873 default 0x3000
874 help
875 During OS boot, we allocate a region of memory within the bootmap
876 for the FDT. This is the size that we will expand the FDT that we
877 are using will be extended to be, in bytes.
878
Simon Glassaa34fbc2016-02-22 22:55:45 -0700879config SPL_OF_LIBFDT
880 bool "Enable the FDT library for SPL"
Simon Glass747093d2022-04-30 00:56:53 -0600881 depends on SPL_LIBGENERIC_SUPPORT
Simon Glassaa34fbc2016-02-22 22:55:45 -0700882 default y if SPL_OF_CONTROL
883 help
884 This enables the FDT library (libfdt). It provides functions for
885 accessing binary device tree images in memory, such as adding and
Anatolij Gustschinf1a7ba12017-08-18 17:58:51 +0200886 removing nodes and properties, scanning through the tree and finding
Simon Glassaa34fbc2016-02-22 22:55:45 -0700887 particular compatible nodes. The library operates on a flattened
888 version of the device tree.
889
Simon Glass0d76afc2019-10-27 09:47:40 -0600890config SPL_OF_LIBFDT_ASSUME_MASK
891 hex "Mask of conditions to assume for libfdt"
Tom Rinib3401992022-06-10 23:03:09 -0400892 depends on SPL_OF_LIBFDT || (FIT && SPL)
Simon Glass0d76afc2019-10-27 09:47:40 -0600893 default 0xff
894 help
895 Use this to change the assumptions made by libfdt in SPL about the
896 device tree it is working with. A value of 0 means that no assumptions
897 are made, and libfdt is able to deal with malicious data. A value of
898 0xff means all assumptions are made and any invalid data may cause
899 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
900
Simon Glass5592a632018-10-01 12:22:21 -0600901config TPL_OF_LIBFDT
902 bool "Enable the FDT library for TPL"
Simon Glass747093d2022-04-30 00:56:53 -0600903 depends on TPL_LIBGENERIC_SUPPORT
Simon Glass5592a632018-10-01 12:22:21 -0600904 default y if TPL_OF_CONTROL
905 help
906 This enables the FDT library (libfdt). It provides functions for
907 accessing binary device tree images in memory, such as adding and
908 removing nodes and properties, scanning through the tree and finding
909 particular compatible nodes. The library operates on a flattened
910 version of the device tree.
911
Simon Glass0d76afc2019-10-27 09:47:40 -0600912config TPL_OF_LIBFDT_ASSUME_MASK
913 hex "Mask of conditions to assume for libfdt"
Tom Rini8bea4bf2022-06-08 08:24:39 -0400914 depends on TPL_OF_LIBFDT || (FIT && TPL)
Simon Glass0d76afc2019-10-27 09:47:40 -0600915 default 0xff
916 help
917 Use this to change the assumptions made by libfdt in TPL about the
918 device tree it is working with. A value of 0 means that no assumptions
919 are made, and libfdt is able to deal with malicious data. A value of
920 0xff means all assumptions are made and any invalid data may cause
921 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
922
Simon Glass747093d2022-04-30 00:56:53 -0600923config VPL_OF_LIBFDT
924 bool "Enable the FDT library for VPL"
Tom Rini13ce3512022-06-08 08:24:40 -0400925 depends on VPL
Simon Glass747093d2022-04-30 00:56:53 -0600926 default y if VPL_OF_CONTROL && !VPL_OF_PLATDATA
927 help
928 This enables the FDT library (libfdt). It provides functions for
929 accessing binary device tree images in memory, such as adding and
930 removing nodes and properties, scanning through the tree and finding
931 particular compatible nodes. The library operates on a flattened
932 version of the device tree.
933
934config VPL_OF_LIBFDT_ASSUME_MASK
935 hex "Mask of conditions to assume for libfdt"
Tom Rini13ce3512022-06-08 08:24:40 -0400936 depends on VPL_OF_LIBFDT || (FIT && VPL)
Simon Glass747093d2022-04-30 00:56:53 -0600937 default 0xff
938 help
939 Use this to change the assumptions made by libfdt in SPL about the
940 device tree it is working with. A value of 0 means that no assumptions
941 are made, and libfdt is able to deal with malicious data. A value of
942 0xff means all assumptions are made and any invalid data may cause
943 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
944
Heiko Schocherebf7fff2016-10-06 07:31:45 +0200945config FDT_FIXUP_PARTITIONS
946 bool "overwrite MTD partitions in DTS through defined in 'mtdparts'"
947 depends on OF_LIBFDT
Masahiro Yamadaab948cd2018-07-20 11:04:09 +0900948 depends on CMD_MTDPARTS
Heiko Schocherebf7fff2016-10-06 07:31:45 +0200949 help
950 Allow overwriting defined partitions in the device tree blob
951 using partition info defined in the 'mtdparts' environment
952 variable.
953
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200954menu "System tables"
Alexander Grafe663b352016-08-19 01:23:29 +0200955 depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200956
Simon Glassd2cb7a22020-11-04 09:57:25 -0700957config BLOBLIST_TABLES
958 bool "Put tables in a bloblist"
Simon Glassf2c14422021-03-15 18:11:22 +1300959 depends on X86 && BLOBLIST
Simon Glassd2cb7a22020-11-04 09:57:25 -0700960 help
961 Normally tables are placed at address 0xf0000 and can be up to 64KB
962 long. With this option, tables are instead placed in the bloblist
963 with a pointer from 0xf0000. The size can then be larger and the
964 tables can be placed high in memory.
965
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200966config GENERATE_SMBIOS_TABLE
967 bool "Generate an SMBIOS (System Management BIOS) table"
968 default y
Alexander Grafe663b352016-08-19 01:23:29 +0200969 depends on X86 || EFI_LOADER
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200970 help
971 The System Management BIOS (SMBIOS) specification addresses how
972 motherboard and system vendors present management information about
973 their products in a standard format by extending the BIOS interface
974 on Intel architecture systems.
975
976 Check http://www.dmtf.org/standards/smbios for details.
977
Simon Glass44c74bd2020-11-05 06:32:11 -0700978 See also SMBIOS_SYSINFO which allows SMBIOS values to be provided in
979 the devicetree.
980
Tero Kristo7d0f3fb2021-06-11 11:45:02 +0300981config LIB_RATIONAL
982 bool "enable continued fraction calculation routines"
983
984config SPL_LIB_RATIONAL
985 bool "enable continued fraction calculation routines for SPL"
986 depends on SPL
987
Alexander Graf4b6dddc2016-08-19 01:23:23 +0200988endmenu
989
AKASHI Takahiro2b121962019-11-13 09:44:53 +0900990config ASN1_COMPILER
991 bool
Philippe Reynesa0e71d92022-03-28 22:56:54 +0200992 help
993 ASN.1 (Abstract Syntax Notation One) is a standard interface
994 description language for defining data structures that can be
995 serialized and deserialized in a cross-platform way. It is
996 broadly used in telecommunications and computer networking,
997 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
998 This option enables the support of the asn1 compiler.
AKASHI Takahiro2b121962019-11-13 09:44:53 +0900999
AKASHI Takahiroab8a0e02019-11-13 09:44:55 +09001000config ASN1_DECODER
1001 bool
1002 help
Philippe Reynesa0e71d92022-03-28 22:56:54 +02001003 ASN.1 (Abstract Syntax Notation One) is a standard interface
1004 description language for defining data structures that can be
1005 serialized and deserialized in a cross-platform way. It is
1006 broadly used in telecommunications and computer networking,
1007 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1008 This option enables the support of the asn1 decoder.
AKASHI Takahiroab8a0e02019-11-13 09:44:55 +09001009
Philippe Reynesfd210fe2022-03-28 22:56:56 +02001010config SPL_ASN1_DECODER
1011 bool
1012 help
1013 ASN.1 (Abstract Syntax Notation One) is a standard interface
1014 description language for defining data structures that can be
1015 serialized and deserialized in a cross-platform way. It is
1016 broadly used in telecommunications and computer networking,
1017 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1018 This option enables the support of the asn1 decoder in the SPL.
1019
AKASHI Takahiroa9b45e62019-11-13 09:44:57 +09001020config OID_REGISTRY
1021 bool
1022 help
Philippe Reynes7d44a982022-03-28 22:56:55 +02001023 In computing, object identifiers or OIDs are an identifier mechanism
1024 standardized by the International Telecommunication Union (ITU) and
1025 ISO/IEC for naming any object, concept, or "thing" with a globally
1026 unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier).
AKASHI Takahiroa9b45e62019-11-13 09:44:57 +09001027 Enable fast lookup object identifier registry.
1028
Philippe Reynesfd210fe2022-03-28 22:56:56 +02001029config SPL_OID_REGISTRY
1030 bool
1031 help
1032 In computing, object identifiers or OIDs are an identifier mechanism
1033 standardized by the International Telecommunication Union (ITU) and
1034 ISO/IEC for naming any object, concept, or "thing" with a globally
1035 unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier).
1036 Enable fast lookup object identifier registry in the SPL.
1037
Christian Gmeiner415eab02020-11-03 15:34:51 +01001038config SMBIOS_PARSER
1039 bool "SMBIOS parser"
1040 help
1041 A simple parser for SMBIOS data.
1042
Simon Glass867a6ac2015-07-31 09:31:36 -06001043source lib/efi/Kconfig
Alexander Grafed980b82016-03-04 01:10:07 +01001044source lib/efi_loader/Kconfig
Bryan O'Donoghue32ce6172018-03-13 16:50:27 +00001045source lib/optee/Kconfig
Simon Glass867a6ac2015-07-31 09:31:36 -06001046
Thierry Reding54969b42019-03-21 19:10:04 +01001047config TEST_FDTDEC
1048 bool "enable fdtdec test"
1049 depends on OF_LIBFDT
1050
AKASHI Takahiro05429b62019-11-13 09:44:49 +09001051config LIB_DATE
1052 bool
1053
Keerthy805b3ca2020-02-12 13:55:03 +05301054config LIB_ELF
1055 bool
1056 help
Patrick Delaunay6205bbb2021-01-04 15:33:28 +01001057 Support basic elf loading/validating functions.
1058 This supports for 32 bit and 64 bit versions.
Keerthy805b3ca2020-02-12 13:55:03 +05301059
Patrick Delaunay77b8cfe2021-03-10 10:16:25 +01001060config LMB
1061 bool "Enable the logical memory blocks library (lmb)"
Tom Rini11232132022-04-06 09:21:25 -04001062 default y if ARC || ARM || M68K || MICROBLAZE || MIPS || \
Patrick Delaunay77b8cfe2021-03-10 10:16:25 +01001063 NIOS2 || PPC || RISCV || SANDBOX || SH || X86 || XTENSA
1064 help
1065 Support the library logical memory blocks.
1066
Patrick Delaunay6d665022021-03-10 10:16:31 +01001067config LMB_USE_MAX_REGIONS
Heinrich Schuchardtac7606a2021-11-14 09:38:53 +01001068 bool "Use a common number of memory and reserved regions in lmb lib"
Tom Rini948d3992023-02-08 10:18:26 -05001069 default y
Patrick Delaunay6d665022021-03-10 10:16:31 +01001070 help
1071 Define the number of supported memory regions in the library logical
1072 memory blocks.
1073 This feature allow to reduce the lmb library size by using compiler
1074 optimization when LMB_MEMORY_REGIONS == LMB_RESERVED_REGIONS.
Patrick Delaunay4fa01502021-03-10 10:16:28 +01001075
1076config LMB_MAX_REGIONS
1077 int "Number of memory and reserved regions in lmb lib"
Patrick Delaunay94c8da22023-03-22 19:12:25 +01001078 depends on LMB_USE_MAX_REGIONS
Sjoerd Simons2dc16a22023-01-19 09:38:17 +01001079 default 16
Patrick Delaunay4fa01502021-03-10 10:16:28 +01001080 help
1081 Define the number of supported regions, memory and reserved, in the
1082 library logical memory blocks.
Patrick Delaunay6d665022021-03-10 10:16:31 +01001083
1084config LMB_MEMORY_REGIONS
1085 int "Number of memory regions in lmb lib"
Patrick Delaunay94c8da22023-03-22 19:12:25 +01001086 depends on !LMB_USE_MAX_REGIONS
Patrick Delaunay6d665022021-03-10 10:16:31 +01001087 default 8
1088 help
1089 Define the number of supported memory regions in the library logical
1090 memory blocks.
1091 The minimal value is CONFIG_NR_DRAM_BANKS.
1092
1093config LMB_RESERVED_REGIONS
1094 int "Number of reserved regions in lmb lib"
Patrick Delaunay94c8da22023-03-22 19:12:25 +01001095 depends on !LMB_USE_MAX_REGIONS
Patrick Delaunay6d665022021-03-10 10:16:31 +01001096 default 8
1097 help
1098 Define the number of supported reserved regions in the library logical
1099 memory blocks.
1100
Simon Glassebc1d502022-12-21 16:08:28 -07001101config PHANDLE_CHECK_SEQ
1102 bool "Enable phandle check while getting sequence number"
1103 help
1104 When there are multiple device tree nodes with same name,
1105 enable this config option to distinguish them using
1106 phandles in fdtdec_get_alias_seq() function.
1107
Eugen Hristev97f2a742022-01-04 18:20:19 +02001108endmenu
Sughosh Ganu86794052022-10-21 18:16:03 +05301109
1110menu "FWU Multi Bank Updates"
1111
1112source lib/fwu_updates/Kconfig
1113
1114endmenu