Signed-off-by: Gary Lin <g...@suse.com>
---
 .../11_fix_build_shaext.patch                 | 30 +++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 grub-core/lib/libgcrypt-patches/11_fix_build_shaext.patch

diff --git a/grub-core/lib/libgcrypt-patches/11_fix_build_shaext.patch 
b/grub-core/lib/libgcrypt-patches/11_fix_build_shaext.patch
new file mode 100644
index 000000000..c307fd0dd
--- /dev/null
+++ b/grub-core/lib/libgcrypt-patches/11_fix_build_shaext.patch
@@ -0,0 +1,30 @@
+From f04191c5921759df861ae1d48aeeb2733426a916 Mon Sep 17 00:00:00 2001
+From: Gary Lin <g...@suse.com>
+Date: Fri, 18 Jul 2025 15:34:21 +0800
+Subject: [PATCH 2/2] libgcrypt-grub: fix missing-prototypes error in
+ sha256-intel-shaext.c
+
+Signed-off-by: Gary Lin <g...@suse.com>
+---
+ grub-core/lib/libgcrypt-grub/cipher/sha256-intel-shaext.c | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/grub-core/lib/libgcrypt-grub/cipher/sha256-intel-shaext.c 
b/grub-core/lib/libgcrypt-grub/cipher/sha256-intel-shaext.c
+index 48c09eefe..7ec49f05e 100644
+--- a/grub-core/lib/libgcrypt-grub/cipher/sha256-intel-shaext.c
++++ b/grub-core/lib/libgcrypt-grub/cipher/sha256-intel-shaext.c
+@@ -95,6 +95,11 @@ typedef struct u128_s
+   u32 a, b, c, d;
+ } u128_t;
+ 
++
++unsigned int ASM_FUNC_ATTR
++_gcry_sha256_transform_intel_shaext(u32 state[8], const unsigned char *data,
++                                    size_t nblks);
++
+ /*
+  * Transform nblks*64 bytes (nblks*16 32-bit words) at DATA.
+  */
+-- 
+2.43.0
+
-- 
2.43.0


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
https://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to