lib: introduce HASH_CALCULATE option
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Thu, 13 May 2021 14:48:08 +0000 (23:48 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Tue, 18 May 2021 10:36:13 +0000 (12:36 +0200)
commit87316da05f2fd49d3709275e64ef0c5980366ade
treee7646764ed7fa8ada14d2494beeb449ff36ed656
parent48ee084602f90ad37e87ee7e356bf3938b584070
lib: introduce HASH_CALCULATE option

Build error occurs when CONFIG_EFI_SECURE_BOOT or
CONFIG_EFI_CAPSULE_AUTHENTICATE is enabled,
because hash-checksum.c is not compiled.

Since hash_calculate() implemented in hash-checksum.c can be
commonly used aside from FIT image signature verification,
this commit itroduces HASH_CALCULATE option to decide
if hash-checksum.c shall be compiled.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
common/Kconfig.boot
lib/Kconfig
lib/Makefile
lib/efi_loader/Kconfig