From 68e30ca4d052996e42d62a925a0df5941ea93d6f Mon Sep 17 00:00:00 2001 From: Wentao Guan Date: Mon, 26 Aug 2024 17:43:49 +0800 Subject: [PATCH] loongarch: adapt build lzma and lzo Signed-off-by: Wentao Guan --- SQUASHFS/SRC/build_lzma_loongarch.sh | 22 ++++++++++++++++++++++ SQUASHFS/SRC/build_lzo_loongarch.sh | 24 ++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 SQUASHFS/SRC/build_lzma_loongarch.sh create mode 100644 SQUASHFS/SRC/build_lzo_loongarch.sh 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 +