From 87316da05f2fd49d3709275e64ef0c5980366ade Mon Sep 17 00:00:00 2001 From: Masahisa Kojima Date: Thu, 13 May 2021 23:48:08 +0900 Subject: 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 Reviewed-by: Heinrich Schuchardt --- common/Kconfig.boot | 1 + 1 file changed, 1 insertion(+) (limited to 'common') diff --git a/common/Kconfig.boot b/common/Kconfig.boot index 5a18d62d780..56608226cc6 100644 --- a/common/Kconfig.boot +++ b/common/Kconfig.boot @@ -80,6 +80,7 @@ config FIT_SIGNATURE select RSA_VERIFY select IMAGE_SIGN_INFO select FIT_FULL_CHECK + select HASH_CALCULATE help This option enables signature verification of FIT uImages, using a hash signed and verified using RSA. If -- cgit v1.2.3