blob: 0454a86a02511625eb0a8b4d41ce5a1e42baf0f4 [file] [log] [blame]
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +09001menu "Library routines"
2
Masahiro Yamada3f053fe2014-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 Yamada9520b712014-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 Yamadae301fa02014-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 Glass4f3b9d12015-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 Hershberger937d3e82015-04-21 17:02:42 -050039config 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
Ruchika Gupta4acd8c42015-01-23 16:01:56 +053047source lib/rsa/Kconfig
Ruchika Gupta2c3822e2015-01-23 16:01:51 +053048
gaurav ranaef201592015-02-20 12:51:46 +053049menu "Hashing Support"
50
51config SHA1
52 bool "Enable SHA1 support"
53 help
54 This option enables support of hashing using SHA1 algorithm.
55 The hash is calculated in software.
56 The SHA1 algorithm produces a 160-bit (20-byte) hash value
57 (digest).
58
59config SHA256
60 bool "Enable SHA256 support"
61 help
62 This option enables support of hashing using SHA256 algorithm.
63 The hash is calculated in software.
64 The SHA256 algorithm produces a 256-bit (32-byte) hash value
65 (digest).
66
67config SHA_HW_ACCEL
68 bool "Enable hashing using hardware"
69 help
70 This option enables hardware acceleration
71 for SHA1/SHA256 hashing.
72 This affects the 'hash' command and also the
73 hash_lookup_algo() function.
74
75config SHA_PROG_HW_ACCEL
76 bool "Enable Progressive hashing support using hardware"
77 depends on SHA_HW_ACCEL
78 help
79 This option enables hardware-acceleration for
80 SHA1/SHA256 progressive hashing.
81 Data can be streamed in a block at a time and the hashing
82 is performed in hardware.
83endmenu
84
Masahiro Yamadaf3e12b72014-09-16 16:32:58 +090085endmenu