]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - lib/Kconfig
Add print_freq() to display frequencies nicely
[karo-tx-uboot.git] / lib / Kconfig
1 menu "Library routines"
2
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
11 config LIB_RAND
12         bool
13
14 config HAVE_PRIVATE_LIBGCC
15         bool
16
17 config USE_PRIVATE_LIBGCC
18         bool "Use private libgcc"
19         depends on HAVE_PRIVATE_LIBGCC
20         help
21           This option allows you to use the built-in libgcc implementation
22           of U-boot instead of the one privided by the compiler.
23           If unsure, say N.
24
25 config SYS_HZ
26         int
27         default 1000
28         help
29           The frequency of the timer returned by get_timer().
30           get_timer() must operate in milliseconds and this option must be
31           set to 1000.
32
33 config SYS_VSNPRINTF
34         bool "Enable safe version of sprintf()"
35         help
36           Since sprintf() can overflow its buffer, it is common to use
37           snprintf() instead, which knows the buffer size and can avoid
38           overflow. However, this does increase code size slightly (for
39           Thumb-2, about 420 bytes). Enable this option for safety when
40           using sprintf() with data you do not control.
41
42 source lib/rsa/Kconfig
43
44 menu "Hashing Support"
45
46 config SHA1
47         bool "Enable SHA1 support"
48         help
49           This option enables support of hashing using SHA1 algorithm.
50           The hash is calculated in software.
51           The SHA1 algorithm produces a 160-bit (20-byte) hash value
52           (digest).
53
54 config SHA256
55         bool "Enable SHA256 support"
56         help
57           This option enables support of hashing using SHA256 algorithm.
58           The hash is calculated in software.
59           The SHA256 algorithm produces a 256-bit (32-byte) hash value
60           (digest).
61
62 config SHA_HW_ACCEL
63         bool "Enable hashing using hardware"
64         help
65           This option enables hardware acceleration
66           for SHA1/SHA256 hashing.
67           This affects the 'hash' command and also the
68           hash_lookup_algo() function.
69
70 config SHA_PROG_HW_ACCEL
71         bool "Enable Progressive hashing support using hardware"
72         depends on SHA_HW_ACCEL
73         help
74           This option enables hardware-acceleration for
75           SHA1/SHA256 progressive hashing.
76           Data can be streamed in a block at a time and the hashing
77           is performed in hardware.
78 endmenu
79
80 endmenu