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