aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo Buehler <tb@openbsd.org>2026-08-29 10:14:32 +0200
committerTheo Buehler <tb@openbsd.org>2026-08-29 10:14:32 +0200
commit734804d5849c32d0f780ee33dea29142b07af40f (patch)
treeaf3af27d14741acb67c3d10c1d6e7ffbcb0cc35a
parentf484ff53407f38c2c0599274dae19ab47dc5dc8a (diff)
parent6ec7b45100067b151b76061eb737fa70b3fb47d5 (diff)
downloadportable-734804d5849c32d0f780ee33dea29142b07af40f.tar.gz
portable-734804d5849c32d0f780ee33dea29142b07af40f.tar.bz2
portable-734804d5849c32d0f780ee33dea29142b07af40f.zip
Enable MIPS64 asm in CI
-rw-r--r--configure.ac2
-rw-r--r--crypto/Makefile.am.elf-mips6412
-rwxr-xr-xscripts/test3
3 files changed, 9 insertions, 8 deletions
diff --git a/configure.ac b/configure.ac
index c10a33f..12703dd 100644
--- a/configure.ac
+++ b/configure.ac
@@ -94,7 +94,7 @@ AS_CASE([$host_cpu],
94 [*arm*], [host_cpu=arm], 94 [*arm*], [host_cpu=arm],
95 [*amd64*], [host_cpu=x86_64 HOSTARCH=intel], 95 [*amd64*], [host_cpu=x86_64 HOSTARCH=intel],
96 [i?86], [host_cpu=i386 HOSTARCH=intel enable_asm=no], 96 [i?86], [host_cpu=i386 HOSTARCH=intel enable_asm=no],
97 [mips64*], [host_cpu=mips64 enable_asm=no], 97 [mips64*], [host_cpu=mips64 enable_asm=${enable_asm-no}],
98 [mips*], [host_cpu=mips enable_asm=no], 98 [mips*], [host_cpu=mips enable_asm=no],
99 [powerpc*], [host_cpu=powerpc], 99 [powerpc*], [host_cpu=powerpc],
100 [ppc64*], [host_cpu=powerpc64], 100 [ppc64*], [host_cpu=powerpc64],
diff --git a/crypto/Makefile.am.elf-mips64 b/crypto/Makefile.am.elf-mips64
index c6727b3..7269d6e 100644
--- a/crypto/Makefile.am.elf-mips64
+++ b/crypto/Makefile.am.elf-mips64
@@ -1,9 +1,9 @@
1ASM_MIPS64_ELF = aes/aes-mips.S 1ASM_MIPS64_ELF = aes/aes-mips64.S
2ASM_MIPS64_ELF += bn/bn-mips.S 2ASM_MIPS64_ELF += bn/bn-mips64.S
3ASM_MIPS64_ELF += bn/mont-mips.S 3ASM_MIPS64_ELF += bn/mont-mips64.S
4ASM_MIPS64_ELF += sha/sha1-mips.S 4ASM_MIPS64_ELF += sha/sha1-mips64.S
5ASM_MIPS64_ELF += sha/sha512-mips.S 5ASM_MIPS64_ELF += sha/sha512-mips64.S
6ASM_MIPS64_ELF += sha/sha256-mips.S 6ASM_MIPS64_ELF += sha/sha256-mips64.S
7 7
8EXTRA_DIST += $(ASM_MIPS64_ELF) 8EXTRA_DIST += $(ASM_MIPS64_ELF)
9 9
diff --git a/scripts/test b/scripts/test
index 2cff531..6d573e3 100755
--- a/scripts/test
+++ b/scripts/test
@@ -182,7 +182,8 @@ elif [ "$ARCH" = "mips32" ] || [ "$ARCH" = "mips64" ]; then
182 sudo ln -sf /usr/mips64el-linux-gnuabi64/lib64/ld.so.1 /lib64 182 sudo ln -sf /usr/mips64el-linux-gnuabi64/lib64/ld.so.1 /lib64
183 setup_cross_compiler mips64el-linux-gnuabi64 183 setup_cross_compiler mips64el-linux-gnuabi64
184 184
185 ./configure --host=mips64el-linux-gnuabi64 185 # MIPS assembly is disabled by default, so enable it for CI coverage.
186 ./configure --host=mips64el-linux-gnuabi64 --enable-asm
186 LD_LIBRARY_PATH=/usr/mips64el-linux-gnuabi64/lib make -j 4 check 187 LD_LIBRARY_PATH=/usr/mips64el-linux-gnuabi64/lib make -j 4 check
187 fi 188 fi
188 189