aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.github/workflows/linux.yml6
-rw-r--r--configure.ac2
-rw-r--r--crypto/Makefile.am2
-rwxr-xr-xscripts/test9
4 files changed, 19 insertions, 0 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index ad13ed8..4fbe987 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -35,6 +35,9 @@ jobs:
35 - os: "ubuntu-24.04" # loong64 35 - os: "ubuntu-24.04" # loong64
36 arch: "loong64" 36 arch: "loong64"
37 compiler: "gcc" 37 compiler: "gcc"
38 - os: "ubuntu-24.04"
39 arch: "riscv64"
40 compiler: "gcc"
38 - os: "ubuntu-24.04-arm" 41 - os: "ubuntu-24.04-arm"
39 arch: "native" 42 arch: "native"
40 compiler: "gcc" 43 compiler: "gcc"
@@ -68,6 +71,9 @@ jobs:
68 mips64) 71 mips64)
69 packages+=(qemu-user-static binfmt-support g++-mips64el-linux-gnuabi64) 72 packages+=(qemu-user-static binfmt-support g++-mips64el-linux-gnuabi64)
70 ;; 73 ;;
74 riscv64)
75 packages+=(qemu-user-static binfmt-support g++-riscv64-linux-gnu)
76 ;;
71 esac 77 esac
72 sudo apt-get update 78 sudo apt-get update
73 sudo apt-get install -y "${packages[@]}" 79 sudo apt-get install -y "${packages[@]}"
diff --git a/configure.ac b/configure.ac
index 23f0c38..c10a33f 100644
--- a/configure.ac
+++ b/configure.ac
@@ -136,6 +136,8 @@ AM_CONDITIONAL([HOST_ASM_ELF_MIPS],
136 [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "mips" -a "x$enable_asm" != "xno"]) 136 [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "mips" -a "x$enable_asm" != "xno"])
137AM_CONDITIONAL([HOST_ASM_ELF_MIPS64], 137AM_CONDITIONAL([HOST_ASM_ELF_MIPS64],
138 [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "mips64" -a "x$enable_asm" != "xno"]) 138 [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "mips64" -a "x$enable_asm" != "xno"])
139AM_CONDITIONAL([HOST_ASM_ELF_RISCV64],
140 [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "riscv64" -a "x$enable_asm" != "xno"])
139AM_CONDITIONAL([HOST_ASM_ELF_X86_64], 141AM_CONDITIONAL([HOST_ASM_ELF_X86_64],
140 [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"]) 142 [test "x$HOST_ABI" = "xelf" -a "$host_cpu" = "x86_64" -a "x$enable_asm" != "xno"])
141AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64], 143AM_CONDITIONAL([HOST_ASM_MACOSX_X86_64],
diff --git a/crypto/Makefile.am b/crypto/Makefile.am
index 7969aee..a4a717d 100644
--- a/crypto/Makefile.am
+++ b/crypto/Makefile.am
@@ -212,6 +212,7 @@ include Makefile.am.mingw64-x86_64
212if !HOST_ASM_ELF_AARCH64 212if !HOST_ASM_ELF_AARCH64
213if !HOST_ASM_ELF_MIPS 213if !HOST_ASM_ELF_MIPS
214if !HOST_ASM_ELF_MIPS64 214if !HOST_ASM_ELF_MIPS64
215if !HOST_ASM_ELF_RISCV64
215if !HOST_ASM_ELF_X86_64 216if !HOST_ASM_ELF_X86_64
216if !HOST_ASM_MACOSX_X86_64 217if !HOST_ASM_MACOSX_X86_64
217if !HOST_ASM_MASM_X86_64 218if !HOST_ASM_MASM_X86_64
@@ -224,6 +225,7 @@ endif
224endif 225endif
225endif 226endif
226endif 227endif
228endif
227 229
228if HOST_AARCH64 230if HOST_AARCH64
229if HOST_DARWIN 231if HOST_DARWIN
diff --git a/scripts/test b/scripts/test
index 0e84b22..7e64bf1 100755
--- a/scripts/test
+++ b/scripts/test
@@ -161,6 +161,15 @@ elif [ "$ARCH" = "loong64" ]; then
161 161
162 file apps/openssl/openssl 162 file apps/openssl/openssl
163 163
164elif [ "$ARCH" = "riscv64" ]; then
165 sudo ln -sf /usr/riscv64-linux-gnu/lib/ld-linux-riscv64-lp64d.so.1 /lib/
166 setup_cross_compiler riscv64-linux-gnu
167
168 ./configure --host=riscv64-linux-gnu
169 LD_LIBRARY_PATH=/usr/riscv64-linux-gnu/lib make -j 4 check
170
171 file apps/openssl/openssl
172
164elif [ "$ARCH" = "mips32" ] || [ "$ARCH" = "mips64" ]; then 173elif [ "$ARCH" = "mips32" ] || [ "$ARCH" = "mips64" ]; then
165 if [ "$ARCH" = "mips32" ]; then 174 if [ "$ARCH" = "mips32" ]; then
166 sudo ln -sf /usr/mips-linux-gnu/lib/ld.so.1 /lib/ 175 sudo ln -sf /usr/mips-linux-gnu/lib/ld.so.1 /lib/