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