blob: 19649517a39bb8cf57b23e9602574e69a6846e8d [file] [log] [blame]
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +09001menu "Library routines"
2
Marek Szyprowski795dc7d2020-06-03 14:43:40 +02003config ADDR_MAP
4 bool "Enable support for non-identity virtual-physical mappings"
5 help
6 Enables helper code for implementing non-identity virtual-physical
7 memory mappings for 32bit CPUs.
8
Bin Meng0a5fee52021-02-25 17:22:36 +08009 This library only works in the post-relocation phase.
10
Marek Szyprowski795dc7d2020-06-03 14:43:40 +020011config SYS_NUM_ADDR_MAP
12 int "Size of the address-map table"
13 depends on ADDR_MAP
14 default 16
15 help
16 Sets the number of entries in the virtual-physical mapping table.
17
Tom Rini1f173632022-11-16 13:10:38 -050018config SYS_TIMER_COUNTS_DOWN
Marek Vasut88e5a202023-03-19 04:13:02 +010019 bool "System timer counts down rather than up"
Tom Rini1f173632022-11-16 13:10:38 -050020
Simon Glassef9e7622021-11-24 09:26:42 -070021config PHYSMEM
22 bool "Access to physical memory region (> 4G)"
23 help
24 Some basic support is provided for operations on memory not
25 normally accessible to 32-bit U-Boot - e.g. some architectures
26 support access to more than 4G of memory on 32-bit
27 machines using physical address extension or similar.
28 Enable this to access this basic support, which only supports clearing
29 the memory.
30
Adam Ford02bf5362017-08-11 09:46:05 -050031config BCH
32 bool "Enable Software based BCH ECC"
33 help
34 Enables software based BCH ECC algorithm present in lib/bch.c
35 This is used by SoC platforms which do not have built-in ELM
36 hardware engine required for BCH ECC correction.
37
Simon Glassdd7fb9b2019-12-06 21:41:34 -070038config BINMAN_FDT
39 bool "Allow access to binman information in the device tree"
Bin Mengc5e8b312021-02-03 21:20:02 +080040 depends on BINMAN && DM && OF_CONTROL
Bin Mengc9155f12021-05-10 20:23:36 +080041 default y if OF_SEPARATE || OF_EMBED
Simon Glassdd7fb9b2019-12-06 21:41:34 -070042 help
43 This enables U-Boot to access information about binman entries,
44 stored in the device tree in a binman node. Typical uses are to
45 locate entries in the firmware image. See binman.h for the available
46 functionality.
47
Masahiro Yamada3f053fe2014-09-16 16:32:59 +090048config CC_OPTIMIZE_LIBS_FOR_SPEED
49 bool "Optimize libraries for speed"
50 help
51 Enabling this option will pass "-O2" to gcc when compiling
52 under "lib" directory.
53
54 If unsure, say N.
55
Simon Glassc17db992021-07-02 12:36:17 -060056config CHARSET
57 bool
Simon Glassc17db992021-07-02 12:36:17 -060058
Faiz Abbas6199fb12018-02-06 19:15:58 +053059config DYNAMIC_CRC_TABLE
60 bool "Enable Dynamic tables for CRC"
61 help
62 Enable this option to calculate entries for CRC tables at runtime.
63 This can be helpful when reducing the size of the build image
64
Bin Mengb95e9db2018-10-15 02:21:15 -070065config HAVE_ARCH_IOMAP
66 bool
67 help
68 Enable this option if architecture provides io{read,write}{8,16,32}
69 I/O accessor functions.
70
Masahiro Yamada9520b712014-10-24 01:30:43 +090071config HAVE_PRIVATE_LIBGCC
72 bool
73
Adam Ford70c8f052018-02-06 12:14:28 -060074config LIB_UUID
75 bool
76
Simon Glass8090d8d2023-02-22 09:34:11 -070077config SPL_LIB_UUID
78 depends on SPL
79 bool
80
Kautuk Consula51bb742022-12-07 17:12:34 +053081config SEMIHOSTING
82 bool "Support semihosting"
Kautuk Consulc86cb4a2022-12-07 17:12:35 +053083 depends on ARM || RISCV
Kautuk Consula51bb742022-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 Consulc86cb4a2022-12-07 17:12:35 +053096 depends on SEMIHOSTING && (ARM64 || RISCV)
Kautuk Consula51bb742022-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 Consulc86cb4a2022-12-07 17:12:35 +0530106 depends on SPL && (ARM || RISCV)
Kautuk Consula51bb742022-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 Consulc86cb4a2022-12-07 17:12:35 +0530119 depends on SPL_SEMIHOSTING && (ARM64 || RISCV)
120 select ARMV8_SPL_EXCEPTION_VECTORS if ARM64
Kautuk Consula51bb742022-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 Kiernan5b404282018-04-19 04:32:54 +0000128config PRINTF
129 bool
130 default y
131
132config SPL_PRINTF
133 bool
134 select SPL_SPRINTF
Simon Glass7611ac62019-09-25 08:56:27 -0600135 select SPL_STRTO if !SPL_USE_TINY_PRINTF
Alex Kiernan5b404282018-04-19 04:32:54 +0000136
137config TPL_PRINTF
138 bool
139 select TPL_SPRINTF
Simon Glass7611ac62019-09-25 08:56:27 -0600140 select TPL_STRTO if !TPL_USE_TINY_PRINTF
Alex Kiernan5b404282018-04-19 04:32:54 +0000141
Simon Glasse7ca7da2022-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 Kiernan5b404282018-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 Glasse7ca7da2022-04-30 00:56:53 -0600157config VPL_SPRINTF
158 bool
159
Andrii Anisov6e29ac42020-08-06 12:42:52 +0300160config SSCANF
161 bool
Andrii Anisov6e29ac42020-08-06 12:42:52 +0300162
Alex Kiernan5b404282018-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 Glasse7ca7da2022-04-30 00:56:53 -0600173config VPL_STRTO
174 bool
175
Alex Kiernanc568bcb2018-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 Yamada9520b712014-10-24 01:30:43 +0900187config USE_PRIVATE_LIBGCC
188 bool "Use private libgcc"
189 depends on HAVE_PRIVATE_LIBGCC
Marek Vasut4e0126e2016-05-26 18:01:47 +0200190 default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS)
Masahiro Yamada9520b712014-10-24 01:30:43 +0900191 help
192 This option allows you to use the built-in libgcc implementation
Masahiro Yamada1c6a5e42016-03-30 20:17:42 +0900193 of U-Boot instead of the one provided by the compiler.
Masahiro Yamada9520b712014-10-24 01:30:43 +0900194 If unsure, say N.
195
Masahiro Yamadae301fa02014-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 Glass7611ac62019-09-25 08:56:27 -0600204config SPL_USE_TINY_PRINTF
Thomas Hebb0c12fb52019-11-10 08:23:53 -0800205 bool "Enable tiny printf() version in SPL"
Simon Glass7611ac62019-09-25 08:56:27 -0600206 depends on SPL
Tom Rinid0502b72019-06-08 12:46:18 -0400207 default y
Stefan Roese363ab7b2015-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 Glass7611ac62019-09-25 08:56:27 -0600216config TPL_USE_TINY_PRINTF
Thomas Hebb0c12fb52019-11-10 08:23:53 -0800217 bool "Enable tiny printf() version in TPL"
Simon Glass7611ac62019-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 Glasse7ca7da2022-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 Yamadaacede7a2017-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 Hershberger937d3e82015-04-21 17:02:42 -0500249config REGEX
250 bool "Enable regular expression support"
Joe Hershberger8ab8b722015-06-22 17:57:36 -0500251 default y if NET
Joe Hershberger937d3e82015-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 Ford38003a62018-02-06 10:18:18 -0600258choice
259 prompt "Pseudo-random library support type"
Heinrich Schuchardtb2e67a22020-01-19 19:28:12 +0100260 depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID || \
Heinrich Schuchardtba9c44e2020-11-20 12:55:22 +0100261 RNG_SANDBOX || UT_LIB && AES || FAT_WRITE
Adam Ford38003a62018-02-06 10:18:18 -0600262 default LIB_RAND
Masahiro Yamada2743c072015-06-11 19:16:43 +0900263 help
Adam Ford38003a62018-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 Juszkiewicza360c2c2020-05-26 19:07:15 +0200272 bool "HW Engine for random library support"
Adam Ford38003a62018-02-06 10:18:18 -0600273
274endchoice
Michal Simek2c1b1db2015-05-25 11:37:22 +0200275
Simon Glassa6cee932021-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 Glasse264be42023-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 Glass1a2fcc22023-09-19 21:00:06 -0600292config SPL_ACPI
293 bool "Enable support for ACPI libraries in SPL"
294 depends on SPL && SUPPORT_ACPI
295 help
296 Provides library functions for dealing with ACPI tables in SPL. This
297 does not necessarily include generation of tables
298 (see GENERATE_ACPI_TABLE), but allows for tables to be located.
299
Simon Glassa6cee932021-12-01 09:02:36 -0700300config GENERATE_ACPI_TABLE
301 bool "Generate an ACPI (Advanced Configuration and Power Interface) table"
Simon Glasse264be42023-05-04 16:54:57 -0600302 depends on ACPI
Simon Glassa6cee932021-12-01 09:02:36 -0700303 select QFW if QEMU
304 help
305 The Advanced Configuration and Power Interface (ACPI) specification
306 provides an open standard for device configuration and management
307 by the operating system. It defines platform-independent interfaces
308 for configuration and power management monitoring.
309
Simon Glasse2f94ae2017-04-02 09:50:28 -0600310config SPL_TINY_MEMSET
311 bool "Use a very small memset() in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400312 depends on SPL
Simon Glasse2f94ae2017-04-02 09:50:28 -0600313 help
314 The faster memset() is the arch-specific one (if available) enabled
315 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
316 better performance by writing a word at a time. But in very
Chris Packham1c3b7ba2019-01-13 22:13:28 +1300317 size-constrained environments even this may be too big. Enable this
Simon Glasse2f94ae2017-04-02 09:50:28 -0600318 option to reduce code size slightly at the cost of some speed.
319
Philipp Tomsichfefc4ec2017-08-03 22:52:04 +0200320config TPL_TINY_MEMSET
321 bool "Use a very small memset() in TPL"
Tom Rini36a4ca02022-06-08 08:24:39 -0400322 depends on TPL
Philipp Tomsichfefc4ec2017-08-03 22:52:04 +0200323 help
324 The faster memset() is the arch-specific one (if available) enabled
325 by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get
326 better performance by writing a word at a time. But in very
Chris Packham1c3b7ba2019-01-13 22:13:28 +1300327 size-constrained environments even this may be too big. Enable this
Philipp Tomsichfefc4ec2017-08-03 22:52:04 +0200328 option to reduce code size slightly at the cost of some speed.
329
Boris Brezillon627dc182017-02-27 18:22:05 +0100330config RBTREE
331 bool
332
Nandor Hand5ea84a2017-11-08 15:35:14 +0000333config BITREVERSE
334 bool "Bit reverse library from Linux"
335
Simon Glassbfce7fc2019-04-08 13:20:51 -0600336config TRACE
337 bool "Support for tracing of function calls and timing"
338 imply CMD_TRACE
Simon Glass6b5424a2022-12-21 16:08:26 -0700339 imply TIMER_EARLY
Simon Glassbfce7fc2019-04-08 13:20:51 -0600340 help
341 Enables function tracing within U-Boot. This allows recording of call
342 traces including timing information. The command can write data to
343 memory for exporting for analysis (e.g. using bootchart).
344 See doc/README.trace for full details.
345
Simon Glass445078e2019-04-08 13:20:52 -0600346config TRACE_BUFFER_SIZE
347 hex "Size of trace buffer in U-Boot"
348 depends on TRACE
349 default 0x01000000
350 help
351 Sets the size of the trace buffer in U-Boot. This is allocated from
352 memory during relocation. If this buffer is too small, the trace
353 history will be truncated, with later records omitted.
354
355 If early trace is enabled (i.e. before relocation), this buffer must
356 be large enough to include all the data from the early trace buffer as
357 well, since this is copied over to the main buffer during relocation.
358
359 A trace record is emitted for each function call and each record is
360 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
361 the size is too small then 'trace stats' will show a message saying
362 how many records were dropped due to buffer overflow.
363
Heinrich Schuchardtc1a73792019-06-02 13:30:09 +0200364config TRACE_CALL_DEPTH_LIMIT
365 int "Trace call depth limit"
366 depends on TRACE
367 default 15
368 help
369 Sets the maximum call depth up to which function calls are recorded.
370
Simon Glass445078e2019-04-08 13:20:52 -0600371config TRACE_EARLY
372 bool "Enable tracing before relocation"
373 depends on TRACE
374 help
375 Sometimes it is helpful to trace execution of U-Boot before
376 relocation. This is possible by using a arch-specific, fixed buffer
377 position in memory. Enable this option to start tracing as early as
378 possible after U-Boot starts.
379
380config TRACE_EARLY_SIZE
381 hex "Size of early trace buffer in U-Boot"
382 depends on TRACE_EARLY
383 default 0x00100000
384 help
385 Sets the size of the early trace buffer in bytes. This is used to hold
386 tracing information before relocation.
387
Heinrich Schuchardtc1a73792019-06-02 13:30:09 +0200388config TRACE_EARLY_CALL_DEPTH_LIMIT
389 int "Early trace call depth limit"
390 depends on TRACE_EARLY
Simon Glass971574d2023-01-15 14:15:44 -0700391 default 15
Heinrich Schuchardtc1a73792019-06-02 13:30:09 +0200392 help
393 Sets the maximum call depth up to which function calls are recorded
394 during early tracing.
395
Simon Glass445078e2019-04-08 13:20:52 -0600396config TRACE_EARLY_ADDR
397 hex "Address of early trace buffer in U-Boot"
398 depends on TRACE_EARLY
399 default 0x00100000
400 help
401 Sets the address of the early trace buffer in U-Boot. This memory
402 must be accessible before relocation.
403
404 A trace record is emitted for each function call and each record is
405 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If
406 the size is too small then the message which says the amount of early
407 data being coped will the the same as the
408
Loic Poulain12797e62021-11-25 18:16:14 +0100409config CIRCBUF
410 bool "Enable circular buffer support"
411
Simon Glass99dbe4b2015-06-23 15:38:23 -0600412source lib/dhry/Kconfig
413
Simon Glass528fdd12017-04-26 22:27:49 -0600414menu "Security support"
415
416config AES
417 bool "Support the AES algorithm"
418 help
419 This provides a means to encrypt and decrypt data using the AES
420 (Advanced Encryption Standard). This algorithm uses a symetric key
421 and is widely used as a streaming cipher. Different key lengths are
422 supported by the algorithm but only a 128-bit key is supported at
423 present.
424
Alexandru Gagniuc48cb9b82021-07-29 11:47:16 -0500425source lib/ecdsa/Kconfig
Ruchika Gupta4acd8c42015-01-23 16:01:56 +0530426source lib/rsa/Kconfig
AKASHI Takahiro591535c2019-11-13 09:45:00 +0900427source lib/crypto/Kconfig
Steffen Jaeckel229bd512021-07-08 15:57:33 +0200428source lib/crypt/Kconfig
Ruchika Gupta2c3822e2015-01-23 16:01:51 +0530429
Simon Glass350497c2015-08-22 18:31:19 -0600430config TPM
431 bool "Trusted Platform Module (TPM) Support"
Simon Glasscf294b02015-10-03 06:39:36 -0600432 depends on DM
Sughosh Ganu9737fab2022-07-22 21:32:04 +0530433 imply DM_RNG
Eddie James8ed7bb32023-10-24 10:43:49 -0500434 select SHA1
435 select SHA256
436 select SHA384
437 select SHA512
Simon Glass350497c2015-08-22 18:31: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
Simon Glass93a45b12018-10-01 12:22:19 -0600446config SPL_TPM
447 bool "Trusted Platform Module (TPM) Support in SPL"
448 depends on SPL_DM
Simon Glass2b95b492023-01-07 14:57:20 -0700449 imply SPL_CRC8
Simon Glass93a45b12018-10-01 12:22:19 -0600450 help
451 This enables support for TPMs which can be used to provide security
452 features for your board. The TPM can be connected via LPC or I2C
453 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
454 command to interactive the TPM. Driver model support is provided
455 for the low-level TPM interface, but only one TPM is supported at
456 a time by the TPM library.
457
458config TPL_TPM
459 bool "Trusted Platform Module (TPM) Support in TPL"
460 depends on TPL_DM
461 help
462 This enables support for TPMs which can be used to provide security
463 features for your board. The TPM can be connected via LPC or I2C
464 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
465 command to interactive the TPM. Driver model support is provided
466 for the low-level TPM interface, but only one TPM is supported at
467 a time by the TPM library.
468
Simon Glasse7ca7da2022-04-30 00:56:53 -0600469config VPL_TPM
470 bool "Trusted Platform Module (TPM) Support in VPL"
471 depends on VPL_DM
472 help
473 This enables support for TPMs which can be used to provide security
474 features for your board. The TPM can be connected via LPC or I2C
475 and a sandbox TPM is provided for testing purposes. Use the 'tpm'
476 command to interactive the TPM. Driver model support is provided
477 for the low-level TPM interface, but only one TPM is supported at
478 a time by the TPM library.
479
Simon Glass528fdd12017-04-26 22:27:49 -0600480endmenu
481
Igor Opaniuk525d1d82018-06-03 21:56:37 +0300482menu "Android Verified Boot"
483
484config LIBAVB
485 bool "Android Verified Boot 2.0 support"
486 depends on ANDROID_BOOT_IMAGE
Igor Opaniuk525d1d82018-06-03 21:56:37 +0300487 help
488 This enables support of Android Verified Boot 2.0 which can be used
489 to assure the end user of the integrity of the software running on a
490 device. Introduces such features as boot chain of trust, rollback
491 protection etc.
492
493endmenu
494
gaurav ranaef201592015-02-20 12:51:46 +0530495menu "Hashing Support"
496
Qu Wenruob98e8a22021-12-27 14:12:07 +0800497config BLAKE2
498 bool "Enable BLAKE2 support"
499 help
500 This option enables support of hashing using BLAKE2B algorithm.
501 The hash is calculated in software.
502 The BLAKE2 algorithm produces a hash value (digest) between 1 and
503 64 bytes.
504
gaurav ranaef201592015-02-20 12:51:46 +0530505config SHA1
506 bool "Enable SHA1 support"
507 help
508 This option enables support of hashing using SHA1 algorithm.
509 The hash is calculated in software.
510 The SHA1 algorithm produces a 160-bit (20-byte) hash value
511 (digest).
512
513config SHA256
514 bool "Enable SHA256 support"
515 help
516 This option enables support of hashing using SHA256 algorithm.
517 The hash is calculated in software.
518 The SHA256 algorithm produces a 256-bit (32-byte) hash value
519 (digest).
520
Reuben Dowle1908fd92020-04-16 17:36:52 +1200521config SHA512
522 bool "Enable SHA512 support"
Manorit Chawdhrya58132a2023-07-14 11:22:39 +0530523 default y if TI_SECURE_DEVICE && FIT_SIGNATURE
Reuben Dowle1908fd92020-04-16 17:36:52 +1200524 help
525 This option enables support of hashing using SHA512 algorithm.
526 The hash is calculated in software.
527 The SHA512 algorithm produces a 512-bit (64-byte) hash value
528 (digest).
529
530config SHA384
531 bool "Enable SHA384 support"
Alexandru Gagniuc5df5d692021-09-02 19:54:18 -0500532 select SHA512
Reuben Dowle1908fd92020-04-16 17:36:52 +1200533 help
534 This option enables support of hashing using SHA384 algorithm.
Alexandru Gagniuc5df5d692021-09-02 19:54:18 -0500535 The hash is calculated in software. This is also selects SHA512,
536 because these implementations share the bulk of the code..
Reuben Dowle1908fd92020-04-16 17:36:52 +1200537 The SHA384 algorithm produces a 384-bit (48-byte) hash value
538 (digest).
539
gaurav ranaef201592015-02-20 12:51:46 +0530540config SHA_HW_ACCEL
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200541 bool "Enable hardware acceleration for SHA hash functions"
gaurav ranaef201592015-02-20 12:51:46 +0530542 help
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200543 This option enables hardware acceleration for the SHA1 and SHA256
544 hashing algorithms. This affects the 'hash' command and also the
545 hash_lookup_algo() function.
546
Simon Glassf7b37c22021-09-25 19:43:17 -0600547if SPL
548
Oleksandr Suvorov15a23ca2023-08-03 19:05:40 +0300549config SPL_CRC32
550 bool "Enable CRC32 support in SPL"
551 default y if SPL_LEGACY_IMAGE_SUPPORT || SPL_EFI_PARTITION
552 default y if SPL_ENV_SUPPORT || TPL_BLOBLIST
553 help
554 This option enables support of hashing using CRC32 algorithm.
555 The CRC32 algorithm produces 32-bit checksum value. For FIT
556 images, this is the least secure type of checksum, suitable for
557 detected accidental image corruption. For secure applications you
558 should consider SHA256 or SHA384.
559
Simon Glassf7b37c22021-09-25 19:43:17 -0600560config SPL_SHA1
561 bool "Enable SHA1 support in SPL"
562 default y if SHA1
563 help
564 This option enables support of hashing using SHA1 algorithm.
565 The hash is calculated in software.
566 The SHA1 algorithm produces a 160-bit (20-byte) hash value
567 (digest).
568
569config SPL_SHA256
570 bool "Enable SHA256 support in SPL"
571 default y if SHA256
572 help
573 This option enables support of hashing using SHA256 algorithm.
574 The hash is calculated in software.
575 The SHA256 algorithm produces a 256-bit (32-byte) hash value
576 (digest).
577
578config SPL_SHA512
579 bool "Enable SHA512 support in SPL"
580 default y if SHA512
581 help
582 This option enables support of hashing using SHA512 algorithm.
583 The hash is calculated in software.
584 The SHA512 algorithm produces a 512-bit (64-byte) hash value
585 (digest).
586
587config SPL_SHA384
588 bool "Enable SHA384 support in SPL"
589 default y if SHA384
590 select SPL_SHA512
591 help
592 This option enables support of hashing using SHA384 algorithm.
593 The hash is calculated in software. This is also selects SHA512,
594 because these implementations share the bulk of the code..
595 The SHA384 algorithm produces a 384-bit (48-byte) hash value
596 (digest).
597
Simon Glass383dd572021-09-25 19:43:18 -0600598config SPL_SHA_HW_ACCEL
599 bool "Enable hardware acceleration for SHA hash functions"
600 default y if SHA_HW_ACCEL
601 help
602 This option enables hardware acceleration for the SHA1 and SHA256
603 hashing algorithms. This affects the 'hash' command and also the
604 hash_lookup_algo() function.
605
606config SPL_SHA_PROG_HW_ACCEL
607 bool "Enable Progressive hashing support using hardware in SPL"
608 depends on SHA_PROG_HW_ACCEL
609 default y
610 help
611 This option enables hardware-acceleration for SHA progressive
612 hashing.
613 Data can be streamed in a block at a time and the hashing is
614 performed in hardware.
615
Simon Glassf7b37c22021-09-25 19:43:17 -0600616endif
617
Simon Glass540883b2023-02-22 09:34:01 -0700618config VPL_SHA1
619 bool "Enable SHA1 support in VPL"
620 depends on VPL
621 default y if SHA1
622 help
623 This option enables support of hashing using SHA1 algorithm.
624 The hash is calculated in software.
625 The SHA1 algorithm produces a 160-bit (20-byte) hash value
626 (digest).
627
628config VPL_SHA256
629 bool "Enable SHA256 support in VPL"
630 depends on VPL
631 default y if SHA256
632 help
633 This option enables support of hashing using SHA256 algorithm.
634 The hash is calculated in software.
635 The SHA256 algorithm produces a 256-bit (32-byte) hash value
636 (digest).
637
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200638if SHA_HW_ACCEL
639
640config SHA512_HW_ACCEL
641 bool "Enable hardware acceleration for SHA512"
Alexandru Gagniuc5df5d692021-09-02 19:54:18 -0500642 depends on SHA512
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200643 help
644 This option enables hardware acceleration for the SHA384 and SHA512
645 hashing algorithms. This affects the 'hash' command and also the
646 hash_lookup_algo() function.
gaurav ranaef201592015-02-20 12:51:46 +0530647
648config SHA_PROG_HW_ACCEL
649 bool "Enable Progressive hashing support using hardware"
gaurav ranaef201592015-02-20 12:51:46 +0530650 help
Joel Stanley92efc1f2021-02-17 13:50:42 +1030651 This option enables hardware-acceleration for SHA progressive
652 hashing.
653 Data can be streamed in a block at a time and the hashing is
654 performed in hardware.
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000655
Heinrich Schuchardtd42f81f2021-05-14 07:08:27 +0200656endif
657
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000658config MD5
Simon Glassd33d0db2020-05-06 08:03:56 -0600659 bool "Support MD5 algorithm"
660 help
661 This option enables MD5 support. MD5 is an algorithm designed
662 in 1991 that produces a 16-byte digest (or checksum) from its input
663 data. It has a number of vulnerabilities which preclude its use in
664 security applications, but it can be useful for providing a quick
665 checksum of a block of data.
666
667config SPL_MD5
668 bool "Support MD5 algorithm in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400669 depends on SPL
Simon Glassd33d0db2020-05-06 08:03:56 -0600670 help
671 This option enables MD5 support in SPL. MD5 is an algorithm designed
672 in 1991 that produces a 16-byte digest (or checksum) from its input
673 data. It has a number of vulnerabilities which preclude its use in
674 security applications, but it can be useful for providing a quick
675 checksum of a block of data.
Andre Przywaraf0fa1132017-03-15 01:19:05 +0000676
Simon Glass2b95b492023-01-07 14:57:20 -0700677config CRC8
678 def_bool y
679 help
680 Enables CRC8 support in U-Boot. This is normally required. CRC8 is
681 a simple and fast checksumming algorithm which does a bytewise
682 checksum with feedback to produce an 8-bit result. The code is small
683 and it does not require a lookup table (unlike CRC32).
684
685config SPL_CRC8
686 bool "Support CRC8 in SPL"
687 depends on SPL
688 help
689 Enables CRC8 support in SPL. This is not normally required. CRC8 is
690 a simple and fast checksumming algorithm which does a bytewise
691 checksum with feedback to produce an 8-bit result. The code is small
692 and it does not require a lookup table (unlike CRC32).
693
Sean Anderson01349c12023-10-14 16:47:49 -0400694config SPL_CRC16
695 bool "Support CRC16 in SPL"
696 depends on SPL
697 help
698 Enables CRC16 support in SPL. This is not normally required.
699
Simon Glass577226c2021-09-25 19:43:24 -0600700config CRC32
701 def_bool y
702 help
703 Enables CRC32 support in U-Boot. This is normally required.
704
Marek Behúncdccc032017-09-03 17:00:23 +0200705config CRC32C
706 bool
707
Marek Behúnb139a7f2019-04-29 22:40:43 +0200708config XXHASH
709 bool
710
gaurav ranaef201592015-02-20 12:51:46 +0530711endmenu
712
Julius Wernerf41a3ca2015-10-06 20:03:53 -0700713menu "Compression Support"
714
715config LZ4
716 bool "Enable LZ4 decompression support"
717 help
718 If this option is set, support for LZ4 compressed images
719 is included. The LZ4 algorithm can run in-place as long as the
720 compressed image is loaded to the end of the output buffer, and
721 trades lower compression ratios for much faster decompression.
Patrick Delaunaycd831af2021-03-10 10:16:28 +0100722
Julius Wernerf41a3ca2015-10-06 20:03:53 -0700723 NOTE: This implements the release version of the LZ4 frame
724 format as generated by default by the 'lz4' command line tool.
725 This is not the same as the outdated, less efficient legacy
726 frame format currently (2015) implemented in the Linux kernel
727 (generated by 'lz4 -l'). The two formats are incompatible.
728
Simon Glass264aa5f2017-05-17 03:25:42 -0600729config LZMA
730 bool "Enable LZMA decompression support"
731 help
732 This enables support for LZMA (Lempel-Ziv-Markov chain algorithm),
733 a dictionary compression algorithm that provides a high compression
734 ratio and fairly fast decompression speed. See also
735 CONFIG_CMD_LZMADEC which provides a decode command.
736
Boris Brezillonaa57d0f2017-02-27 18:22:06 +0100737config LZO
Tom Rinic20bb732017-07-22 18:36:16 -0400738 bool "Enable LZO decompression support"
739 help
Oleksandr Suvorov30a4c312021-09-01 16:05:08 +0300740 This enables support for the LZO compression algorithm.
York Suna6945fe2017-08-15 11:14:43 -0700741
Marek Vasutaeaa29d2019-03-08 16:06:55 +0100742config GZIP
Heiko Schocherb93cc602019-04-29 08:59:38 +0200743 bool "Enable gzip decompression support"
Marek Vasutaeaa29d2019-03-08 16:06:55 +0100744 select ZLIB
745 default y
746 help
747 This enables support for GZIP compression algorithm.
748
Joao Marcos Costaae8abb12020-07-30 15:33:49 +0200749config ZLIB_UNCOMPRESS
750 bool "Enables zlib's uncompress() functionality"
751 help
752 This enables an extra zlib functionality: the uncompress() function,
753 which decompresses data from a buffer into another, knowing their
754 sizes. Unlike gunzip(), there is no header parsing.
755
Michael Walle3a6e3512020-05-22 14:07:36 +0200756config GZIP_COMPRESSED
757 bool
758 select ZLIB
759
Atish Patra1fa79622020-03-05 16:24:21 -0800760config BZIP2
761 bool "Enable bzip2 decompression support"
762 help
763 This enables support for BZIP2 compression algorithm.
764
Marek Vasutaeaa29d2019-03-08 16:06:55 +0100765config ZLIB
766 bool
767 default y
768 help
769 This enables ZLIB compression lib.
770
Marek Behúne87e2002019-04-29 22:40:44 +0200771config ZSTD
772 bool "Enable Zstandard decompression support"
773 select XXHASH
774 help
775 This enables Zstandard decompression library.
776
Brandon Maierdbe88da2023-01-12 10:27:45 -0600777if ZSTD
778
779config ZSTD_LIB_MINIFY
780 bool "Minify Zstandard code"
781 default y
782 help
783 This disables various optional components and changes the
784 compilation flags to prioritize space-saving.
785
786 For detailed info, see zstd's lib/README.md
787
788 https://github.com/facebook/zstd/blob/dev/lib/README.md
789
790endif
791
Simon Glass1af8b152023-02-22 09:33:54 -0700792config SPL_BZIP2
793 bool "Enable bzip2 decompression support for SPL build"
794 depends on SPL
795 help
796 This enables support for bzip2 compression algorithm for SPL boot.
797
Simon Glasse107bcd2018-11-06 15:21:30 -0700798config SPL_LZ4
799 bool "Enable LZ4 decompression support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400800 depends on SPL
Simon Glasse107bcd2018-11-06 15:21:30 -0700801 help
Marcin Juszkiewicza360c2c2020-05-26 19:07:15 +0200802 This enables support for the LZ4 decompression algorithm in SPL. LZ4
Simon Glasse107bcd2018-11-06 15:21:30 -0700803 is a lossless data compression algorithm that is focused on
804 fast compression and decompression speed. It belongs to the LZ77
805 family of byte-oriented compression schemes.
806
developer6a4e1d32020-04-21 09:28:38 +0200807config SPL_LZMA
808 bool "Enable LZMA decompression support for SPL build"
Tom Rini0a83cc22022-06-10 23:03:09 -0400809 depends on SPL
developer6a4e1d32020-04-21 09:28:38 +0200810 help
Marcin Juszkiewicza360c2c2020-05-26 19:07:15 +0200811 This enables support for LZMA compression algorithm for SPL boot.
developer6a4e1d32020-04-21 09:28:38 +0200812
Simon Glasse7ca7da2022-04-30 00:56:53 -0600813config VPL_LZMA
814 bool "Enable LZMA decompression support for VPL build"
815 default y if LZMA
816 help
817 This enables support for LZMA compression algorithm for VPL boot.
818
Jean-Jacques Hiblotdbde2882017-09-15 12:57:30 +0200819config SPL_LZO
820 bool "Enable LZO decompression support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400821 depends on SPL
Jean-Jacques Hiblotdbde2882017-09-15 12:57:30 +0200822 help
823 This enables support for LZO compression algorithm in the SPL.
824
York Suna6945fe2017-08-15 11:14:43 -0700825config SPL_GZIP
826 bool "Enable gzip decompression support for SPL build"
827 select SPL_ZLIB
828 help
Oleksandr Suvorov30a4c312021-09-01 16:05:08 +0300829 This enables support for the GZIP compression algorithm for SPL boot.
York Suna6945fe2017-08-15 11:14:43 -0700830
831config SPL_ZLIB
832 bool
833 help
834 This enables compression lib for SPL boot.
835
Marek Behúne87e2002019-04-29 22:40:44 +0200836config SPL_ZSTD
837 bool "Enable Zstandard decompression support in SPL"
Tom Rini0a83cc22022-06-10 23:03:09 -0400838 depends on SPL
Marek Behúne87e2002019-04-29 22:40:44 +0200839 select XXHASH
840 help
841 This enables Zstandard decompression library in the SPL.
842
Julius Wernerf41a3ca2015-10-06 20:03:53 -0700843endmenu
844
Przemyslaw Marczak37550132015-04-20 20:07:40 +0200845config ERRNO_STR
846 bool "Enable function for getting errno-related string message"
847 help
848 The function errno_str(int errno), returns a pointer to the errno
849 corresponding text message:
850 - if errno is null or positive number - a pointer to "Success" message
851 - if errno is negative - a pointer to errno related message
852
Alexey Brodkin2d2fa492018-06-05 17:17:57 +0300853config HEXDUMP
854 bool "Enable hexdump"
855 help
856 This enables functions for printing dumps of binary data.
857
Simon Glassa37fd4d2020-09-12 11:13:35 -0600858config SPL_HEXDUMP
859 bool "Enable hexdump in SPL"
Heinrich Schuchardt11df0722021-07-24 17:35:46 +0200860 depends on SPL && HEXDUMP
Simon Glassa37fd4d2020-09-12 11:13:35 -0600861 help
862 This enables functions for printing dumps of binary data in
863 SPL.
864
Sean Anderson3b4a6f52020-10-27 19:55:36 -0400865config GETOPT
866 bool "Enable getopt"
867 help
868 This enables functions for parsing command-line options.
869
Simon Glassa66c5412016-02-22 22:55:42 -0700870config OF_LIBFDT
871 bool "Enable the FDT library"
872 default y if OF_CONTROL
873 help
874 This enables the FDT library (libfdt). It provides functions for
875 accessing binary device tree images in memory, such as adding and
Anatolij Gustschinda707d42017-08-18 17:58:51 +0200876 removing nodes and properties, scanning through the tree and finding
Simon Glassa66c5412016-02-22 22:55:42 -0700877 particular compatible nodes. The library operates on a flattened
878 version of the device tree.
879
Simon Glassc48044d2019-10-27 09:47:40 -0600880config OF_LIBFDT_ASSUME_MASK
881 hex "Mask of conditions to assume for libfdt"
882 depends on OF_LIBFDT || FIT
Tom Rinif18679c2023-08-02 11:09:43 -0400883 default 0x0
Simon Glassc48044d2019-10-27 09:47:40 -0600884 help
885 Use this to change the assumptions made by libfdt about the
886 device tree it is working with. A value of 0 means that no assumptions
887 are made, and libfdt is able to deal with malicious data. A value of
888 0xff means all assumptions are made and any invalid data may cause
889 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
890
Maxime Ripard9e901ce2016-07-05 10:26:44 +0200891config OF_LIBFDT_OVERLAY
892 bool "Enable the FDT library overlay support"
Tom Rinic1e49ba2018-05-08 08:52:17 -0400893 depends on OF_LIBFDT
Praneeth Bajjuri7b71a012018-04-25 16:03:23 -0500894 default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE
Maxime Ripard9e901ce2016-07-05 10:26:44 +0200895 help
896 This enables the FDT library (libfdt) overlay support.
897
Tom Rinid2cd4312022-08-02 07:33:27 -0400898config SYS_FDT_PAD
899 hex "Maximum size of the FDT memory area passeed to the OS"
900 depends on OF_LIBFDT
901 default 0x13000 if FMAN_ENET || QE || U_QE
902 default 0x3000
903 help
904 During OS boot, we allocate a region of memory within the bootmap
905 for the FDT. This is the size that we will expand the FDT that we
906 are using will be extended to be, in bytes.
907
Simon Glass8b426922016-02-22 22:55:45 -0700908config SPL_OF_LIBFDT
909 bool "Enable the FDT library for SPL"
Simon Glasse7ca7da2022-04-30 00:56:53 -0600910 depends on SPL_LIBGENERIC_SUPPORT
Simon Glass8b426922016-02-22 22:55:45 -0700911 default y if SPL_OF_CONTROL
912 help
913 This enables the FDT library (libfdt). It provides functions for
914 accessing binary device tree images in memory, such as adding and
Anatolij Gustschinda707d42017-08-18 17:58:51 +0200915 removing nodes and properties, scanning through the tree and finding
Simon Glass8b426922016-02-22 22:55:45 -0700916 particular compatible nodes. The library operates on a flattened
917 version of the device tree.
918
Simon Glassc48044d2019-10-27 09:47:40 -0600919config SPL_OF_LIBFDT_ASSUME_MASK
920 hex "Mask of conditions to assume for libfdt"
Tom Rini0a83cc22022-06-10 23:03:09 -0400921 depends on SPL_OF_LIBFDT || (FIT && SPL)
Simon Glassc48044d2019-10-27 09:47:40 -0600922 default 0xff
923 help
924 Use this to change the assumptions made by libfdt in SPL about the
925 device tree it is working with. A value of 0 means that no assumptions
926 are made, and libfdt is able to deal with malicious data. A value of
927 0xff means all assumptions are made and any invalid data may cause
928 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
929
Simon Glassca8ec4b2018-10-01 12:22:21 -0600930config TPL_OF_LIBFDT
931 bool "Enable the FDT library for TPL"
Simon Glasse7ca7da2022-04-30 00:56:53 -0600932 depends on TPL_LIBGENERIC_SUPPORT
Simon Glassca8ec4b2018-10-01 12:22:21 -0600933 default y if TPL_OF_CONTROL
934 help
935 This enables the FDT library (libfdt). It provides functions for
936 accessing binary device tree images in memory, such as adding and
937 removing nodes and properties, scanning through the tree and finding
938 particular compatible nodes. The library operates on a flattened
939 version of the device tree.
940
Simon Glassc48044d2019-10-27 09:47:40 -0600941config TPL_OF_LIBFDT_ASSUME_MASK
942 hex "Mask of conditions to assume for libfdt"
Tom Rini36a4ca02022-06-08 08:24:39 -0400943 depends on TPL_OF_LIBFDT || (FIT && TPL)
Simon Glassc48044d2019-10-27 09:47:40 -0600944 default 0xff
945 help
946 Use this to change the assumptions made by libfdt in TPL about the
947 device tree it is working with. A value of 0 means that no assumptions
948 are made, and libfdt is able to deal with malicious data. A value of
949 0xff means all assumptions are made and any invalid data may cause
950 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
951
Simon Glasse7ca7da2022-04-30 00:56:53 -0600952config VPL_OF_LIBFDT
953 bool "Enable the FDT library for VPL"
Tom Rini7fb323b2022-06-08 08:24:40 -0400954 depends on VPL
Simon Glasse7ca7da2022-04-30 00:56:53 -0600955 default y if VPL_OF_CONTROL && !VPL_OF_PLATDATA
956 help
957 This enables the FDT library (libfdt). It provides functions for
958 accessing binary device tree images in memory, such as adding and
959 removing nodes and properties, scanning through the tree and finding
960 particular compatible nodes. The library operates on a flattened
961 version of the device tree.
962
963config VPL_OF_LIBFDT_ASSUME_MASK
964 hex "Mask of conditions to assume for libfdt"
Tom Rini7fb323b2022-06-08 08:24:40 -0400965 depends on VPL_OF_LIBFDT || (FIT && VPL)
Simon Glasse7ca7da2022-04-30 00:56:53 -0600966 default 0xff
967 help
968 Use this to change the assumptions made by libfdt in SPL about the
969 device tree it is working with. A value of 0 means that no assumptions
970 are made, and libfdt is able to deal with malicious data. A value of
971 0xff means all assumptions are made and any invalid data may cause
972 unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h
973
Alexander Graffb228082016-08-19 01:23:23 +0200974menu "System tables"
Alexander Graf66f96e12016-08-19 01:23:29 +0200975 depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER)
Alexander Graffb228082016-08-19 01:23:23 +0200976
Simon Glass5d093f32020-11-04 09:57:25 -0700977config BLOBLIST_TABLES
978 bool "Put tables in a bloblist"
Simon Glass171c6462021-03-15 18:11:22 +1300979 depends on X86 && BLOBLIST
Simon Glass5d093f32020-11-04 09:57:25 -0700980 help
981 Normally tables are placed at address 0xf0000 and can be up to 64KB
982 long. With this option, tables are instead placed in the bloblist
983 with a pointer from 0xf0000. The size can then be larger and the
984 tables can be placed high in memory.
985
Alexander Graffb228082016-08-19 01:23:23 +0200986config GENERATE_SMBIOS_TABLE
987 bool "Generate an SMBIOS (System Management BIOS) table"
Simon Glass5059dbe2023-09-19 21:00:13 -0600988 depends on SMBIOS
Alexander Graffb228082016-08-19 01:23:23 +0200989 default y
Alexander Graffb228082016-08-19 01:23:23 +0200990 help
991 The System Management BIOS (SMBIOS) specification addresses how
992 motherboard and system vendors present management information about
993 their products in a standard format by extending the BIOS interface
994 on Intel architecture systems.
995
996 Check http://www.dmtf.org/standards/smbios for details.
997
Simon Glass052a03e2020-11-05 06:32:11 -0700998 See also SMBIOS_SYSINFO which allows SMBIOS values to be provided in
999 the devicetree.
1000
Simon Glasse70648e2023-09-14 10:55:39 -06001001endmenu
1002
Tero Kristocfbe15c2021-06-11 11:45:02 +03001003config LIB_RATIONAL
1004 bool "enable continued fraction calculation routines"
1005
1006config SPL_LIB_RATIONAL
1007 bool "enable continued fraction calculation routines for SPL"
1008 depends on SPL
1009
AKASHI Takahirof7025262019-11-13 09:44:53 +09001010config ASN1_COMPILER
1011 bool
Philippe Reynes2aba9442022-03-28 22:56:54 +02001012 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 compiler.
AKASHI Takahirof7025262019-11-13 09:44:53 +09001019
AKASHI Takahiro3a888712019-11-13 09:44:55 +09001020config ASN1_DECODER
1021 bool
1022 help
Philippe Reynes2aba9442022-03-28 22:56:54 +02001023 ASN.1 (Abstract Syntax Notation One) is a standard interface
1024 description language for defining data structures that can be
1025 serialized and deserialized in a cross-platform way. It is
1026 broadly used in telecommunications and computer networking,
1027 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1028 This option enables the support of the asn1 decoder.
AKASHI Takahiro3a888712019-11-13 09:44:55 +09001029
Philippe Reynescf538b52022-03-28 22:56:56 +02001030config SPL_ASN1_DECODER
1031 bool
1032 help
1033 ASN.1 (Abstract Syntax Notation One) is a standard interface
1034 description language for defining data structures that can be
1035 serialized and deserialized in a cross-platform way. It is
1036 broadly used in telecommunications and computer networking,
1037 and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1).
1038 This option enables the support of the asn1 decoder in the SPL.
1039
AKASHI Takahiro54923642019-11-13 09:44:57 +09001040config OID_REGISTRY
1041 bool
1042 help
Philippe Reynese35c3a22022-03-28 22:56:55 +02001043 In computing, object identifiers or OIDs are an identifier mechanism
1044 standardized by the International Telecommunication Union (ITU) and
1045 ISO/IEC for naming any object, concept, or "thing" with a globally
1046 unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier).
AKASHI Takahiro54923642019-11-13 09:44:57 +09001047 Enable fast lookup object identifier registry.
1048
Philippe Reynescf538b52022-03-28 22:56:56 +02001049config SPL_OID_REGISTRY
1050 bool
1051 help
1052 In computing, object identifiers or OIDs are an identifier mechanism
1053 standardized by the International Telecommunication Union (ITU) and
1054 ISO/IEC for naming any object, concept, or "thing" with a globally
1055 unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier).
1056 Enable fast lookup object identifier registry in the SPL.
1057
Simon Glass5059dbe2023-09-19 21:00:13 -06001058config SMBIOS
1059 bool "SMBIOS support"
1060 depends on X86 || EFI_LOADER
1061 default y
Simon Glassaadec122023-09-20 07:29:51 -06001062 select LAST_STAGE_INIT
Simon Glass5059dbe2023-09-19 21:00:13 -06001063 help
1064 Indicates that this platform can support System Management BIOS
1065 (SMBIOS) tables. These provide various pieces of information about
1066 the board, such as the manufacturer and the model name.
1067
1068 See GENERATE_SMBIOS_TABLE which controls whether U-Boot actually
1069 creates these tables, rather than them coming from a previous firmware
1070 stage.
1071
Christian Gmeiner19859982020-11-03 15:34:51 +01001072config SMBIOS_PARSER
1073 bool "SMBIOS parser"
1074 help
1075 A simple parser for SMBIOS data.
1076
Simon Glass9539e692015-07-31 09:31:36 -06001077source lib/efi/Kconfig
Alexander Graf67ee7052016-03-04 01:10:07 +01001078source lib/efi_loader/Kconfig
Bryan O'Donoghue4b0de7c2018-03-13 16:50:27 +00001079source lib/optee/Kconfig
Simon Glass9539e692015-07-31 09:31:36 -06001080
Thierry Reding52c7f1f32019-03-21 19:10:04 +01001081config TEST_FDTDEC
1082 bool "enable fdtdec test"
1083 depends on OF_LIBFDT
1084
AKASHI Takahiro51ba5222019-11-13 09:44:49 +09001085config LIB_DATE
1086 bool
1087
Keerthy76f361a2020-02-12 13:55:03 +05301088config LIB_ELF
1089 bool
1090 help
Patrick Delaunayfb67df82021-01-04 15:33:28 +01001091 Support basic elf loading/validating functions.
1092 This supports for 32 bit and 64 bit versions.
Keerthy76f361a2020-02-12 13:55:03 +05301093
Patrick Delaunayd62063d2021-03-10 10:16:25 +01001094config LMB
1095 bool "Enable the logical memory blocks library (lmb)"
Tom Rini53320122022-04-06 09:21:25 -04001096 default y if ARC || ARM || M68K || MICROBLAZE || MIPS || \
Patrick Delaunayd62063d2021-03-10 10:16:25 +01001097 NIOS2 || PPC || RISCV || SANDBOX || SH || X86 || XTENSA
1098 help
1099 Support the library logical memory blocks.
1100
Patrick Delaunay71cc9c52021-03-10 10:16:31 +01001101config LMB_USE_MAX_REGIONS
Heinrich Schuchardtc4bc9182021-11-14 09:38:53 +01001102 bool "Use a common number of memory and reserved regions in lmb lib"
Tom Rinia91fe442023-02-08 10:18:26 -05001103 default y
Patrick Delaunay71cc9c52021-03-10 10:16:31 +01001104 help
1105 Define the number of supported memory regions in the library logical
1106 memory blocks.
1107 This feature allow to reduce the lmb library size by using compiler
1108 optimization when LMB_MEMORY_REGIONS == LMB_RESERVED_REGIONS.
Patrick Delaunaycd831af2021-03-10 10:16:28 +01001109
1110config LMB_MAX_REGIONS
1111 int "Number of memory and reserved regions in lmb lib"
Patrick Delaunay479de712023-03-22 19:12:25 +01001112 depends on LMB_USE_MAX_REGIONS
Sjoerd Simons826a9942023-01-19 09:38:17 +01001113 default 16
Patrick Delaunaycd831af2021-03-10 10:16:28 +01001114 help
1115 Define the number of supported regions, memory and reserved, in the
1116 library logical memory blocks.
Patrick Delaunay71cc9c52021-03-10 10:16:31 +01001117
1118config LMB_MEMORY_REGIONS
1119 int "Number of memory regions in lmb lib"
Patrick Delaunay479de712023-03-22 19:12:25 +01001120 depends on !LMB_USE_MAX_REGIONS
Patrick Delaunay71cc9c52021-03-10 10:16:31 +01001121 default 8
1122 help
1123 Define the number of supported memory regions in the library logical
1124 memory blocks.
1125 The minimal value is CONFIG_NR_DRAM_BANKS.
1126
1127config LMB_RESERVED_REGIONS
1128 int "Number of reserved regions in lmb lib"
Patrick Delaunay479de712023-03-22 19:12:25 +01001129 depends on !LMB_USE_MAX_REGIONS
Patrick Delaunay71cc9c52021-03-10 10:16:31 +01001130 default 8
1131 help
1132 Define the number of supported reserved regions in the library logical
1133 memory blocks.
1134
Simon Glass42d97e52022-12-21 16:08:28 -07001135config PHANDLE_CHECK_SEQ
1136 bool "Enable phandle check while getting sequence number"
1137 help
1138 When there are multiple device tree nodes with same name,
1139 enable this config option to distinguish them using
1140 phandles in fdtdec_get_alias_seq() function.
1141
Eugen Hristevdb6bbcb2022-01-04 18:20:19 +02001142endmenu
Sughosh Ganu1cadae22022-10-21 18:16:03 +05301143
Sughosh Ganu1cadae22022-10-21 18:16:03 +05301144source lib/fwu_updates/Kconfig