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