From 73d924f643be938205d434dc7ba7aa642150ba84 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 23 Mar 2023 06:07:31 -0500 Subject: fix mips/mips64 builds --- scripts/test | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'scripts') diff --git a/scripts/test b/scripts/test index 0eb2c06..3443702 100755 --- a/scripts/test +++ b/scripts/test @@ -89,6 +89,23 @@ elif [ "x$ARCH" = "xarm32" -o "x$ARCH" = "xarm64" ]; then file apps/openssl/.libs/openssl +elif [ "x$ARCH" = "xmipsel" -o "x$ARCH" = "xmips64el" ]; then + sudo apt-get install -y qemu-user-static binfmt-support + + if [ "x$ARCH" = "xmipsel" ]; then + sudo apt-get install -y g++-mips-linux-gnu + sudo ln -sf /usr/mipsel-linux-gnu/lib/ld.so.1 /lib/ + ./configure --host=mipsel-linux-gnu + LD_LIBRARY_PATH=/usr/mipsel-linux-gnu/lib make -j 4 check + else + sudo apt-get install -y g++-mips64el-linux-gnuabi64 + sudo ln -sf /usr/mips64el-linux-gnuabi64/lib64/ld.so.1 /lib64 + ./configure --host=mips64el-linux-gnuabi64 + LD_LIBRARY_PATH=/usr/mips64el-linux-gnuabi64/lib make -j 4 check + fi + + file apps/openssl/.libs/openssl + elif [ "x$ARCH" = "xandroid" ]; then export TC_FILE=$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake -- cgit v1.2.3-55-g6feb From dc7d38d52f829f77d60ddeb31546d20783d73498 Mon Sep 17 00:00:00 2001 From: Brent Cook Date: Thu, 23 Mar 2023 06:21:32 -0500 Subject: match CI names in test script --- scripts/test | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts') diff --git a/scripts/test b/scripts/test index 3443702..144930f 100755 --- a/scripts/test +++ b/scripts/test @@ -89,10 +89,10 @@ elif [ "x$ARCH" = "xarm32" -o "x$ARCH" = "xarm64" ]; then file apps/openssl/.libs/openssl -elif [ "x$ARCH" = "xmipsel" -o "x$ARCH" = "xmips64el" ]; then +elif [ "x$ARCH" = "xmips32" -o "x$ARCH" = "xmips64" ]; then sudo apt-get install -y qemu-user-static binfmt-support - if [ "x$ARCH" = "xmipsel" ]; then + if [ "x$ARCH" = "xmips32" ]; then sudo apt-get install -y g++-mips-linux-gnu sudo ln -sf /usr/mipsel-linux-gnu/lib/ld.so.1 /lib/ ./configure --host=mipsel-linux-gnu -- cgit v1.2.3-55-g6feb