aboutsummaryrefslogtreecommitdiff
path: root/scripts/test
diff options
context:
space:
mode:
authorKenjiro Nakayama <nakayamakenjiro@gmail.com>2026-08-22 11:06:51 +0900
committerKenjiro Nakayama <nakayamakenjiro@gmail.com>2026-08-29 20:38:08 +0900
commita764ec929eec2abdedd76cb5b593c8ec6a6abcfd (patch)
tree127b3092bc42da2abc09ee9b93f276e6358db3a0 /scripts/test
parent0ac0850a98ea4c5ccc9f9eb4c6d540409346a1b5 (diff)
downloadportable-a764ec929eec2abdedd76cb5b593c8ec6a6abcfd.tar.gz
portable-a764ec929eec2abdedd76cb5b593c8ec6a6abcfd.tar.bz2
portable-a764ec929eec2abdedd76cb5b593c8ec6a6abcfd.zip
Enable supported MIPS32 assembly in CI
Use the little endian MIPS32 toolchain since the generated assembly is little-endian, and define the architecture feature macros needed to select the AES, BN, SHA-1, and SHA-256 assembly implementations. Do not generate or build SHA-512 assembly for MIPS32. The generator accepts the O32 ABI, but the resulting implementation still uses 64-bit instructions and requires the MIPS64 ISA. It is therefore not valid for generic MIPS32 targets.
Diffstat (limited to 'scripts/test')
-rwxr-xr-xscripts/test9
1 files changed, 5 insertions, 4 deletions
diff --git a/scripts/test b/scripts/test
index 6d573e3..b3386a8 100755
--- a/scripts/test
+++ b/scripts/test
@@ -173,11 +173,12 @@ elif [ "$ARCH" = "riscv64" ]; then
173 173
174elif [ "$ARCH" = "mips32" ] || [ "$ARCH" = "mips64" ]; then 174elif [ "$ARCH" = "mips32" ] || [ "$ARCH" = "mips64" ]; then
175 if [ "$ARCH" = "mips32" ]; then 175 if [ "$ARCH" = "mips32" ]; then
176 sudo ln -sf /usr/mips-linux-gnu/lib/ld.so.1 /lib/ 176 sudo ln -sf /usr/mipsel-linux-gnu/lib/ld.so.1 /lib/
177 setup_cross_compiler mips-linux-gnu 177 setup_cross_compiler mipsel-linux-gnu
178 178
179 ./configure --host=mips-linux-gnu 179 # MIPS32 assembly is disabled by default, so enable it for CI coverage.
180 LD_LIBRARY_PATH=/usr/mips-linux-gnu/lib make -j 4 check 180 ./configure --host=mipsel-linux-gnu --enable-asm
181 LD_LIBRARY_PATH=/usr/mipsel-linux-gnu/lib make -j 4 check
181 else 182 else
182 sudo ln -sf /usr/mips64el-linux-gnuabi64/lib64/ld.so.1 /lib64 183 sudo ln -sf /usr/mips64el-linux-gnuabi64/lib64/ld.so.1 /lib64
183 setup_cross_compiler mips64el-linux-gnuabi64 184 setup_cross_compiler mips64el-linux-gnuabi64