1ed36323fSMasahiro Yamadamenu "Library routines" 2ed36323fSMasahiro Yamada 3b0928da6SMasahiro Yamadaconfig CC_OPTIMIZE_LIBS_FOR_SPEED 4b0928da6SMasahiro Yamada bool "Optimize libraries for speed" 5b0928da6SMasahiro Yamada help 6b0928da6SMasahiro Yamada Enabling this option will pass "-O2" to gcc when compiling 7b0928da6SMasahiro Yamada under "lib" directory. 8b0928da6SMasahiro Yamada 9b0928da6SMasahiro Yamada If unsure, say N. 10b0928da6SMasahiro Yamada 1145ccec8fSMasahiro Yamadaconfig HAVE_PRIVATE_LIBGCC 1245ccec8fSMasahiro Yamada bool 1345ccec8fSMasahiro Yamada 1445ccec8fSMasahiro Yamadaconfig USE_PRIVATE_LIBGCC 1545ccec8fSMasahiro Yamada bool "Use private libgcc" 1645ccec8fSMasahiro Yamada depends on HAVE_PRIVATE_LIBGCC 1745ccec8fSMasahiro Yamada help 1845ccec8fSMasahiro Yamada This option allows you to use the built-in libgcc implementation 1945ccec8fSMasahiro Yamada of U-boot instead of the one privided by the compiler. 2045ccec8fSMasahiro Yamada If unsure, say N. 2145ccec8fSMasahiro Yamada 228c688bc4SMasahiro Yamadaconfig SYS_HZ 238c688bc4SMasahiro Yamada int 248c688bc4SMasahiro Yamada default 1000 258c688bc4SMasahiro Yamada help 268c688bc4SMasahiro Yamada The frequency of the timer returned by get_timer(). 278c688bc4SMasahiro Yamada get_timer() must operate in milliseconds and this option must be 288c688bc4SMasahiro Yamada set to 1000. 298c688bc4SMasahiro Yamada 30*8156345dSSimon Glassconfig SYS_VSNPRINTF 31*8156345dSSimon Glass bool "Enable safe version of sprintf()" 32*8156345dSSimon Glass help 33*8156345dSSimon Glass Since sprintf() can overflow its buffer, it is common to use 34*8156345dSSimon Glass snprintf() instead, which knows the buffer size and can avoid 35*8156345dSSimon Glass overflow. However, this does increase code size slightly (for 36*8156345dSSimon Glass Thumb-2, about 420 bytes). Enable this option for safety when 37*8156345dSSimon Glass using sprintf() with data you do not control. 38*8156345dSSimon Glass 39d9f23c7fSRuchika Guptasource lib/rsa/Kconfig 40c4beb22fSRuchika Gupta 4194e3c8c4Sgaurav ranamenu "Hashing Support" 4294e3c8c4Sgaurav rana 4394e3c8c4Sgaurav ranaconfig SHA1 4494e3c8c4Sgaurav rana bool "Enable SHA1 support" 4594e3c8c4Sgaurav rana help 4694e3c8c4Sgaurav rana This option enables support of hashing using SHA1 algorithm. 4794e3c8c4Sgaurav rana The hash is calculated in software. 4894e3c8c4Sgaurav rana The SHA1 algorithm produces a 160-bit (20-byte) hash value 4994e3c8c4Sgaurav rana (digest). 5094e3c8c4Sgaurav rana 5194e3c8c4Sgaurav ranaconfig SHA256 5294e3c8c4Sgaurav rana bool "Enable SHA256 support" 5394e3c8c4Sgaurav rana help 5494e3c8c4Sgaurav rana This option enables support of hashing using SHA256 algorithm. 5594e3c8c4Sgaurav rana The hash is calculated in software. 5694e3c8c4Sgaurav rana The SHA256 algorithm produces a 256-bit (32-byte) hash value 5794e3c8c4Sgaurav rana (digest). 5894e3c8c4Sgaurav rana 5994e3c8c4Sgaurav ranaconfig SHA_HW_ACCEL 6094e3c8c4Sgaurav rana bool "Enable hashing using hardware" 6194e3c8c4Sgaurav rana help 6294e3c8c4Sgaurav rana This option enables hardware acceleration 6394e3c8c4Sgaurav rana for SHA1/SHA256 hashing. 6494e3c8c4Sgaurav rana This affects the 'hash' command and also the 6594e3c8c4Sgaurav rana hash_lookup_algo() function. 6694e3c8c4Sgaurav rana 6794e3c8c4Sgaurav ranaconfig SHA_PROG_HW_ACCEL 6894e3c8c4Sgaurav rana bool "Enable Progressive hashing support using hardware" 6994e3c8c4Sgaurav rana depends on SHA_HW_ACCEL 7094e3c8c4Sgaurav rana help 7194e3c8c4Sgaurav rana This option enables hardware-acceleration for 7294e3c8c4Sgaurav rana SHA1/SHA256 progressive hashing. 7394e3c8c4Sgaurav rana Data can be streamed in a block at a time and the hashing 7494e3c8c4Sgaurav rana is performed in hardware. 7594e3c8c4Sgaurav ranaendmenu 7694e3c8c4Sgaurav rana 77ed36323fSMasahiro Yamadaendmenu 78