mirror of
https://github.com/ventoy/Ventoy.git
synced 2025-04-28 22:28:22 -04:00
loongarch: adapt build lzma and lzo
Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
This commit is contained in:
parent
59d4aaa54c
commit
68e30ca4d0
22
SQUASHFS/SRC/build_lzma_loongarch.sh
Normal file
22
SQUASHFS/SRC/build_lzma_loongarch.sh
Normal 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
|
||||
|
||||
|
24
SQUASHFS/SRC/build_lzo_loongarch.sh
Normal file
24
SQUASHFS/SRC/build_lzo_loongarch.sh
Normal 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
|
||||
|
Loading…
x
Reference in New Issue
Block a user