]>
Commit | Line | Data |
---|---|---|
ed36323f MY |
1 | menu "Library routines" |
2 | ||
b0928da6 MY |
3 | config CC_OPTIMIZE_LIBS_FOR_SPEED |
4 | bool "Optimize libraries for speed" | |
5 | help | |
6 | Enabling this option will pass "-O2" to gcc when compiling | |
7 | under "lib" directory. | |
8 | ||
9 | If unsure, say N. | |
10 | ||
45ccec8f MY |
11 | config HAVE_PRIVATE_LIBGCC |
12 | bool | |
13 | ||
14 | config USE_PRIVATE_LIBGCC | |
15 | bool "Use private libgcc" | |
16 | depends on HAVE_PRIVATE_LIBGCC | |
17 | help | |
18 | This option allows you to use the built-in libgcc implementation | |
19 | of U-boot instead of the one privided by the compiler. | |
20 | If unsure, say N. | |
21 | ||
8c688bc4 MY |
22 | config SYS_HZ |
23 | int | |
24 | default 1000 | |
25 | help | |
26 | The frequency of the timer returned by get_timer(). | |
27 | get_timer() must operate in milliseconds and this option must be | |
28 | set to 1000. | |
29 | ||
8156345d SG |
30 | config SYS_VSNPRINTF |
31 | bool "Enable safe version of sprintf()" | |
32 | help | |
33 | Since sprintf() can overflow its buffer, it is common to use | |
34 | snprintf() instead, which knows the buffer size and can avoid | |
35 | overflow. However, this does increase code size slightly (for | |
36 | Thumb-2, about 420 bytes). Enable this option for safety when | |
37 | using sprintf() with data you do not control. | |
38 | ||
1a60650c JH |
39 | config REGEX |
40 | bool "Enable regular expression support" | |
41 | help | |
42 | If this variable is defined, U-Boot is linked against the | |
43 | SLRE (Super Light Regular Expression) library, which adds | |
44 | regex support to some commands, for example "env grep" and | |
45 | "setexpr". | |
46 | ||
9ba9e85f | 47 | config LIB_RAND |
3850dbe8 MY |
48 | bool "Pseudo-random library support " |
49 | help | |
50 | This library provides pseudo-random number generator functions. | |
9ba9e85f | 51 | |
d9f23c7f | 52 | source lib/rsa/Kconfig |
c4beb22f | 53 | |
94e3c8c4 | 54 | menu "Hashing Support" |
55 | ||
56 | config SHA1 | |
57 | bool "Enable SHA1 support" | |
58 | help | |
59 | This option enables support of hashing using SHA1 algorithm. | |
60 | The hash is calculated in software. | |
61 | The SHA1 algorithm produces a 160-bit (20-byte) hash value | |
62 | (digest). | |
63 | ||
64 | config SHA256 | |
65 | bool "Enable SHA256 support" | |
66 | help | |
67 | This option enables support of hashing using SHA256 algorithm. | |
68 | The hash is calculated in software. | |
69 | The SHA256 algorithm produces a 256-bit (32-byte) hash value | |
70 | (digest). | |
71 | ||
72 | config SHA_HW_ACCEL | |
73 | bool "Enable hashing using hardware" | |
74 | help | |
75 | This option enables hardware acceleration | |
76 | for SHA1/SHA256 hashing. | |
77 | This affects the 'hash' command and also the | |
78 | hash_lookup_algo() function. | |
79 | ||
80 | config SHA_PROG_HW_ACCEL | |
81 | bool "Enable Progressive hashing support using hardware" | |
82 | depends on SHA_HW_ACCEL | |
83 | help | |
84 | This option enables hardware-acceleration for | |
85 | SHA1/SHA256 progressive hashing. | |
86 | Data can be streamed in a block at a time and the hashing | |
87 | is performed in hardware. | |
88 | endmenu | |
89 | ||
6501ff62 PM |
90 | config ERRNO_STR |
91 | bool "Enable function for getting errno-related string message" | |
92 | help | |
93 | The function errno_str(int errno), returns a pointer to the errno | |
94 | corresponding text message: | |
95 | - if errno is null or positive number - a pointer to "Success" message | |
96 | - if errno is negative - a pointer to errno related message | |
97 | ||
ed36323f | 98 | endmenu |