loongarch: adapt build lzma and lzo

Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
This commit is contained in:
Wentao Guan 2024-08-26 17:43:49 +08:00
parent 59d4aaa54c
commit 68e30ca4d0
2 changed files with 46 additions and 0 deletions

View File

@ -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

View File

@ -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