diff --git a/0048-add-loongarch64-support-for-openssl-3.0.11.patch b/0048-add-loongarch64-support-for-openssl-3.0.11.patch new file mode 100644 index 0000000000000000000000000000000000000000..7f4d769523519adc5694dbfbeb52087abbc085eb --- /dev/null +++ b/0048-add-loongarch64-support-for-openssl-3.0.11.patch @@ -0,0 +1,42 @@ +From 876774ec41aded4e426d791ca5ba16338eccb9ce Mon Sep 17 00:00:00 2001 +From: rpm-build +Date: Thu, 19 Oct 2023 03:41:46 +0000 +Subject: [PATCH] add loongarch64 support for openssl-3.0.9 + +--- + Configurations/10-main.conf | 6 ++++++ + util/perl/OpenSSL/config.pm | 1 + + 2 files changed, 7 insertions(+) + +diff --git a/Configurations/10-main.conf b/Configurations/10-main.conf +index 6bb6f5d..6776427 100644 +--- a/Configurations/10-main.conf ++++ b/Configurations/10-main.conf +@@ -775,6 +775,12 @@ my %targets = ( + perlasm_scheme => "linux64", + multilib => "64", + }, ++ "linux-loongarch64" => { ++ inherit_from => [ "linux-generic64" ], ++ asm_arch => 'loongarch64', ++ perlasm_scheme => "linux64", ++ multilib => "64", ++ }, + "linux-arm64ilp32" => { # https://wiki.linaro.org/Platform/arm64-ilp32 + inherit_from => [ "linux-generic32" ], + cflags => add("-mabi=ilp32"), +diff --git a/util/perl/OpenSSL/config.pm b/util/perl/OpenSSL/config.pm +index 1aa6768..f274fa1 100755 +--- a/util/perl/OpenSSL/config.pm ++++ b/util/perl/OpenSSL/config.pm +@@ -671,6 +671,7 @@ EOF + cxxflags => [ '-march=armv7-a' ] } ], + [ 'arm.*-.*-linux2', { target => "linux-armv4" } ], + [ 'aarch64-.*-linux2', { target => "linux-aarch64" } ], ++ [ 'loongarch64-.*-linux2', { target => "linux-loongarch64" } ], + [ 'sh.*b-.*-linux2', { target => "linux-generic32", + defines => [ 'B_ENDIAN' ] } ], + [ 'sh.*-.*-linux2', { target => "linux-generic32", +-- +2.40.1 + diff --git a/openssl.spec b/openssl.spec index c478fe3b3d161af9adf91799966517883b7d87e4..d916cac4c11e2c05f47647bd0b48583484407eaf 100644 --- a/openssl.spec +++ b/openssl.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global soversion 3 %define srpmhash() %{lua: @@ -97,6 +97,7 @@ Patch44: 0044-FIPS-RSA-disable-shake.patch Patch45: 0045-signature-Add-indicator-for-PSS-salt-length.patch Patch46: 0046-signature-Clamp-PSS-salt-len-to-MD-len.patch Patch47: 0047-FIPS-RSA-encapsulate.patch +Patch48: 0048-add-loongarch64-support-for-openssl-3.0.11.patch BuildRequires: gcc git coreutils perl-interpreter sed zlib-devel /usr/bin/cmp BuildRequires: lksctp-tools-devel @@ -298,6 +299,9 @@ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/pki/tls/{openssl.cnf.dist,ct_log_list.cnf.di %doc NEWS.md README.md %changelog +* Wed Oct 18 2023 Wenlong Zhang - 1:3.0.11-2 +- add loongarch64 support for openssl + * Tue Sep 19 2023 Funda Wang - 1:3.0.11-1 - New version 3.0.11