Masahiro Yamada | f3e12b7 | 2014-09-16 16:32:58 +0900 | [diff] [blame] | 1 | menu "Library routines" |
| 2 | |
Marek Szyprowski | 795dc7d | 2020-06-03 14:43:40 +0200 | [diff] [blame] | 3 | config 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 Meng | 0a5fee5 | 2021-02-25 17:22:36 +0800 | [diff] [blame] | 9 | This library only works in the post-relocation phase. |
| 10 | |
Marek Szyprowski | 795dc7d | 2020-06-03 14:43:40 +0200 | [diff] [blame] | 11 | config 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 | |
Simon Glass | ef9e762 | 2021-11-24 09:26:42 -0700 | [diff] [blame] | 18 | config PHYSMEM |
| 19 | bool "Access to physical memory region (> 4G)" |
| 20 | help |
| 21 | Some basic support is provided for operations on memory not |
| 22 | normally accessible to 32-bit U-Boot - e.g. some architectures |
| 23 | support access to more than 4G of memory on 32-bit |
| 24 | machines using physical address extension or similar. |
| 25 | Enable this to access this basic support, which only supports clearing |
| 26 | the memory. |
| 27 | |
Adam Ford | 02bf536 | 2017-08-11 09:46:05 -0500 | [diff] [blame] | 28 | config BCH |
| 29 | bool "Enable Software based BCH ECC" |
| 30 | help |
| 31 | Enables software based BCH ECC algorithm present in lib/bch.c |
| 32 | This is used by SoC platforms which do not have built-in ELM |
| 33 | hardware engine required for BCH ECC correction. |
| 34 | |
Simon Glass | dd7fb9b | 2019-12-06 21:41:34 -0700 | [diff] [blame] | 35 | config BINMAN_FDT |
| 36 | bool "Allow access to binman information in the device tree" |
Bin Meng | c5e8b31 | 2021-02-03 21:20:02 +0800 | [diff] [blame] | 37 | depends on BINMAN && DM && OF_CONTROL |
Bin Meng | c9155f1 | 2021-05-10 20:23:36 +0800 | [diff] [blame] | 38 | default y if OF_SEPARATE || OF_EMBED |
Simon Glass | dd7fb9b | 2019-12-06 21:41:34 -0700 | [diff] [blame] | 39 | help |
| 40 | This enables U-Boot to access information about binman entries, |
| 41 | stored in the device tree in a binman node. Typical uses are to |
| 42 | locate entries in the firmware image. See binman.h for the available |
| 43 | functionality. |
| 44 | |
Masahiro Yamada | 3f053fe | 2014-09-16 16:32:59 +0900 | [diff] [blame] | 45 | config CC_OPTIMIZE_LIBS_FOR_SPEED |
| 46 | bool "Optimize libraries for speed" |
| 47 | help |
| 48 | Enabling this option will pass "-O2" to gcc when compiling |
| 49 | under "lib" directory. |
| 50 | |
| 51 | If unsure, say N. |
| 52 | |
Simon Glass | c17db99 | 2021-07-02 12:36:17 -0600 | [diff] [blame] | 53 | config CHARSET |
| 54 | bool |
Simon Glass | c17db99 | 2021-07-02 12:36:17 -0600 | [diff] [blame] | 55 | |
Faiz Abbas | 6199fb1 | 2018-02-06 19:15:58 +0530 | [diff] [blame] | 56 | config DYNAMIC_CRC_TABLE |
| 57 | bool "Enable Dynamic tables for CRC" |
| 58 | help |
| 59 | Enable this option to calculate entries for CRC tables at runtime. |
| 60 | This can be helpful when reducing the size of the build image |
| 61 | |
Bin Meng | b95e9db | 2018-10-15 02:21:15 -0700 | [diff] [blame] | 62 | config HAVE_ARCH_IOMAP |
| 63 | bool |
| 64 | help |
| 65 | Enable this option if architecture provides io{read,write}{8,16,32} |
| 66 | I/O accessor functions. |
| 67 | |
Masahiro Yamada | 9520b71 | 2014-10-24 01:30:43 +0900 | [diff] [blame] | 68 | config HAVE_PRIVATE_LIBGCC |
| 69 | bool |
| 70 | |
Adam Ford | 70c8f05 | 2018-02-06 12:14:28 -0600 | [diff] [blame] | 71 | config LIB_UUID |
| 72 | bool |
| 73 | |
Kautuk Consul | a51bb74 | 2022-12-07 17:12:34 +0530 | [diff] [blame] | 74 | config SEMIHOSTING |
| 75 | bool "Support semihosting" |
Kautuk Consul | c86cb4a | 2022-12-07 17:12:35 +0530 | [diff] [blame] | 76 | depends on ARM || RISCV |
Kautuk Consul | a51bb74 | 2022-12-07 17:12:34 +0530 | [diff] [blame] | 77 | help |
| 78 | Semihosting is a method for a target to communicate with a host |
| 79 | debugger. It uses special instructions which the debugger will trap |
| 80 | on and interpret. This allows U-Boot to read/write files, print to |
| 81 | the console, and execute arbitrary commands on the host system. |
| 82 | |
| 83 | Enabling this option will add support for reading and writing files |
| 84 | on the host system. If you don't have a debugger attached then trying |
| 85 | to do this will likely cause U-Boot to hang. Say 'n' if you are unsure. |
| 86 | |
| 87 | config SEMIHOSTING_FALLBACK |
| 88 | bool "Recover gracefully when semihosting fails" |
Kautuk Consul | c86cb4a | 2022-12-07 17:12:35 +0530 | [diff] [blame] | 89 | depends on SEMIHOSTING && (ARM64 || RISCV) |
Kautuk Consul | a51bb74 | 2022-12-07 17:12:34 +0530 | [diff] [blame] | 90 | default y |
| 91 | help |
| 92 | Normally, if U-Boot makes a semihosting call and no debugger is |
| 93 | attached, then it will panic due to a synchronous abort |
| 94 | exception. This config adds an exception handler which will allow |
| 95 | U-Boot to recover. Say 'y' if unsure. |
| 96 | |
| 97 | config SPL_SEMIHOSTING |
| 98 | bool "Support semihosting in SPL" |
Kautuk Consul | c86cb4a | 2022-12-07 17:12:35 +0530 | [diff] [blame] | 99 | depends on SPL && (ARM || RISCV) |
Kautuk Consul | a51bb74 | 2022-12-07 17:12:34 +0530 | [diff] [blame] | 100 | help |
| 101 | Semihosting is a method for a target to communicate with a host |
| 102 | debugger. It uses special instructions which the debugger will trap |
| 103 | on and interpret. This allows U-Boot to read/write files, print to |
| 104 | the console, and execute arbitrary commands on the host system. |
| 105 | |
| 106 | Enabling this option will add support for reading and writing files |
| 107 | on the host system. If you don't have a debugger attached then trying |
| 108 | to do this will likely cause U-Boot to hang. Say 'n' if you are unsure. |
| 109 | |
| 110 | config SPL_SEMIHOSTING_FALLBACK |
| 111 | bool "Recover gracefully when semihosting fails in SPL" |
Kautuk Consul | c86cb4a | 2022-12-07 17:12:35 +0530 | [diff] [blame] | 112 | depends on SPL_SEMIHOSTING && (ARM64 || RISCV) |
| 113 | select ARMV8_SPL_EXCEPTION_VECTORS if ARM64 |
Kautuk Consul | a51bb74 | 2022-12-07 17:12:34 +0530 | [diff] [blame] | 114 | default y |
| 115 | help |
| 116 | Normally, if U-Boot makes a semihosting call and no debugger is |
| 117 | attached, then it will panic due to a synchronous abort |
| 118 | exception. This config adds an exception handler which will allow |
| 119 | U-Boot to recover. Say 'y' if unsure. |
| 120 | |
Alex Kiernan | 5b40428 | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 121 | config PRINTF |
| 122 | bool |
| 123 | default y |
| 124 | |
| 125 | config SPL_PRINTF |
| 126 | bool |
| 127 | select SPL_SPRINTF |
Simon Glass | 7611ac6 | 2019-09-25 08:56:27 -0600 | [diff] [blame] | 128 | select SPL_STRTO if !SPL_USE_TINY_PRINTF |
Alex Kiernan | 5b40428 | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 129 | |
| 130 | config TPL_PRINTF |
| 131 | bool |
| 132 | select TPL_SPRINTF |
Simon Glass | 7611ac6 | 2019-09-25 08:56:27 -0600 | [diff] [blame] | 133 | select TPL_STRTO if !TPL_USE_TINY_PRINTF |
Alex Kiernan | 5b40428 | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 134 | |
Simon Glass | e7ca7da | 2022-04-30 00:56:53 -0600 | [diff] [blame] | 135 | config VPL_PRINTF |
| 136 | bool |
| 137 | select VPL_SPRINTF |
| 138 | select VPL_STRTO if !VPL_USE_TINY_PRINTF |
| 139 | |
Alex Kiernan | 5b40428 | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 140 | config SPRINTF |
| 141 | bool |
| 142 | default y |
| 143 | |
| 144 | config SPL_SPRINTF |
| 145 | bool |
| 146 | |
| 147 | config TPL_SPRINTF |
| 148 | bool |
| 149 | |
Simon Glass | e7ca7da | 2022-04-30 00:56:53 -0600 | [diff] [blame] | 150 | config VPL_SPRINTF |
| 151 | bool |
| 152 | |
Andrii Anisov | 6e29ac4 | 2020-08-06 12:42:52 +0300 | [diff] [blame] | 153 | config SSCANF |
| 154 | bool |
Andrii Anisov | 6e29ac4 | 2020-08-06 12:42:52 +0300 | [diff] [blame] | 155 | |
Alex Kiernan | 5b40428 | 2018-04-19 04:32:54 +0000 | [diff] [blame] | 156 | config STRTO |
| 157 | bool |
| 158 | default y |
| 159 | |
| 160 | config SPL_STRTO |
| 161 | bool |
| 162 | |
| 163 | config TPL_STRTO |
| 164 | bool |
| 165 | |
Simon Glass | e7ca7da | 2022-04-30 00:56:53 -0600 | [diff] [blame] | 166 | config VPL_STRTO |
| 167 | bool |
| 168 | |
Alex Kiernan | c568bcb | 2018-05-29 15:30:52 +0000 | [diff] [blame] | 169 | config IMAGE_SPARSE |
| 170 | bool |
| 171 | |
| 172 | config IMAGE_SPARSE_FILLBUF_SIZE |
| 173 | hex "Android sparse image CHUNK_TYPE_FILL buffer size" |
| 174 | default 0x80000 |
| 175 | depends on IMAGE_SPARSE |
| 176 | help |
| 177 | Set the size of the fill buffer used when processing CHUNK_TYPE_FILL |
| 178 | chunks. |
| 179 | |
Masahiro Yamada | 9520b71 | 2014-10-24 01:30:43 +0900 | [diff] [blame] | 180 | config USE_PRIVATE_LIBGCC |
| 181 | bool "Use private libgcc" |
| 182 | depends on HAVE_PRIVATE_LIBGCC |
Marek Vasut | 4e0126e | 2016-05-26 18:01:47 +0200 | [diff] [blame] | 183 | default y if HAVE_PRIVATE_LIBGCC && ((ARM && !ARM64) || MIPS) |
Masahiro Yamada | 9520b71 | 2014-10-24 01:30:43 +0900 | [diff] [blame] | 184 | help |
| 185 | This option allows you to use the built-in libgcc implementation |
Masahiro Yamada | 1c6a5e4 | 2016-03-30 20:17:42 +0900 | [diff] [blame] | 186 | of U-Boot instead of the one provided by the compiler. |
Masahiro Yamada | 9520b71 | 2014-10-24 01:30:43 +0900 | [diff] [blame] | 187 | If unsure, say N. |
| 188 | |
Masahiro Yamada | e301fa0 | 2014-10-24 01:30:40 +0900 | [diff] [blame] | 189 | config SYS_HZ |
| 190 | int |
| 191 | default 1000 |
| 192 | help |
| 193 | The frequency of the timer returned by get_timer(). |
| 194 | get_timer() must operate in milliseconds and this option must be |
| 195 | set to 1000. |
| 196 | |
Simon Glass | 7611ac6 | 2019-09-25 08:56:27 -0600 | [diff] [blame] | 197 | config SPL_USE_TINY_PRINTF |
Thomas Hebb | 0c12fb5 | 2019-11-10 08:23:53 -0800 | [diff] [blame] | 198 | bool "Enable tiny printf() version in SPL" |
Simon Glass | 7611ac6 | 2019-09-25 08:56:27 -0600 | [diff] [blame] | 199 | depends on SPL |
Tom Rini | d0502b7 | 2019-06-08 12:46:18 -0400 | [diff] [blame] | 200 | default y |
Stefan Roese | 363ab7b | 2015-11-23 07:00:22 +0100 | [diff] [blame] | 201 | help |
| 202 | This option enables a tiny, stripped down printf version. |
| 203 | This should only be used in space limited environments, |
| 204 | like SPL versions with hard memory limits. This version |
| 205 | reduces the code size by about 2.5KiB on armv7. |
| 206 | |
| 207 | The supported format specifiers are %c, %s, %u/%d and %x. |
| 208 | |
Simon Glass | 7611ac6 | 2019-09-25 08:56:27 -0600 | [diff] [blame] | 209 | config TPL_USE_TINY_PRINTF |
Thomas Hebb | 0c12fb5 | 2019-11-10 08:23:53 -0800 | [diff] [blame] | 210 | bool "Enable tiny printf() version in TPL" |
Simon Glass | 7611ac6 | 2019-09-25 08:56:27 -0600 | [diff] [blame] | 211 | depends on TPL |
| 212 | default y if SPL_USE_TINY_PRINTF |
| 213 | help |
| 214 | This option enables a tiny, stripped down printf version. |
| 215 | This should only be used in space limited environments, |
| 216 | like SPL versions with hard memory limits. This version |
| 217 | reduces the code size by about 2.5KiB on armv7. |
| 218 | |
| 219 | The supported format specifiers are %c, %s, %u/%d and %x. |
| 220 | |
Simon Glass | e7ca7da | 2022-04-30 00:56:53 -0600 | [diff] [blame] | 221 | config VPL_USE_TINY_PRINTF |
| 222 | bool "Enable tiny printf() version for VPL" |
| 223 | depends on VPL |
| 224 | help |
| 225 | This option enables a tiny, stripped down printf version. |
| 226 | This should only be used in space limited environments, |
| 227 | like SPL versions with hard memory limits. This version |
| 228 | reduces the code size by about 2.5KiB on armv7. |
| 229 | |
| 230 | The supported format specifiers are %c, %s, %u/%d and %x. |
| 231 | |
Masahiro Yamada | acede7a | 2017-12-04 12:37:00 +0900 | [diff] [blame] | 232 | config PANIC_HANG |
| 233 | bool "Do not reset the system on fatal error" |
| 234 | help |
| 235 | Define this option to stop the system in case of a fatal error, |
| 236 | so that you have to reset it manually. This is probably NOT a good |
| 237 | idea for an embedded system where you want the system to reboot |
| 238 | automatically as fast as possible, but it may be useful during |
| 239 | development since you can try to debug the conditions that lead to |
| 240 | the situation. |
| 241 | |
Joe Hershberger | 937d3e8 | 2015-04-21 17:02:42 -0500 | [diff] [blame] | 242 | config REGEX |
| 243 | bool "Enable regular expression support" |
Joe Hershberger | 8ab8b72 | 2015-06-22 17:57:36 -0500 | [diff] [blame] | 244 | default y if NET |
Joe Hershberger | 937d3e8 | 2015-04-21 17:02:42 -0500 | [diff] [blame] | 245 | help |
| 246 | If this variable is defined, U-Boot is linked against the |
| 247 | SLRE (Super Light Regular Expression) library, which adds |
| 248 | regex support to some commands, for example "env grep" and |
| 249 | "setexpr". |
| 250 | |
Adam Ford | 38003a6 | 2018-02-06 10:18:18 -0600 | [diff] [blame] | 251 | choice |
| 252 | prompt "Pseudo-random library support type" |
Heinrich Schuchardt | b2e67a2 | 2020-01-19 19:28:12 +0100 | [diff] [blame] | 253 | depends on NET_RANDOM_ETHADDR || RANDOM_UUID || CMD_UUID || \ |
Heinrich Schuchardt | ba9c44e | 2020-11-20 12:55:22 +0100 | [diff] [blame] | 254 | RNG_SANDBOX || UT_LIB && AES || FAT_WRITE |
Adam Ford | 38003a6 | 2018-02-06 10:18:18 -0600 | [diff] [blame] | 255 | default LIB_RAND |
Masahiro Yamada | 2743c07 | 2015-06-11 19:16:43 +0900 | [diff] [blame] | 256 | help |
Adam Ford | 38003a6 | 2018-02-06 10:18:18 -0600 | [diff] [blame] | 257 | Select the library to provide pseudo-random number generator |
| 258 | functions. LIB_HW_RAND supports certain hardware engines that |
| 259 | provide this functionality. If in doubt, select LIB_RAND. |
| 260 | |
| 261 | config LIB_RAND |
| 262 | bool "Pseudo-random library support" |
| 263 | |
| 264 | config LIB_HW_RAND |
Marcin Juszkiewicz | a360c2c | 2020-05-26 19:07:15 +0200 | [diff] [blame] | 265 | bool "HW Engine for random library support" |
Adam Ford | 38003a6 | 2018-02-06 10:18:18 -0600 | [diff] [blame] | 266 | |
| 267 | endchoice |
Michal Simek | 2c1b1db | 2015-05-25 11:37:22 +0200 | [diff] [blame] | 268 | |
Simon Glass | a6cee93 | 2021-12-01 09:02:36 -0700 | [diff] [blame] | 269 | config SUPPORT_ACPI |
| 270 | bool |
| 271 | help |
| 272 | Enable this if your arch or board can support generating ACPI |
| 273 | (Advanced Configuration and Power Interface) tables. In this case |
| 274 | U-Boot can generate these tables and pass them to the Operating |
| 275 | System. |
| 276 | |
| 277 | config GENERATE_ACPI_TABLE |
| 278 | bool "Generate an ACPI (Advanced Configuration and Power Interface) table" |
| 279 | depends on SUPPORT_ACPI |
| 280 | select QFW if QEMU |
| 281 | help |
| 282 | The Advanced Configuration and Power Interface (ACPI) specification |
| 283 | provides an open standard for device configuration and management |
| 284 | by the operating system. It defines platform-independent interfaces |
| 285 | for configuration and power management monitoring. |
| 286 | |
Simon Glass | e2f94ae | 2017-04-02 09:50:28 -0600 | [diff] [blame] | 287 | config SPL_TINY_MEMSET |
| 288 | bool "Use a very small memset() in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 289 | depends on SPL |
Simon Glass | e2f94ae | 2017-04-02 09:50:28 -0600 | [diff] [blame] | 290 | help |
| 291 | The faster memset() is the arch-specific one (if available) enabled |
| 292 | by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get |
| 293 | better performance by writing a word at a time. But in very |
Chris Packham | 1c3b7ba | 2019-01-13 22:13:28 +1300 | [diff] [blame] | 294 | size-constrained environments even this may be too big. Enable this |
Simon Glass | e2f94ae | 2017-04-02 09:50:28 -0600 | [diff] [blame] | 295 | option to reduce code size slightly at the cost of some speed. |
| 296 | |
Philipp Tomsich | fefc4ec | 2017-08-03 22:52:04 +0200 | [diff] [blame] | 297 | config TPL_TINY_MEMSET |
| 298 | bool "Use a very small memset() in TPL" |
Tom Rini | 36a4ca0 | 2022-06-08 08:24:39 -0400 | [diff] [blame] | 299 | depends on TPL |
Philipp Tomsich | fefc4ec | 2017-08-03 22:52:04 +0200 | [diff] [blame] | 300 | help |
| 301 | The faster memset() is the arch-specific one (if available) enabled |
| 302 | by CONFIG_USE_ARCH_MEMSET. If that is not enabled, we can still get |
| 303 | better performance by writing a word at a time. But in very |
Chris Packham | 1c3b7ba | 2019-01-13 22:13:28 +1300 | [diff] [blame] | 304 | size-constrained environments even this may be too big. Enable this |
Philipp Tomsich | fefc4ec | 2017-08-03 22:52:04 +0200 | [diff] [blame] | 305 | option to reduce code size slightly at the cost of some speed. |
| 306 | |
Boris Brezillon | 627dc18 | 2017-02-27 18:22:05 +0100 | [diff] [blame] | 307 | config RBTREE |
| 308 | bool |
| 309 | |
Nandor Han | d5ea84a | 2017-11-08 15:35:14 +0000 | [diff] [blame] | 310 | config BITREVERSE |
| 311 | bool "Bit reverse library from Linux" |
| 312 | |
Simon Glass | bfce7fc | 2019-04-08 13:20:51 -0600 | [diff] [blame] | 313 | config TRACE |
| 314 | bool "Support for tracing of function calls and timing" |
| 315 | imply CMD_TRACE |
Pragnesh Patel | 0dd501a | 2021-01-17 18:11:24 +0530 | [diff] [blame] | 316 | select TIMER_EARLY |
Simon Glass | bfce7fc | 2019-04-08 13:20:51 -0600 | [diff] [blame] | 317 | help |
| 318 | Enables function tracing within U-Boot. This allows recording of call |
| 319 | traces including timing information. The command can write data to |
| 320 | memory for exporting for analysis (e.g. using bootchart). |
| 321 | See doc/README.trace for full details. |
| 322 | |
Simon Glass | 445078e | 2019-04-08 13:20:52 -0600 | [diff] [blame] | 323 | config TRACE_BUFFER_SIZE |
| 324 | hex "Size of trace buffer in U-Boot" |
| 325 | depends on TRACE |
| 326 | default 0x01000000 |
| 327 | help |
| 328 | Sets the size of the trace buffer in U-Boot. This is allocated from |
| 329 | memory during relocation. If this buffer is too small, the trace |
| 330 | history will be truncated, with later records omitted. |
| 331 | |
| 332 | If early trace is enabled (i.e. before relocation), this buffer must |
| 333 | be large enough to include all the data from the early trace buffer as |
| 334 | well, since this is copied over to the main buffer during relocation. |
| 335 | |
| 336 | A trace record is emitted for each function call and each record is |
| 337 | 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If |
| 338 | the size is too small then 'trace stats' will show a message saying |
| 339 | how many records were dropped due to buffer overflow. |
| 340 | |
Heinrich Schuchardt | c1a7379 | 2019-06-02 13:30:09 +0200 | [diff] [blame] | 341 | config TRACE_CALL_DEPTH_LIMIT |
| 342 | int "Trace call depth limit" |
| 343 | depends on TRACE |
| 344 | default 15 |
| 345 | help |
| 346 | Sets the maximum call depth up to which function calls are recorded. |
| 347 | |
Simon Glass | 445078e | 2019-04-08 13:20:52 -0600 | [diff] [blame] | 348 | config TRACE_EARLY |
| 349 | bool "Enable tracing before relocation" |
| 350 | depends on TRACE |
| 351 | help |
| 352 | Sometimes it is helpful to trace execution of U-Boot before |
| 353 | relocation. This is possible by using a arch-specific, fixed buffer |
| 354 | position in memory. Enable this option to start tracing as early as |
| 355 | possible after U-Boot starts. |
| 356 | |
| 357 | config TRACE_EARLY_SIZE |
| 358 | hex "Size of early trace buffer in U-Boot" |
| 359 | depends on TRACE_EARLY |
| 360 | default 0x00100000 |
| 361 | help |
| 362 | Sets the size of the early trace buffer in bytes. This is used to hold |
| 363 | tracing information before relocation. |
| 364 | |
Heinrich Schuchardt | c1a7379 | 2019-06-02 13:30:09 +0200 | [diff] [blame] | 365 | config TRACE_EARLY_CALL_DEPTH_LIMIT |
| 366 | int "Early trace call depth limit" |
| 367 | depends on TRACE_EARLY |
| 368 | default 200 |
| 369 | help |
| 370 | Sets the maximum call depth up to which function calls are recorded |
| 371 | during early tracing. |
| 372 | |
Simon Glass | 445078e | 2019-04-08 13:20:52 -0600 | [diff] [blame] | 373 | config TRACE_EARLY_ADDR |
| 374 | hex "Address of early trace buffer in U-Boot" |
| 375 | depends on TRACE_EARLY |
| 376 | default 0x00100000 |
| 377 | help |
| 378 | Sets the address of the early trace buffer in U-Boot. This memory |
| 379 | must be accessible before relocation. |
| 380 | |
| 381 | A trace record is emitted for each function call and each record is |
| 382 | 12 bytes (see struct trace_call). A suggested minimum size is 1MB. If |
| 383 | the size is too small then the message which says the amount of early |
| 384 | data being coped will the the same as the |
| 385 | |
Loic Poulain | 12797e6 | 2021-11-25 18:16:14 +0100 | [diff] [blame] | 386 | config CIRCBUF |
| 387 | bool "Enable circular buffer support" |
| 388 | |
Simon Glass | 99dbe4b | 2015-06-23 15:38:23 -0600 | [diff] [blame] | 389 | source lib/dhry/Kconfig |
| 390 | |
Simon Glass | 528fdd1 | 2017-04-26 22:27:49 -0600 | [diff] [blame] | 391 | menu "Security support" |
| 392 | |
| 393 | config AES |
| 394 | bool "Support the AES algorithm" |
| 395 | help |
| 396 | This provides a means to encrypt and decrypt data using the AES |
| 397 | (Advanced Encryption Standard). This algorithm uses a symetric key |
| 398 | and is widely used as a streaming cipher. Different key lengths are |
| 399 | supported by the algorithm but only a 128-bit key is supported at |
| 400 | present. |
| 401 | |
Alexandru Gagniuc | 48cb9b8 | 2021-07-29 11:47:16 -0500 | [diff] [blame] | 402 | source lib/ecdsa/Kconfig |
Ruchika Gupta | 4acd8c4 | 2015-01-23 16:01:56 +0530 | [diff] [blame] | 403 | source lib/rsa/Kconfig |
AKASHI Takahiro | 591535c | 2019-11-13 09:45:00 +0900 | [diff] [blame] | 404 | source lib/crypto/Kconfig |
Steffen Jaeckel | 229bd51 | 2021-07-08 15:57:33 +0200 | [diff] [blame] | 405 | source lib/crypt/Kconfig |
Ruchika Gupta | 2c3822e | 2015-01-23 16:01:51 +0530 | [diff] [blame] | 406 | |
Simon Glass | 350497c | 2015-08-22 18:31:19 -0600 | [diff] [blame] | 407 | config TPM |
| 408 | bool "Trusted Platform Module (TPM) Support" |
Simon Glass | cf294b0 | 2015-10-03 06:39:36 -0600 | [diff] [blame] | 409 | depends on DM |
Sughosh Ganu | 9737fab | 2022-07-22 21:32:04 +0530 | [diff] [blame] | 410 | imply DM_RNG |
Simon Glass | 350497c | 2015-08-22 18:31:19 -0600 | [diff] [blame] | 411 | help |
| 412 | This enables support for TPMs which can be used to provide security |
| 413 | features for your board. The TPM can be connected via LPC or I2C |
| 414 | and a sandbox TPM is provided for testing purposes. Use the 'tpm' |
| 415 | command to interactive the TPM. Driver model support is provided |
| 416 | for the low-level TPM interface, but only one TPM is supported at |
| 417 | a time by the TPM library. |
| 418 | |
Simon Glass | 93a45b1 | 2018-10-01 12:22:19 -0600 | [diff] [blame] | 419 | config SPL_TPM |
| 420 | bool "Trusted Platform Module (TPM) Support in SPL" |
| 421 | depends on SPL_DM |
| 422 | help |
| 423 | This enables support for TPMs which can be used to provide security |
| 424 | features for your board. The TPM can be connected via LPC or I2C |
| 425 | and a sandbox TPM is provided for testing purposes. Use the 'tpm' |
| 426 | command to interactive the TPM. Driver model support is provided |
| 427 | for the low-level TPM interface, but only one TPM is supported at |
| 428 | a time by the TPM library. |
| 429 | |
| 430 | config TPL_TPM |
| 431 | bool "Trusted Platform Module (TPM) Support in TPL" |
| 432 | depends on TPL_DM |
| 433 | help |
| 434 | This enables support for TPMs which can be used to provide security |
| 435 | features for your board. The TPM can be connected via LPC or I2C |
| 436 | and a sandbox TPM is provided for testing purposes. Use the 'tpm' |
| 437 | command to interactive the TPM. Driver model support is provided |
| 438 | for the low-level TPM interface, but only one TPM is supported at |
| 439 | a time by the TPM library. |
| 440 | |
Simon Glass | e7ca7da | 2022-04-30 00:56:53 -0600 | [diff] [blame] | 441 | config VPL_TPM |
| 442 | bool "Trusted Platform Module (TPM) Support in VPL" |
| 443 | depends on VPL_DM |
| 444 | help |
| 445 | This enables support for TPMs which can be used to provide security |
| 446 | features for your board. The TPM can be connected via LPC or I2C |
| 447 | and a sandbox TPM is provided for testing purposes. Use the 'tpm' |
| 448 | command to interactive the TPM. Driver model support is provided |
| 449 | for the low-level TPM interface, but only one TPM is supported at |
| 450 | a time by the TPM library. |
| 451 | |
Simon Glass | 528fdd1 | 2017-04-26 22:27:49 -0600 | [diff] [blame] | 452 | endmenu |
| 453 | |
Igor Opaniuk | 525d1d8 | 2018-06-03 21:56:37 +0300 | [diff] [blame] | 454 | menu "Android Verified Boot" |
| 455 | |
| 456 | config LIBAVB |
| 457 | bool "Android Verified Boot 2.0 support" |
| 458 | depends on ANDROID_BOOT_IMAGE |
Igor Opaniuk | 525d1d8 | 2018-06-03 21:56:37 +0300 | [diff] [blame] | 459 | help |
| 460 | This enables support of Android Verified Boot 2.0 which can be used |
| 461 | to assure the end user of the integrity of the software running on a |
| 462 | device. Introduces such features as boot chain of trust, rollback |
| 463 | protection etc. |
| 464 | |
| 465 | endmenu |
| 466 | |
gaurav rana | ef20159 | 2015-02-20 12:51:46 +0530 | [diff] [blame] | 467 | menu "Hashing Support" |
| 468 | |
Qu Wenruo | b98e8a2 | 2021-12-27 14:12:07 +0800 | [diff] [blame] | 469 | config BLAKE2 |
| 470 | bool "Enable BLAKE2 support" |
| 471 | help |
| 472 | This option enables support of hashing using BLAKE2B algorithm. |
| 473 | The hash is calculated in software. |
| 474 | The BLAKE2 algorithm produces a hash value (digest) between 1 and |
| 475 | 64 bytes. |
| 476 | |
gaurav rana | ef20159 | 2015-02-20 12:51:46 +0530 | [diff] [blame] | 477 | config SHA1 |
| 478 | bool "Enable SHA1 support" |
| 479 | help |
| 480 | This option enables support of hashing using SHA1 algorithm. |
| 481 | The hash is calculated in software. |
| 482 | The SHA1 algorithm produces a 160-bit (20-byte) hash value |
| 483 | (digest). |
| 484 | |
| 485 | config SHA256 |
| 486 | bool "Enable SHA256 support" |
| 487 | help |
| 488 | This option enables support of hashing using SHA256 algorithm. |
| 489 | The hash is calculated in software. |
| 490 | The SHA256 algorithm produces a 256-bit (32-byte) hash value |
| 491 | (digest). |
| 492 | |
Reuben Dowle | 1908fd9 | 2020-04-16 17:36:52 +1200 | [diff] [blame] | 493 | config SHA512 |
| 494 | bool "Enable SHA512 support" |
Reuben Dowle | 1908fd9 | 2020-04-16 17:36:52 +1200 | [diff] [blame] | 495 | help |
| 496 | This option enables support of hashing using SHA512 algorithm. |
| 497 | The hash is calculated in software. |
| 498 | The SHA512 algorithm produces a 512-bit (64-byte) hash value |
| 499 | (digest). |
| 500 | |
| 501 | config SHA384 |
| 502 | bool "Enable SHA384 support" |
Alexandru Gagniuc | 5df5d69 | 2021-09-02 19:54:18 -0500 | [diff] [blame] | 503 | select SHA512 |
Reuben Dowle | 1908fd9 | 2020-04-16 17:36:52 +1200 | [diff] [blame] | 504 | help |
| 505 | This option enables support of hashing using SHA384 algorithm. |
Alexandru Gagniuc | 5df5d69 | 2021-09-02 19:54:18 -0500 | [diff] [blame] | 506 | The hash is calculated in software. This is also selects SHA512, |
| 507 | because these implementations share the bulk of the code.. |
Reuben Dowle | 1908fd9 | 2020-04-16 17:36:52 +1200 | [diff] [blame] | 508 | The SHA384 algorithm produces a 384-bit (48-byte) hash value |
| 509 | (digest). |
| 510 | |
gaurav rana | ef20159 | 2015-02-20 12:51:46 +0530 | [diff] [blame] | 511 | config SHA_HW_ACCEL |
Heinrich Schuchardt | d42f81f | 2021-05-14 07:08:27 +0200 | [diff] [blame] | 512 | bool "Enable hardware acceleration for SHA hash functions" |
gaurav rana | ef20159 | 2015-02-20 12:51:46 +0530 | [diff] [blame] | 513 | help |
Heinrich Schuchardt | d42f81f | 2021-05-14 07:08:27 +0200 | [diff] [blame] | 514 | This option enables hardware acceleration for the SHA1 and SHA256 |
| 515 | hashing algorithms. This affects the 'hash' command and also the |
| 516 | hash_lookup_algo() function. |
| 517 | |
Simon Glass | f7b37c2 | 2021-09-25 19:43:17 -0600 | [diff] [blame] | 518 | if SPL |
| 519 | |
| 520 | config SPL_SHA1 |
| 521 | bool "Enable SHA1 support in SPL" |
| 522 | default y if SHA1 |
| 523 | help |
| 524 | This option enables support of hashing using SHA1 algorithm. |
| 525 | The hash is calculated in software. |
| 526 | The SHA1 algorithm produces a 160-bit (20-byte) hash value |
| 527 | (digest). |
| 528 | |
| 529 | config SPL_SHA256 |
| 530 | bool "Enable SHA256 support in SPL" |
| 531 | default y if SHA256 |
| 532 | help |
| 533 | This option enables support of hashing using SHA256 algorithm. |
| 534 | The hash is calculated in software. |
| 535 | The SHA256 algorithm produces a 256-bit (32-byte) hash value |
| 536 | (digest). |
| 537 | |
| 538 | config SPL_SHA512 |
| 539 | bool "Enable SHA512 support in SPL" |
| 540 | default y if SHA512 |
| 541 | help |
| 542 | This option enables support of hashing using SHA512 algorithm. |
| 543 | The hash is calculated in software. |
| 544 | The SHA512 algorithm produces a 512-bit (64-byte) hash value |
| 545 | (digest). |
| 546 | |
| 547 | config SPL_SHA384 |
| 548 | bool "Enable SHA384 support in SPL" |
| 549 | default y if SHA384 |
| 550 | select SPL_SHA512 |
| 551 | help |
| 552 | This option enables support of hashing using SHA384 algorithm. |
| 553 | The hash is calculated in software. This is also selects SHA512, |
| 554 | because these implementations share the bulk of the code.. |
| 555 | The SHA384 algorithm produces a 384-bit (48-byte) hash value |
| 556 | (digest). |
| 557 | |
Simon Glass | 383dd57 | 2021-09-25 19:43:18 -0600 | [diff] [blame] | 558 | config SPL_SHA_HW_ACCEL |
| 559 | bool "Enable hardware acceleration for SHA hash functions" |
| 560 | default y if SHA_HW_ACCEL |
| 561 | help |
| 562 | This option enables hardware acceleration for the SHA1 and SHA256 |
| 563 | hashing algorithms. This affects the 'hash' command and also the |
| 564 | hash_lookup_algo() function. |
| 565 | |
| 566 | config SPL_SHA_PROG_HW_ACCEL |
| 567 | bool "Enable Progressive hashing support using hardware in SPL" |
| 568 | depends on SHA_PROG_HW_ACCEL |
| 569 | default y |
| 570 | help |
| 571 | This option enables hardware-acceleration for SHA progressive |
| 572 | hashing. |
| 573 | Data can be streamed in a block at a time and the hashing is |
| 574 | performed in hardware. |
| 575 | |
Simon Glass | f7b37c2 | 2021-09-25 19:43:17 -0600 | [diff] [blame] | 576 | endif |
| 577 | |
Heinrich Schuchardt | d42f81f | 2021-05-14 07:08:27 +0200 | [diff] [blame] | 578 | if SHA_HW_ACCEL |
| 579 | |
| 580 | config SHA512_HW_ACCEL |
| 581 | bool "Enable hardware acceleration for SHA512" |
Alexandru Gagniuc | 5df5d69 | 2021-09-02 19:54:18 -0500 | [diff] [blame] | 582 | depends on SHA512 |
Heinrich Schuchardt | d42f81f | 2021-05-14 07:08:27 +0200 | [diff] [blame] | 583 | help |
| 584 | This option enables hardware acceleration for the SHA384 and SHA512 |
| 585 | hashing algorithms. This affects the 'hash' command and also the |
| 586 | hash_lookup_algo() function. |
gaurav rana | ef20159 | 2015-02-20 12:51:46 +0530 | [diff] [blame] | 587 | |
| 588 | config SHA_PROG_HW_ACCEL |
| 589 | bool "Enable Progressive hashing support using hardware" |
gaurav rana | ef20159 | 2015-02-20 12:51:46 +0530 | [diff] [blame] | 590 | help |
Joel Stanley | 92efc1f | 2021-02-17 13:50:42 +1030 | [diff] [blame] | 591 | This option enables hardware-acceleration for SHA progressive |
| 592 | hashing. |
| 593 | Data can be streamed in a block at a time and the hashing is |
| 594 | performed in hardware. |
Andre Przywara | f0fa113 | 2017-03-15 01:19:05 +0000 | [diff] [blame] | 595 | |
Heinrich Schuchardt | d42f81f | 2021-05-14 07:08:27 +0200 | [diff] [blame] | 596 | endif |
| 597 | |
Andre Przywara | f0fa113 | 2017-03-15 01:19:05 +0000 | [diff] [blame] | 598 | config MD5 |
Simon Glass | d33d0db | 2020-05-06 08:03:56 -0600 | [diff] [blame] | 599 | bool "Support MD5 algorithm" |
| 600 | help |
| 601 | This option enables MD5 support. MD5 is an algorithm designed |
| 602 | in 1991 that produces a 16-byte digest (or checksum) from its input |
| 603 | data. It has a number of vulnerabilities which preclude its use in |
| 604 | security applications, but it can be useful for providing a quick |
| 605 | checksum of a block of data. |
| 606 | |
| 607 | config SPL_MD5 |
| 608 | bool "Support MD5 algorithm in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 609 | depends on SPL |
Simon Glass | d33d0db | 2020-05-06 08:03:56 -0600 | [diff] [blame] | 610 | help |
| 611 | This option enables MD5 support in SPL. MD5 is an algorithm designed |
| 612 | in 1991 that produces a 16-byte digest (or checksum) from its input |
| 613 | data. It has a number of vulnerabilities which preclude its use in |
| 614 | security applications, but it can be useful for providing a quick |
| 615 | checksum of a block of data. |
Andre Przywara | f0fa113 | 2017-03-15 01:19:05 +0000 | [diff] [blame] | 616 | |
Simon Glass | 577226c | 2021-09-25 19:43:24 -0600 | [diff] [blame] | 617 | config CRC32 |
| 618 | def_bool y |
| 619 | help |
| 620 | Enables CRC32 support in U-Boot. This is normally required. |
| 621 | |
Marek Behún | cdccc03 | 2017-09-03 17:00:23 +0200 | [diff] [blame] | 622 | config CRC32C |
| 623 | bool |
| 624 | |
Marek Behún | b139a7f | 2019-04-29 22:40:43 +0200 | [diff] [blame] | 625 | config XXHASH |
| 626 | bool |
| 627 | |
gaurav rana | ef20159 | 2015-02-20 12:51:46 +0530 | [diff] [blame] | 628 | endmenu |
| 629 | |
Julius Werner | f41a3ca | 2015-10-06 20:03:53 -0700 | [diff] [blame] | 630 | menu "Compression Support" |
| 631 | |
| 632 | config LZ4 |
| 633 | bool "Enable LZ4 decompression support" |
| 634 | help |
| 635 | If this option is set, support for LZ4 compressed images |
| 636 | is included. The LZ4 algorithm can run in-place as long as the |
| 637 | compressed image is loaded to the end of the output buffer, and |
| 638 | trades lower compression ratios for much faster decompression. |
Patrick Delaunay | cd831af | 2021-03-10 10:16:28 +0100 | [diff] [blame] | 639 | |
Julius Werner | f41a3ca | 2015-10-06 20:03:53 -0700 | [diff] [blame] | 640 | NOTE: This implements the release version of the LZ4 frame |
| 641 | format as generated by default by the 'lz4' command line tool. |
| 642 | This is not the same as the outdated, less efficient legacy |
| 643 | frame format currently (2015) implemented in the Linux kernel |
| 644 | (generated by 'lz4 -l'). The two formats are incompatible. |
| 645 | |
Simon Glass | 264aa5f | 2017-05-17 03:25:42 -0600 | [diff] [blame] | 646 | config LZMA |
| 647 | bool "Enable LZMA decompression support" |
| 648 | help |
| 649 | This enables support for LZMA (Lempel-Ziv-Markov chain algorithm), |
| 650 | a dictionary compression algorithm that provides a high compression |
| 651 | ratio and fairly fast decompression speed. See also |
| 652 | CONFIG_CMD_LZMADEC which provides a decode command. |
| 653 | |
Boris Brezillon | aa57d0f | 2017-02-27 18:22:06 +0100 | [diff] [blame] | 654 | config LZO |
Tom Rini | c20bb73 | 2017-07-22 18:36:16 -0400 | [diff] [blame] | 655 | bool "Enable LZO decompression support" |
| 656 | help |
Oleksandr Suvorov | 30a4c31 | 2021-09-01 16:05:08 +0300 | [diff] [blame] | 657 | This enables support for the LZO compression algorithm. |
York Sun | a6945fe | 2017-08-15 11:14:43 -0700 | [diff] [blame] | 658 | |
Marek Vasut | aeaa29d | 2019-03-08 16:06:55 +0100 | [diff] [blame] | 659 | config GZIP |
Heiko Schocher | b93cc60 | 2019-04-29 08:59:38 +0200 | [diff] [blame] | 660 | bool "Enable gzip decompression support" |
Marek Vasut | aeaa29d | 2019-03-08 16:06:55 +0100 | [diff] [blame] | 661 | select ZLIB |
| 662 | default y |
| 663 | help |
| 664 | This enables support for GZIP compression algorithm. |
| 665 | |
Joao Marcos Costa | ae8abb1 | 2020-07-30 15:33:49 +0200 | [diff] [blame] | 666 | config ZLIB_UNCOMPRESS |
| 667 | bool "Enables zlib's uncompress() functionality" |
| 668 | help |
| 669 | This enables an extra zlib functionality: the uncompress() function, |
| 670 | which decompresses data from a buffer into another, knowing their |
| 671 | sizes. Unlike gunzip(), there is no header parsing. |
| 672 | |
Michael Walle | 3a6e351 | 2020-05-22 14:07:36 +0200 | [diff] [blame] | 673 | config GZIP_COMPRESSED |
| 674 | bool |
| 675 | select ZLIB |
| 676 | |
Atish Patra | 1fa7962 | 2020-03-05 16:24:21 -0800 | [diff] [blame] | 677 | config BZIP2 |
| 678 | bool "Enable bzip2 decompression support" |
| 679 | help |
| 680 | This enables support for BZIP2 compression algorithm. |
| 681 | |
Marek Vasut | aeaa29d | 2019-03-08 16:06:55 +0100 | [diff] [blame] | 682 | config ZLIB |
| 683 | bool |
| 684 | default y |
| 685 | help |
| 686 | This enables ZLIB compression lib. |
| 687 | |
Marek Behún | e87e200 | 2019-04-29 22:40:44 +0200 | [diff] [blame] | 688 | config ZSTD |
| 689 | bool "Enable Zstandard decompression support" |
| 690 | select XXHASH |
| 691 | help |
| 692 | This enables Zstandard decompression library. |
| 693 | |
Simon Glass | e107bcd | 2018-11-06 15:21:30 -0700 | [diff] [blame] | 694 | config SPL_LZ4 |
| 695 | bool "Enable LZ4 decompression support in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 696 | depends on SPL |
Simon Glass | e107bcd | 2018-11-06 15:21:30 -0700 | [diff] [blame] | 697 | help |
Marcin Juszkiewicz | a360c2c | 2020-05-26 19:07:15 +0200 | [diff] [blame] | 698 | This enables support for the LZ4 decompression algorithm in SPL. LZ4 |
Simon Glass | e107bcd | 2018-11-06 15:21:30 -0700 | [diff] [blame] | 699 | is a lossless data compression algorithm that is focused on |
| 700 | fast compression and decompression speed. It belongs to the LZ77 |
| 701 | family of byte-oriented compression schemes. |
| 702 | |
developer | 6a4e1d3 | 2020-04-21 09:28:38 +0200 | [diff] [blame] | 703 | config SPL_LZMA |
| 704 | bool "Enable LZMA decompression support for SPL build" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 705 | depends on SPL |
developer | 6a4e1d3 | 2020-04-21 09:28:38 +0200 | [diff] [blame] | 706 | help |
Marcin Juszkiewicz | a360c2c | 2020-05-26 19:07:15 +0200 | [diff] [blame] | 707 | This enables support for LZMA compression algorithm for SPL boot. |
developer | 6a4e1d3 | 2020-04-21 09:28:38 +0200 | [diff] [blame] | 708 | |
Simon Glass | e7ca7da | 2022-04-30 00:56:53 -0600 | [diff] [blame] | 709 | config VPL_LZMA |
| 710 | bool "Enable LZMA decompression support for VPL build" |
| 711 | default y if LZMA |
| 712 | help |
| 713 | This enables support for LZMA compression algorithm for VPL boot. |
| 714 | |
Jean-Jacques Hiblot | dbde288 | 2017-09-15 12:57:30 +0200 | [diff] [blame] | 715 | config SPL_LZO |
| 716 | bool "Enable LZO decompression support in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 717 | depends on SPL |
Jean-Jacques Hiblot | dbde288 | 2017-09-15 12:57:30 +0200 | [diff] [blame] | 718 | help |
| 719 | This enables support for LZO compression algorithm in the SPL. |
| 720 | |
York Sun | a6945fe | 2017-08-15 11:14:43 -0700 | [diff] [blame] | 721 | config SPL_GZIP |
| 722 | bool "Enable gzip decompression support for SPL build" |
| 723 | select SPL_ZLIB |
| 724 | help |
Oleksandr Suvorov | 30a4c31 | 2021-09-01 16:05:08 +0300 | [diff] [blame] | 725 | This enables support for the GZIP compression algorithm for SPL boot. |
York Sun | a6945fe | 2017-08-15 11:14:43 -0700 | [diff] [blame] | 726 | |
| 727 | config SPL_ZLIB |
| 728 | bool |
| 729 | help |
| 730 | This enables compression lib for SPL boot. |
| 731 | |
Marek Behún | e87e200 | 2019-04-29 22:40:44 +0200 | [diff] [blame] | 732 | config SPL_ZSTD |
| 733 | bool "Enable Zstandard decompression support in SPL" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 734 | depends on SPL |
Marek Behún | e87e200 | 2019-04-29 22:40:44 +0200 | [diff] [blame] | 735 | select XXHASH |
| 736 | help |
| 737 | This enables Zstandard decompression library in the SPL. |
| 738 | |
Julius Werner | f41a3ca | 2015-10-06 20:03:53 -0700 | [diff] [blame] | 739 | endmenu |
| 740 | |
Przemyslaw Marczak | 3755013 | 2015-04-20 20:07:40 +0200 | [diff] [blame] | 741 | config ERRNO_STR |
| 742 | bool "Enable function for getting errno-related string message" |
| 743 | help |
| 744 | The function errno_str(int errno), returns a pointer to the errno |
| 745 | corresponding text message: |
| 746 | - if errno is null or positive number - a pointer to "Success" message |
| 747 | - if errno is negative - a pointer to errno related message |
| 748 | |
Alexey Brodkin | 2d2fa49 | 2018-06-05 17:17:57 +0300 | [diff] [blame] | 749 | config HEXDUMP |
| 750 | bool "Enable hexdump" |
| 751 | help |
| 752 | This enables functions for printing dumps of binary data. |
| 753 | |
Simon Glass | a37fd4d | 2020-09-12 11:13:35 -0600 | [diff] [blame] | 754 | config SPL_HEXDUMP |
| 755 | bool "Enable hexdump in SPL" |
Heinrich Schuchardt | 11df072 | 2021-07-24 17:35:46 +0200 | [diff] [blame] | 756 | depends on SPL && HEXDUMP |
Simon Glass | a37fd4d | 2020-09-12 11:13:35 -0600 | [diff] [blame] | 757 | help |
| 758 | This enables functions for printing dumps of binary data in |
| 759 | SPL. |
| 760 | |
Sean Anderson | 3b4a6f5 | 2020-10-27 19:55:36 -0400 | [diff] [blame] | 761 | config GETOPT |
| 762 | bool "Enable getopt" |
| 763 | help |
| 764 | This enables functions for parsing command-line options. |
| 765 | |
Simon Glass | a66c541 | 2016-02-22 22:55:42 -0700 | [diff] [blame] | 766 | config OF_LIBFDT |
| 767 | bool "Enable the FDT library" |
| 768 | default y if OF_CONTROL |
| 769 | help |
| 770 | This enables the FDT library (libfdt). It provides functions for |
| 771 | accessing binary device tree images in memory, such as adding and |
Anatolij Gustschin | da707d4 | 2017-08-18 17:58:51 +0200 | [diff] [blame] | 772 | removing nodes and properties, scanning through the tree and finding |
Simon Glass | a66c541 | 2016-02-22 22:55:42 -0700 | [diff] [blame] | 773 | particular compatible nodes. The library operates on a flattened |
| 774 | version of the device tree. |
| 775 | |
Simon Glass | c48044d | 2019-10-27 09:47:40 -0600 | [diff] [blame] | 776 | config OF_LIBFDT_ASSUME_MASK |
| 777 | hex "Mask of conditions to assume for libfdt" |
| 778 | depends on OF_LIBFDT || FIT |
| 779 | default 0 |
| 780 | help |
| 781 | Use this to change the assumptions made by libfdt about the |
| 782 | device tree it is working with. A value of 0 means that no assumptions |
| 783 | are made, and libfdt is able to deal with malicious data. A value of |
| 784 | 0xff means all assumptions are made and any invalid data may cause |
| 785 | unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h |
| 786 | |
Maxime Ripard | 9e901ce | 2016-07-05 10:26:44 +0200 | [diff] [blame] | 787 | config OF_LIBFDT_OVERLAY |
| 788 | bool "Enable the FDT library overlay support" |
Tom Rini | c1e49ba | 2018-05-08 08:52:17 -0400 | [diff] [blame] | 789 | depends on OF_LIBFDT |
Praneeth Bajjuri | 7b71a01 | 2018-04-25 16:03:23 -0500 | [diff] [blame] | 790 | default y if ARCH_OMAP2PLUS || ARCH_KEYSTONE |
Maxime Ripard | 9e901ce | 2016-07-05 10:26:44 +0200 | [diff] [blame] | 791 | help |
| 792 | This enables the FDT library (libfdt) overlay support. |
| 793 | |
Tom Rini | d2cd431 | 2022-08-02 07:33:27 -0400 | [diff] [blame] | 794 | config SYS_FDT_PAD |
| 795 | hex "Maximum size of the FDT memory area passeed to the OS" |
| 796 | depends on OF_LIBFDT |
| 797 | default 0x13000 if FMAN_ENET || QE || U_QE |
| 798 | default 0x3000 |
| 799 | help |
| 800 | During OS boot, we allocate a region of memory within the bootmap |
| 801 | for the FDT. This is the size that we will expand the FDT that we |
| 802 | are using will be extended to be, in bytes. |
| 803 | |
Simon Glass | 8b42692 | 2016-02-22 22:55:45 -0700 | [diff] [blame] | 804 | config SPL_OF_LIBFDT |
| 805 | bool "Enable the FDT library for SPL" |
Simon Glass | e7ca7da | 2022-04-30 00:56:53 -0600 | [diff] [blame] | 806 | depends on SPL_LIBGENERIC_SUPPORT |
Simon Glass | 8b42692 | 2016-02-22 22:55:45 -0700 | [diff] [blame] | 807 | default y if SPL_OF_CONTROL |
| 808 | help |
| 809 | This enables the FDT library (libfdt). It provides functions for |
| 810 | accessing binary device tree images in memory, such as adding and |
Anatolij Gustschin | da707d4 | 2017-08-18 17:58:51 +0200 | [diff] [blame] | 811 | removing nodes and properties, scanning through the tree and finding |
Simon Glass | 8b42692 | 2016-02-22 22:55:45 -0700 | [diff] [blame] | 812 | particular compatible nodes. The library operates on a flattened |
| 813 | version of the device tree. |
| 814 | |
Simon Glass | c48044d | 2019-10-27 09:47:40 -0600 | [diff] [blame] | 815 | config SPL_OF_LIBFDT_ASSUME_MASK |
| 816 | hex "Mask of conditions to assume for libfdt" |
Tom Rini | 0a83cc2 | 2022-06-10 23:03:09 -0400 | [diff] [blame] | 817 | depends on SPL_OF_LIBFDT || (FIT && SPL) |
Simon Glass | c48044d | 2019-10-27 09:47:40 -0600 | [diff] [blame] | 818 | default 0xff |
| 819 | help |
| 820 | Use this to change the assumptions made by libfdt in SPL about the |
| 821 | device tree it is working with. A value of 0 means that no assumptions |
| 822 | are made, and libfdt is able to deal with malicious data. A value of |
| 823 | 0xff means all assumptions are made and any invalid data may cause |
| 824 | unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h |
| 825 | |
Simon Glass | ca8ec4b | 2018-10-01 12:22:21 -0600 | [diff] [blame] | 826 | config TPL_OF_LIBFDT |
| 827 | bool "Enable the FDT library for TPL" |
Simon Glass | e7ca7da | 2022-04-30 00:56:53 -0600 | [diff] [blame] | 828 | depends on TPL_LIBGENERIC_SUPPORT |
Simon Glass | ca8ec4b | 2018-10-01 12:22:21 -0600 | [diff] [blame] | 829 | default y if TPL_OF_CONTROL |
| 830 | help |
| 831 | This enables the FDT library (libfdt). It provides functions for |
| 832 | accessing binary device tree images in memory, such as adding and |
| 833 | removing nodes and properties, scanning through the tree and finding |
| 834 | particular compatible nodes. The library operates on a flattened |
| 835 | version of the device tree. |
| 836 | |
Simon Glass | c48044d | 2019-10-27 09:47:40 -0600 | [diff] [blame] | 837 | config TPL_OF_LIBFDT_ASSUME_MASK |
| 838 | hex "Mask of conditions to assume for libfdt" |
Tom Rini | 36a4ca0 | 2022-06-08 08:24:39 -0400 | [diff] [blame] | 839 | depends on TPL_OF_LIBFDT || (FIT && TPL) |
Simon Glass | c48044d | 2019-10-27 09:47:40 -0600 | [diff] [blame] | 840 | default 0xff |
| 841 | help |
| 842 | Use this to change the assumptions made by libfdt in TPL about the |
| 843 | device tree it is working with. A value of 0 means that no assumptions |
| 844 | are made, and libfdt is able to deal with malicious data. A value of |
| 845 | 0xff means all assumptions are made and any invalid data may cause |
| 846 | unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h |
| 847 | |
Simon Glass | e7ca7da | 2022-04-30 00:56:53 -0600 | [diff] [blame] | 848 | config VPL_OF_LIBFDT |
| 849 | bool "Enable the FDT library for VPL" |
Tom Rini | 7fb323b | 2022-06-08 08:24:40 -0400 | [diff] [blame] | 850 | depends on VPL |
Simon Glass | e7ca7da | 2022-04-30 00:56:53 -0600 | [diff] [blame] | 851 | default y if VPL_OF_CONTROL && !VPL_OF_PLATDATA |
| 852 | help |
| 853 | This enables the FDT library (libfdt). It provides functions for |
| 854 | accessing binary device tree images in memory, such as adding and |
| 855 | removing nodes and properties, scanning through the tree and finding |
| 856 | particular compatible nodes. The library operates on a flattened |
| 857 | version of the device tree. |
| 858 | |
| 859 | config VPL_OF_LIBFDT_ASSUME_MASK |
| 860 | hex "Mask of conditions to assume for libfdt" |
Tom Rini | 7fb323b | 2022-06-08 08:24:40 -0400 | [diff] [blame] | 861 | depends on VPL_OF_LIBFDT || (FIT && VPL) |
Simon Glass | e7ca7da | 2022-04-30 00:56:53 -0600 | [diff] [blame] | 862 | default 0xff |
| 863 | help |
| 864 | Use this to change the assumptions made by libfdt in SPL about the |
| 865 | device tree it is working with. A value of 0 means that no assumptions |
| 866 | are made, and libfdt is able to deal with malicious data. A value of |
| 867 | 0xff means all assumptions are made and any invalid data may cause |
| 868 | unsafe execution. See FDT_ASSUME_PERFECT, etc. in libfdt_internal.h |
| 869 | |
Heiko Schocher | c9ab910 | 2016-10-06 07:31:45 +0200 | [diff] [blame] | 870 | config FDT_FIXUP_PARTITIONS |
| 871 | bool "overwrite MTD partitions in DTS through defined in 'mtdparts'" |
| 872 | depends on OF_LIBFDT |
Masahiro Yamada | 734b755 | 2018-07-20 11:04:09 +0900 | [diff] [blame] | 873 | depends on CMD_MTDPARTS |
Heiko Schocher | c9ab910 | 2016-10-06 07:31:45 +0200 | [diff] [blame] | 874 | help |
| 875 | Allow overwriting defined partitions in the device tree blob |
| 876 | using partition info defined in the 'mtdparts' environment |
| 877 | variable. |
| 878 | |
Alexander Graf | fb22808 | 2016-08-19 01:23:23 +0200 | [diff] [blame] | 879 | menu "System tables" |
Alexander Graf | 66f96e1 | 2016-08-19 01:23:29 +0200 | [diff] [blame] | 880 | depends on (!EFI && !SYS_COREBOOT) || (ARM && EFI_LOADER) |
Alexander Graf | fb22808 | 2016-08-19 01:23:23 +0200 | [diff] [blame] | 881 | |
Simon Glass | 5d093f3 | 2020-11-04 09:57:25 -0700 | [diff] [blame] | 882 | config BLOBLIST_TABLES |
| 883 | bool "Put tables in a bloblist" |
Simon Glass | 171c646 | 2021-03-15 18:11:22 +1300 | [diff] [blame] | 884 | depends on X86 && BLOBLIST |
Simon Glass | 5d093f3 | 2020-11-04 09:57:25 -0700 | [diff] [blame] | 885 | help |
| 886 | Normally tables are placed at address 0xf0000 and can be up to 64KB |
| 887 | long. With this option, tables are instead placed in the bloblist |
| 888 | with a pointer from 0xf0000. The size can then be larger and the |
| 889 | tables can be placed high in memory. |
| 890 | |
Alexander Graf | fb22808 | 2016-08-19 01:23:23 +0200 | [diff] [blame] | 891 | config GENERATE_SMBIOS_TABLE |
| 892 | bool "Generate an SMBIOS (System Management BIOS) table" |
| 893 | default y |
Alexander Graf | 66f96e1 | 2016-08-19 01:23:29 +0200 | [diff] [blame] | 894 | depends on X86 || EFI_LOADER |
Alexander Graf | fb22808 | 2016-08-19 01:23:23 +0200 | [diff] [blame] | 895 | help |
| 896 | The System Management BIOS (SMBIOS) specification addresses how |
| 897 | motherboard and system vendors present management information about |
| 898 | their products in a standard format by extending the BIOS interface |
| 899 | on Intel architecture systems. |
| 900 | |
| 901 | Check http://www.dmtf.org/standards/smbios for details. |
| 902 | |
Simon Glass | 052a03e | 2020-11-05 06:32:11 -0700 | [diff] [blame] | 903 | See also SMBIOS_SYSINFO which allows SMBIOS values to be provided in |
| 904 | the devicetree. |
| 905 | |
Tero Kristo | cfbe15c | 2021-06-11 11:45:02 +0300 | [diff] [blame] | 906 | config LIB_RATIONAL |
| 907 | bool "enable continued fraction calculation routines" |
| 908 | |
| 909 | config SPL_LIB_RATIONAL |
| 910 | bool "enable continued fraction calculation routines for SPL" |
| 911 | depends on SPL |
| 912 | |
Alexander Graf | fb22808 | 2016-08-19 01:23:23 +0200 | [diff] [blame] | 913 | endmenu |
| 914 | |
AKASHI Takahiro | f702526 | 2019-11-13 09:44:53 +0900 | [diff] [blame] | 915 | config ASN1_COMPILER |
| 916 | bool |
Philippe Reynes | 2aba944 | 2022-03-28 22:56:54 +0200 | [diff] [blame] | 917 | help |
| 918 | ASN.1 (Abstract Syntax Notation One) is a standard interface |
| 919 | description language for defining data structures that can be |
| 920 | serialized and deserialized in a cross-platform way. It is |
| 921 | broadly used in telecommunications and computer networking, |
| 922 | and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1). |
| 923 | This option enables the support of the asn1 compiler. |
AKASHI Takahiro | f702526 | 2019-11-13 09:44:53 +0900 | [diff] [blame] | 924 | |
AKASHI Takahiro | 3a88871 | 2019-11-13 09:44:55 +0900 | [diff] [blame] | 925 | config ASN1_DECODER |
| 926 | bool |
| 927 | help |
Philippe Reynes | 2aba944 | 2022-03-28 22:56:54 +0200 | [diff] [blame] | 928 | ASN.1 (Abstract Syntax Notation One) is a standard interface |
| 929 | description language for defining data structures that can be |
| 930 | serialized and deserialized in a cross-platform way. It is |
| 931 | broadly used in telecommunications and computer networking, |
| 932 | and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1). |
| 933 | This option enables the support of the asn1 decoder. |
AKASHI Takahiro | 3a88871 | 2019-11-13 09:44:55 +0900 | [diff] [blame] | 934 | |
Philippe Reynes | cf538b5 | 2022-03-28 22:56:56 +0200 | [diff] [blame] | 935 | config SPL_ASN1_DECODER |
| 936 | bool |
| 937 | help |
| 938 | ASN.1 (Abstract Syntax Notation One) is a standard interface |
| 939 | description language for defining data structures that can be |
| 940 | serialized and deserialized in a cross-platform way. It is |
| 941 | broadly used in telecommunications and computer networking, |
| 942 | and especially in cryptography (https://en.wikipedia.org/wiki/ASN.1). |
| 943 | This option enables the support of the asn1 decoder in the SPL. |
| 944 | |
AKASHI Takahiro | 5492364 | 2019-11-13 09:44:57 +0900 | [diff] [blame] | 945 | config OID_REGISTRY |
| 946 | bool |
| 947 | help |
Philippe Reynes | e35c3a2 | 2022-03-28 22:56:55 +0200 | [diff] [blame] | 948 | In computing, object identifiers or OIDs are an identifier mechanism |
| 949 | standardized by the International Telecommunication Union (ITU) and |
| 950 | ISO/IEC for naming any object, concept, or "thing" with a globally |
| 951 | unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier). |
AKASHI Takahiro | 5492364 | 2019-11-13 09:44:57 +0900 | [diff] [blame] | 952 | Enable fast lookup object identifier registry. |
| 953 | |
Philippe Reynes | cf538b5 | 2022-03-28 22:56:56 +0200 | [diff] [blame] | 954 | config SPL_OID_REGISTRY |
| 955 | bool |
| 956 | help |
| 957 | In computing, object identifiers or OIDs are an identifier mechanism |
| 958 | standardized by the International Telecommunication Union (ITU) and |
| 959 | ISO/IEC for naming any object, concept, or "thing" with a globally |
| 960 | unambiguous persistent name (https://en.wikipedia.org/wiki/Object_identifier). |
| 961 | Enable fast lookup object identifier registry in the SPL. |
| 962 | |
Christian Gmeiner | 1985998 | 2020-11-03 15:34:51 +0100 | [diff] [blame] | 963 | config SMBIOS_PARSER |
| 964 | bool "SMBIOS parser" |
| 965 | help |
| 966 | A simple parser for SMBIOS data. |
| 967 | |
Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 968 | source lib/efi/Kconfig |
Alexander Graf | 67ee705 | 2016-03-04 01:10:07 +0100 | [diff] [blame] | 969 | source lib/efi_loader/Kconfig |
Bryan O'Donoghue | 4b0de7c | 2018-03-13 16:50:27 +0000 | [diff] [blame] | 970 | source lib/optee/Kconfig |
Simon Glass | 9539e69 | 2015-07-31 09:31:36 -0600 | [diff] [blame] | 971 | |
Thierry Reding | 52c7f1f3 | 2019-03-21 19:10:04 +0100 | [diff] [blame] | 972 | config TEST_FDTDEC |
| 973 | bool "enable fdtdec test" |
| 974 | depends on OF_LIBFDT |
| 975 | |
AKASHI Takahiro | 51ba522 | 2019-11-13 09:44:49 +0900 | [diff] [blame] | 976 | config LIB_DATE |
| 977 | bool |
| 978 | |
Keerthy | 76f361a | 2020-02-12 13:55:03 +0530 | [diff] [blame] | 979 | config LIB_ELF |
| 980 | bool |
| 981 | help |
Patrick Delaunay | fb67df8 | 2021-01-04 15:33:28 +0100 | [diff] [blame] | 982 | Support basic elf loading/validating functions. |
| 983 | This supports for 32 bit and 64 bit versions. |
Keerthy | 76f361a | 2020-02-12 13:55:03 +0530 | [diff] [blame] | 984 | |
Patrick Delaunay | d62063d | 2021-03-10 10:16:25 +0100 | [diff] [blame] | 985 | config LMB |
| 986 | bool "Enable the logical memory blocks library (lmb)" |
Tom Rini | 5332012 | 2022-04-06 09:21:25 -0400 | [diff] [blame] | 987 | default y if ARC || ARM || M68K || MICROBLAZE || MIPS || \ |
Patrick Delaunay | d62063d | 2021-03-10 10:16:25 +0100 | [diff] [blame] | 988 | NIOS2 || PPC || RISCV || SANDBOX || SH || X86 || XTENSA |
| 989 | help |
| 990 | Support the library logical memory blocks. |
| 991 | |
Patrick Delaunay | 71cc9c5 | 2021-03-10 10:16:31 +0100 | [diff] [blame] | 992 | config LMB_USE_MAX_REGIONS |
Heinrich Schuchardt | c4bc918 | 2021-11-14 09:38:53 +0100 | [diff] [blame] | 993 | bool "Use a common number of memory and reserved regions in lmb lib" |
Patrick Delaunay | 71cc9c5 | 2021-03-10 10:16:31 +0100 | [diff] [blame] | 994 | depends on LMB |
| 995 | default y |
| 996 | help |
| 997 | Define the number of supported memory regions in the library logical |
| 998 | memory blocks. |
| 999 | This feature allow to reduce the lmb library size by using compiler |
| 1000 | optimization when LMB_MEMORY_REGIONS == LMB_RESERVED_REGIONS. |
Patrick Delaunay | cd831af | 2021-03-10 10:16:28 +0100 | [diff] [blame] | 1001 | |
| 1002 | config LMB_MAX_REGIONS |
| 1003 | int "Number of memory and reserved regions in lmb lib" |
Patrick Delaunay | 71cc9c5 | 2021-03-10 10:16:31 +0100 | [diff] [blame] | 1004 | depends on LMB && LMB_USE_MAX_REGIONS |
Patrick Delaunay | cd831af | 2021-03-10 10:16:28 +0100 | [diff] [blame] | 1005 | default 8 |
| 1006 | help |
| 1007 | Define the number of supported regions, memory and reserved, in the |
| 1008 | library logical memory blocks. |
Patrick Delaunay | 71cc9c5 | 2021-03-10 10:16:31 +0100 | [diff] [blame] | 1009 | |
| 1010 | config LMB_MEMORY_REGIONS |
| 1011 | int "Number of memory regions in lmb lib" |
| 1012 | depends on LMB && !LMB_USE_MAX_REGIONS |
| 1013 | default 8 |
| 1014 | help |
| 1015 | Define the number of supported memory regions in the library logical |
| 1016 | memory blocks. |
| 1017 | The minimal value is CONFIG_NR_DRAM_BANKS. |
| 1018 | |
| 1019 | config LMB_RESERVED_REGIONS |
| 1020 | int "Number of reserved regions in lmb lib" |
| 1021 | depends on LMB && !LMB_USE_MAX_REGIONS |
| 1022 | default 8 |
| 1023 | help |
| 1024 | Define the number of supported reserved regions in the library logical |
| 1025 | memory blocks. |
| 1026 | |
Eugen Hristev | db6bbcb | 2022-01-04 18:20:19 +0200 | [diff] [blame] | 1027 | endmenu |
Sughosh Ganu | 1cadae2 | 2022-10-21 18:16:03 +0530 | [diff] [blame] | 1028 | |
| 1029 | menu "FWU Multi Bank Updates" |
| 1030 | |
| 1031 | source lib/fwu_updates/Kconfig |
| 1032 | |
| 1033 | endmenu |