diff options
author | Ivan A. Melnikov <iv@altlinux.org> | 2025-04-10 17:09:19 +0400 |
---|---|---|
committer | Ivan A. Melnikov <iv@altlinux.org> | 2025-04-10 17:22:36 +0400 |
commit | 031c2f1722f9af10299de3d22ff3c1467d541241 (patch) | |
tree | 133fe82cb89fb529da105e88ae2bc9dd1a289c37 /ssl | |
parent | 16db162e6c571138f0bb2f87bf225ba46baef1bb (diff) | |
download | portable-031c2f1722f9af10299de3d22ff3c1467d541241.tar.gz portable-031c2f1722f9af10299de3d22ff3c1467d541241.tar.bz2 portable-031c2f1722f9af10299de3d22ff3c1467d541241.zip |
Basic loongarch64 support
Just wire things up to make the project buildable
on LoongArch64.
opensslconf.h is taken form riscv64 folder as is,
and is the same as on some other 64 bit architectures.
Refs: https://github.com/libressl/portable/issues/1123
Signed-off-by: Ivan A. Melnikov <iv@altlinux.org>
Diffstat (limited to 'ssl')
-rw-r--r-- | ssl/CMakeLists.txt | 2 | ||||
-rw-r--r-- | ssl/Makefile.am | 5 |
2 files changed, 7 insertions, 0 deletions
diff --git a/ssl/CMakeLists.txt b/ssl/CMakeLists.txt index bdcfbb2..5baa5bc 100644 --- a/ssl/CMakeLists.txt +++ b/ssl/CMakeLists.txt | |||
@@ -117,6 +117,8 @@ elseif(HOST_ARM) | |||
117 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/arm/) | 117 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/arm/) |
118 | elseif(HOST_I386) | 118 | elseif(HOST_I386) |
119 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/i386/) | 119 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/i386/) |
120 | elseif(HOST_LOONGARCH64) | ||
121 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/loongarch64) | ||
120 | elseif(HOST_MIPS64) | 122 | elseif(HOST_MIPS64) |
121 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/mips64) | 123 | target_include_directories(ssl_obj PRIVATE ../crypto/arch/mips64) |
122 | elseif(HOST_MIPS) | 124 | elseif(HOST_MIPS) |
diff --git a/ssl/Makefile.am b/ssl/Makefile.am index f9a66a3..8beb65a 100644 --- a/ssl/Makefile.am +++ b/ssl/Makefile.am | |||
@@ -131,6 +131,11 @@ libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/i386/ | |||
131 | endif | 131 | endif |
132 | noinst_HEADERS += $(top_srcdir)/crypto/arch/i386/crypto_arch.h | 132 | noinst_HEADERS += $(top_srcdir)/crypto/arch/i386/crypto_arch.h |
133 | 133 | ||
134 | if HOST_LOONGARCH64 | ||
135 | libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/loongarch64/ | ||
136 | endif | ||
137 | noinst_HEADERS += $(top_srcdir)/crypto/arch/loongarch64/crypto_arch.h | ||
138 | |||
134 | # XXX - do we still need this? | 139 | # XXX - do we still need this? |
135 | if HOST_MIPS | 140 | if HOST_MIPS |
136 | endif | 141 | endif |