diff --git a/SQUASHFS/SRC/build_lzma_loongarch.sh b/SQUASHFS/SRC/build_lzma_loongarch.sh new file mode 100644 index 00000000..f9aa9c93 --- /dev/null +++ b/SQUASHFS/SRC/build_lzma_loongarch.sh @@ -0,0 +1,22 @@ +#!/bin/bash + +LIBDIR=$PWD/../LIB/LZMA + +rm -rf $LIBDIR +rm -rf liblzma-master +unzip liblzma-master.zip + +cd liblzma-master +./configure --prefix=$LIBDIR --disable-xz --disable-xzdec --disable-lzmadec --disable-lzmainfo --enable-small build_alias=loongarch64-unknown-linux-gnu +make -j 8 && make install + +cd .. +rm -rf liblzma-master + +if [ -d $LIBDIR ]; then + echo -e "\n========== SUCCESS ============\n" +else + echo -e "\n========== FAILED ============\n" +fi + + diff --git a/SQUASHFS/SRC/build_lzo_loongarch.sh b/SQUASHFS/SRC/build_lzo_loongarch.sh new file mode 100644 index 00000000..c48e8419 --- /dev/null +++ b/SQUASHFS/SRC/build_lzo_loongarch.sh @@ -0,0 +1,24 @@ +#!/bin/bash + +LIBDIR=$PWD/../LIB/LZO +LZODIR=lzo-2.08 + +rm -rf $LIBDIR +rm -rf $LZODIR +tar -xf ${LZODIR}.tar.gz + + +cd $LZODIR +./configure --prefix=$LIBDIR --disable-shared build_alias=loongarch64-unknown-linux-gnu + +make && make install + +cd .. +rm -rf $LZODIR + +if [ -d $LIBDIR ]; then + echo -e "\n========== SUCCESS ============\n" +else + echo -e "\n========== FAILED ============\n" +fi +