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