14 Star 0 Fork 12

ocs-commit/openssl

forked from OpenCloudOS Stream/openssl 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
0048-add-loongarch64-support-for-openssl-3.0.11.patch 1.63 KB
一键复制 编辑 原始数据 按行查看 历史
From 876774ec41aded4e426d791ca5ba16338eccb9ce Mon Sep 17 00:00:00 2001
From: rpm-build <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
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ocs-commit/openssl.git
git@gitee.com:ocs-commit/openssl.git
ocs-commit
openssl
openssl
master

搜索帮助