[PATCH v2 2/3] PBL: rename sha256.c to generic sha.c

Michael Tretter m.tretter at pengutronix.de
Wed Sep 30 01:28:56 PDT 2026


Remove the references to SHA-256 to avoid name confusion when adding
support for SHA-512 and SHA-384.

Signed-off-by: Michael Tretter <m.tretter at pengutronix.de>

---
Changes in v2:
- New patch
---
 pbl/Makefile            | 2 +-
 pbl/{sha256.c => sha.c} | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/pbl/Makefile b/pbl/Makefile
index 9cbd4816402c..bef313df10cc 100644
--- a/pbl/Makefile
+++ b/pbl/Makefile
@@ -7,7 +7,7 @@ pbl-$(CONFIG_PBL_CONSTRUCTORS) += ctors.o
 pbl-y += misc.o
 pbl-y += string.o
 pbl-y += malloc.o
-pbl-y += sha256.o
+pbl-y += sha.o
 pbl-$(CONFIG_HAVE_IMAGE_COMPRESSION) += decomp.o
 pbl-$(CONFIG_LIBFDT) += fdt.o
 pbl-$(CONFIG_PBL_CONSOLE) += console.o
diff --git a/pbl/sha256.c b/pbl/sha.c
similarity index 87%
rename from pbl/sha256.c
rename to pbl/sha.c
index 04cc64a77d85..f08e554ea4c8 100644
--- a/pbl/sha256.c
+++ b/pbl/sha.c
@@ -1,6 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-only
 /*
- * pbl_sha256() - one-shot SHA-256 for the PBL, picking the best available
+ * pbl_sha*() - one-shot SHA functions for the PBL, picking the best available
  * implementation.
  */
 

-- 
2.47.3




More information about the barebox mailing list