From 647ca1717b2ebc7906bc20ead58d0496671b45c9 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Thu, 19 Oct 2023 07:27:14 +0000 Subject: [PATCH] add loongarch64 support for openssl1.1.1q --- ...oongarch64-support-for-openssl1.1.1q.patch | 28 +++++++++++++++++++ openssl1.1.spec | 7 ++++- 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 add-loongarch64-support-for-openssl1.1.1q.patch diff --git a/add-loongarch64-support-for-openssl1.1.1q.patch b/add-loongarch64-support-for-openssl1.1.1q.patch new file mode 100644 index 0000000..9e90c73 --- /dev/null +++ b/add-loongarch64-support-for-openssl1.1.1q.patch @@ -0,0 +1,28 @@ +From 1fe8d7bb63eb67fe49e0de28567570f6a12f0e3f Mon Sep 17 00:00:00 2001 +From: Wenlong Zhang +Date: Thu, 19 Oct 2023 07:08:47 +0000 +Subject: [PATCH] add loongarch64 support for openssl1.1.1q + +--- + Configurations/10-main.conf | 5 +++++ + 1 file changed, 5 insertions(+) + +diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf +index 6fc626d..2b2aaa4 100644 +--- a/Configurations/10-main.conf ++++ b/Configurations/10-main.conf +@@ -762,6 +762,11 @@ my %targets = ( + inherit_from => [ "linux-generic64"], + perlasm_scheme => "linux64", + }, ++ "linux-loongarch64" => { ++ inherit_from => [ "linux-generic64" ], ++ perlasm_scheme => "linux64", ++ multilib => "64", ++ }, + + #### IA-32 targets... + #### These two targets are a bit aged and are to be used on older Linux +-- +2.40.1 + diff --git a/openssl1.1.spec b/openssl1.1.spec index c72bb4f..d12a41a 100644 --- a/openssl1.1.spec +++ b/openssl1.1.spec @@ -1,4 +1,4 @@ -%define anolis_release 2 +%define anolis_release 3 %bcond_without devel %define soversion 1.1 %global _performance_build 1 @@ -65,6 +65,7 @@ Patch1066: openssl-1.1.1-fips-dh.patch Patch1067: openssl-1.1.1-kdf-selftest.patch Patch1069: openssl-1.1.1-alpn-cb.patch Patch1070: openssl-1.1.1-rewire-fips-drbg.patch +Patch1071: add-loongarch64-support-for-openssl1.1.1q.patch Patch1052: openssl-1.1.1-s390x-update.patch Patch1053: openssl-1.1.1-fips-crng-test.patch @@ -140,6 +141,7 @@ cp %{SOURCE3} test/ %patch1067 -p1 -b .kdf-selftest %patch1069 -p1 -b .alpn-cb %patch1070 -p1 -b .rewire-fips-drbg +%patch1071 -p1 %build @@ -273,6 +275,9 @@ rm -rf %{buildroot}/%{_libdir}/pkgconfig %ldconfig_scriptlets %changelog +* Wed Oct 18 2023 Wenlong Zhang - 1:1.1.1q-3 +- add loongarch64 support for openssl + * Tue Apr 11 2023 Ziyang Zhang -1:1.1.1q-2 - Optimize spec file -- Gitee