[PATCH] Rname CONFIG_SPL_FIT_SHAxxx to CONFIG_SPL_SHAxxx

Chia-Wei Wang chiawei_wang at aspeedtech.com
Fri Jul 30 03:21:21 CEST 2021


Rename these options to align the use in common/image-fit.c

	else if (CONFIG_IS_ENABLED(SHA1) && strcmp(algo, "sha1") == 0)
	...
	else if (CONFIG_IS_ENABLED(SHA256) && strcmp(algo, "sha256") == 0)
	...
	else if (CONFIG_IS_ENABLED(SHA384) && strcmp(algo, "sha384") == 0)
	...
	else if (CONFIG_IS_ENABLED(SHA512) && strcmp(algo, "sha512") == 0)
	...

Signed-off-by: Chia-Wei Wang <chiawei_wang at aspeedtech.com>
---
 common/spl/Kconfig | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/common/spl/Kconfig b/common/spl/Kconfig
index 9552ed4911..67e0345906 100644
--- a/common/spl/Kconfig
+++ b/common/spl/Kconfig
@@ -439,7 +439,7 @@ config SPL_MD5
 	  applications where images may be changed maliciously, you should
 	  consider SHA256 or SHA384.
 
-config SPL_FIT_SHA1
+config SPL_SHA1
 	bool "Support SHA1"
 	depends on SPL_FIT
 	select SHA1
@@ -451,7 +451,7 @@ config SPL_FIT_SHA1
 	  due to the expanding computing power available to brute-force
 	  attacks. For more security, consider SHA256 or SHA384.
 
-config SPL_FIT_SHA256
+config SPL_SHA256
 	bool "Support SHA256"
 	depends on SPL_FIT
 	select SHA256
@@ -460,7 +460,7 @@ config SPL_FIT_SHA256
 	  checksum is a 256-bit (32-byte) hash value used to check that the
 	  image contents have not been corrupted.
 
-config SPL_FIT_SHA384
+config SPL_SHA384
 	bool "Support SHA384"
 	depends on SPL_FIT
 	select SHA384
@@ -471,7 +471,7 @@ config SPL_FIT_SHA384
 	  image contents have not been corrupted. Use this for the highest
 	  security.
 
-config SPL_FIT_SHA512
+config SPL_SHA512
 	bool "Support SHA512"
 	depends on SPL_FIT
 	select SHA512
-- 
2.17.1



More information about the U-Boot mailing list