From 031c2f1722f9af10299de3d22ff3c1467d541241 Mon Sep 17 00:00:00 2001 From: "Ivan A. Melnikov" Date: Thu, 10 Apr 2025 17:09:19 +0400 Subject: 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 --- ssl/CMakeLists.txt | 2 ++ ssl/Makefile.am | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'ssl') 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) target_include_directories(ssl_obj PRIVATE ../crypto/arch/arm/) elseif(HOST_I386) target_include_directories(ssl_obj PRIVATE ../crypto/arch/i386/) +elseif(HOST_LOONGARCH64) + target_include_directories(ssl_obj PRIVATE ../crypto/arch/loongarch64) elseif(HOST_MIPS64) target_include_directories(ssl_obj PRIVATE ../crypto/arch/mips64) 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/ endif noinst_HEADERS += $(top_srcdir)/crypto/arch/i386/crypto_arch.h +if HOST_LOONGARCH64 +libssl_la_CPPFLAGS += -I$(top_srcdir)/crypto/arch/loongarch64/ +endif +noinst_HEADERS += $(top_srcdir)/crypto/arch/loongarch64/crypto_arch.h + # XXX - do we still need this? if HOST_MIPS endif -- cgit v1.2.3-55-g6feb