[PATCH 03/19] spl: Avoid including hash algorithms which are not wanted
Simon Glass
sjg at chromium.org
Wed Sep 25 14:55:29 CEST 2024
Update the build rule so that hash algorithms are only included in an
SPL build if they are requested. This helps to reduce code size.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
lib/Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/lib/Makefile b/lib/Makefile
index 9478257e634..c29d03d4c6e 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -76,9 +76,9 @@ obj-$(CONFIG_ECDSA) += ecdsa/
obj-$(CONFIG_$(SPL_)RSA) += rsa/
obj-$(CONFIG_HASH) += hash-checksum.o
obj-$(CONFIG_BLAKE2) += blake2/blake2b.o
-obj-$(CONFIG_$(SPL_)SHA1) += sha1.o
-obj-$(CONFIG_$(SPL_)SHA256) += sha256.o
-obj-$(CONFIG_$(SPL_)SHA512) += sha512.o
+obj-$(CONFIG_$(SPL_TPL_)SHA1) += sha1.o
+obj-$(CONFIG_$(SPL_TPL_)SHA256) += sha256.o
+obj-$(CONFIG_$(SPL_TPL_)SHA512) += sha512.o
obj-$(CONFIG_CRYPT_PW) += crypt/
obj-$(CONFIG_$(SPL_)ASN1_DECODER) += asn1_decoder.o
--
2.43.0
More information about the U-Boot
mailing list