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