From a764ec929eec2abdedd76cb5b593c8ec6a6abcfd Mon Sep 17 00:00:00 2001 From: Kenjiro Nakayama Date: Sat, 22 Aug 2026 11:06:51 +0900 Subject: 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. --- scripts/test | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'scripts/test') 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 elif [ "$ARCH" = "mips32" ] || [ "$ARCH" = "mips64" ]; then if [ "$ARCH" = "mips32" ]; then - sudo ln -sf /usr/mips-linux-gnu/lib/ld.so.1 /lib/ - setup_cross_compiler mips-linux-gnu + sudo ln -sf /usr/mipsel-linux-gnu/lib/ld.so.1 /lib/ + setup_cross_compiler mipsel-linux-gnu - ./configure --host=mips-linux-gnu - LD_LIBRARY_PATH=/usr/mips-linux-gnu/lib make -j 4 check + # MIPS32 assembly is disabled by default, so enable it for CI coverage. + ./configure --host=mipsel-linux-gnu --enable-asm + LD_LIBRARY_PATH=/usr/mipsel-linux-gnu/lib make -j 4 check else sudo ln -sf /usr/mips64el-linux-gnuabi64/lib64/ld.so.1 /lib64 setup_cross_compiler mips64el-linux-gnuabi64 -- cgit v1.2.3-55-g6feb