mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-22 15:22:39 +00:00
libgcrypt: Copy sha256 x86_64 assembly files
Copy the selected x86_64 assembly files to support hardware acceleration for sha256. Signed-off-by: Gary Lin <glin@suse.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
1 parent
8423176f1f
commit
7f9c590aff
1 file changed
+7
@@ -52,6 +52,13 @@ for x in mpi-asm-defs.h mpih-add1.c mpih-sub1.c mpih-mul1.c mpih-mul2.c mpih-mul
|
|||||||
cp grub-core/lib/libgcrypt-grub/mpi/generic/"$x" grub-core/lib/libgcrypt-grub/mpi/"$x"
|
cp grub-core/lib/libgcrypt-grub/mpi/generic/"$x" grub-core/lib/libgcrypt-grub/mpi/"$x"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
for x in sha256-ssse3-amd64.S sha256-avx-amd64.S sha256-avx2-bmi2-amd64.S sha256-intel-shaext.c; do
|
||||||
|
if [ -h grub-core/lib/libgcrypt-grub/cipher/"$x" ] || [ -f grub-core/lib/libgcrypt-grub/cipher/"$x" ]; then
|
||||||
|
rm grub-core/lib/libgcrypt-grub/cipher/"$x"
|
||||||
|
fi
|
||||||
|
cp grub-core/lib/libgcrypt/cipher/"$x" grub-core/lib/libgcrypt-grub/cipher/"$x"
|
||||||
|
done
|
||||||
|
|
||||||
for x in grub-core/lib/libgcrypt-patches/*.patch; do
|
for x in grub-core/lib/libgcrypt-patches/*.patch; do
|
||||||
patch -i $x -p1
|
patch -i $x -p1
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in new issue
Block a user