2c21256b27
At present when building host tools, we force CONFIG_SHAxxx to be enabled regardless of the board Kconfig setting. This is done in the image.h header file. For SPL we currently just assume the algorithm is desired if U-Boot proper enables it. Clean this up by adding new Kconfig options to enable hashing on the host, relying on CONFIG_IS_ENABLED() to deal with the different builds. Add new SPL Kconfigs for hardware-accelerated hashing, to maintain the current settings. This allows us to drop the image.h code and the I_WANT_MD5 hack. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Alexandru Gagniuc <mr.nuke.me@gmail.com>
74 lines
1.7 KiB
Plaintext
74 lines
1.7 KiB
Plaintext
menu "Tools options"
|
|
|
|
config MKIMAGE_DTC_PATH
|
|
string "Path to dtc binary for use within mkimage"
|
|
default "dtc"
|
|
help
|
|
The mkimage host tool will, in order to generate FIT images make
|
|
calls to the dtc application in order to create the output. In
|
|
some cases the system dtc may not support all required features
|
|
and the path to a different version should be given here.
|
|
|
|
config TOOLS_LIBCRYPTO
|
|
bool "Use OpenSSL's libcrypto library for host tools"
|
|
default y
|
|
help
|
|
Cryptographic signature, verification, and encryption of images is
|
|
provided by host tools using OpenSSL's libcrypto. Select 'n' here if
|
|
you wish to build host tools without OpenSSL. mkimage will not have
|
|
the ability to sign images.
|
|
This selection does not affect target features, such as runtime FIT
|
|
signature verification.
|
|
|
|
config TOOLS_FIT
|
|
def_bool y
|
|
help
|
|
Enable FIT support in the tools builds.
|
|
|
|
config TOOLS_FIT_FULL_CHECK
|
|
def_bool y
|
|
help
|
|
Do a full check of the FIT before using it in the tools builds
|
|
|
|
config TOOLS_FIT_PRINT
|
|
def_bool y
|
|
help
|
|
Print the content of the FIT verbosely in the tools builds
|
|
|
|
config TOOLS_FIT_SIGNATURE
|
|
def_bool y
|
|
help
|
|
Enable signature verification of FIT uImages in the tools builds
|
|
|
|
config TOOLS_FIT_SIGNATURE_MAX_SIZE
|
|
hex
|
|
depends on TOOLS_FIT_SIGNATURE
|
|
default 0x10000000
|
|
|
|
config TOOLS_MD5
|
|
def_bool y
|
|
help
|
|
Enable MD5 support in the tools builds
|
|
|
|
config TOOLS_SHA1
|
|
def_bool y
|
|
help
|
|
Enable SHA1 support in the tools builds
|
|
|
|
config TOOLS_SHA256
|
|
def_bool y
|
|
help
|
|
Enable SHA256 support in the tools builds
|
|
|
|
config TOOLS_SHA384
|
|
def_bool y
|
|
help
|
|
Enable SHA384 support in the tools builds
|
|
|
|
config TOOLS_SHA512
|
|
def_bool y
|
|
help
|
|
Enable SHA512 support in the tools builds
|
|
|
|
endmenu
|