blob: c98d3997b7dec85e51a2461601fe85fb20a2c22a [file] [log] [blame]
Masahiro Yamadaed363232014-09-16 16:32:58 +09001menu "Library routines"
2
Masahiro Yamadab0928da2014-09-16 16:32:59 +09003config 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
Masahiro Yamada45ccec82014-10-24 01:30:43 +090011config HAVE_PRIVATE_LIBGCC
12 bool
13
14config 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
Masahiro Yamada8c688bc2014-10-24 01:30:40 +090022config 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
Simon Glass81563452015-03-06 13:19:02 -070030config 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
Joe Hershberger1a606502015-04-21 17:02:42 -050039config REGEX
40 bool "Enable regular expression support"
Joe Hershbergerf7848d92015-06-22 17:57:36 -050041 default y if NET
Joe Hershberger1a606502015-04-21 17:02:42 -050042 help
43 If this variable is defined, U-Boot is linked against the
44 SLRE (Super Light Regular Expression) library, which adds
45 regex support to some commands, for example "env grep" and
46 "setexpr".
47
Michal Simek9ba9e852015-05-25 11:37:22 +020048config LIB_RAND
Masahiro Yamada3850dbe2015-06-11 19:16:43 +090049 bool "Pseudo-random library support "
50 help
51 This library provides pseudo-random number generator functions.
Michal Simek9ba9e852015-05-25 11:37:22 +020052
Ruchika Guptad9f23c72015-01-23 16:01:56 +053053source lib/rsa/Kconfig
Ruchika Guptac4beb222015-01-23 16:01:51 +053054
gaurav rana94e3c8c2015-02-20 12:51:46 +053055menu "Hashing Support"
56
57config SHA1
58 bool "Enable SHA1 support"
59 help
60 This option enables support of hashing using SHA1 algorithm.
61 The hash is calculated in software.
62 The SHA1 algorithm produces a 160-bit (20-byte) hash value
63 (digest).
64
65config SHA256
66 bool "Enable SHA256 support"
67 help
68 This option enables support of hashing using SHA256 algorithm.
69 The hash is calculated in software.
70 The SHA256 algorithm produces a 256-bit (32-byte) hash value
71 (digest).
72
73config SHA_HW_ACCEL
74 bool "Enable hashing using hardware"
75 help
76 This option enables hardware acceleration
77 for SHA1/SHA256 hashing.
78 This affects the 'hash' command and also the
79 hash_lookup_algo() function.
80
81config SHA_PROG_HW_ACCEL
82 bool "Enable Progressive hashing support using hardware"
83 depends on SHA_HW_ACCEL
84 help
85 This option enables hardware-acceleration for
86 SHA1/SHA256 progressive hashing.
87 Data can be streamed in a block at a time and the hashing
88 is performed in hardware.
89endmenu
90
Przemyslaw Marczak6501ff62015-04-20 20:07:40 +020091config ERRNO_STR
92 bool "Enable function for getting errno-related string message"
93 help
94 The function errno_str(int errno), returns a pointer to the errno
95 corresponding text message:
96 - if errno is null or positive number - a pointer to "Success" message
97 - if errno is negative - a pointer to errno related message
98
Masahiro Yamadaed363232014-09-16 16:32:58 +090099endmenu