minor update

This commit is contained in:
Blaise Tine 2024-05-09 02:47:10 -07:00
parent 1864e46c14
commit 13e9e6d9f9
2 changed files with 20 additions and 32 deletions

View file

@ -45,16 +45,16 @@ jobs:
- cd $HOME/build32 && TOOLDIR=$TOOLDIR XLEN=32 $TRAVIS_BUILD_DIR/configure
- cd $HOME/build64 && TOOLDIR=$TOOLDIR XLEN=64 $TRAVIS_BUILD_DIR/configure
install:
- if [ ! -d "$TOOLDIR" ] || [ -z "$(ls -A $TOOLDIR)" ] || [ "$(cat "$TOOLDIR/version.txt")" != "v0.4" ]; then
- if [ ! -d "$TOOLDIR" ] || [ -z "$(ls -A $TOOLDIR)" ] || [ "$(cat "$TOOLDIR/version.txt")" != "v0.0" ]; then
rm -rf $TOOLDIR;
$HOME/build32/ci/toolchain_install.sh --all;
echo "v0.4" > "$TOOLDIR/version.txt";
echo "v0.0" > "$TOOLDIR/version.txt";
fi
- if [ ! -d "$HOME/third_party" ] || [ -z "$(ls -A $HOME/third_party)" ] || [ "$(cat "$HOME/third_party/version.txt")" != "v0.4" ]; then
- if [ ! -d "$HOME/third_party" ] || [ -z "$(ls -A $HOME/third_party)" ] || [ "$(cat "$HOME/third_party/version.txt")" != "v0.0" ]; then
cd $TRAVIS_BUILD_DIR;
make -C third_party > /dev/null;
cp -rf third_party $HOME;
echo "v0.4" > "$HOME/third_party/version.txt";
echo "v0.0" > "$HOME/third_party/version.txt";
else
cp -rf $HOME/third_party $TRAVIS_BUILD_DIR;
fi

View file

@ -34,9 +34,8 @@ riscv32()
done
cat riscv32-gnu-toolchain.tar.bz2.parta* > riscv32-gnu-toolchain.tar.bz2
tar -xvf riscv32-gnu-toolchain.tar.bz2
cp -r riscv32-gnu-toolchain $TOOLDIR
mv -f riscv32-gnu-toolchain $TOOLDIR
rm -f riscv32-gnu-toolchain.tar.bz2*
rm -rf riscv32-gnu-toolchain
}
riscv64()
@ -52,9 +51,8 @@ riscv64()
done
cat riscv64-gnu-toolchain.tar.bz2.parta* > riscv64-gnu-toolchain.tar.bz2
tar -xvf riscv64-gnu-toolchain.tar.bz2
cp -r riscv64-gnu-toolchain $TOOLDIR
mv -f riscv64-gnu-toolchain $TOOLDIR
rm -f riscv64-gnu-toolchain.tar.bz2*
rm -rf riscv64-gnu-toolchain
}
llvm()
@ -71,90 +69,80 @@ llvm()
done
cat llvm-vortex2.tar.bz2.parta* > llvm-vortex2.tar.bz2
tar -xvf llvm-vortex2.tar.bz2
cp -r llvm-vortex $TOOLDIR
mv -f llvm-vortex $TOOLDIR
rm -f llvm-vortex2.tar.bz2*
rm -rf llvm-vortex
}
libc32()
{
wget $REPOSITORY/libc32/libc32.tar.bz2
tar -xvf libc32.tar.bz2
mv -f libc32 $TOOLDIR
rm -f libc32.tar.bz2
cp -r libc32 $TOOLDIR
rm -rf libc32
}
libc64()
{
wget $REPOSITORY/libc64/libc64.tar.bz2
tar -xvf libc64.tar.bz2
mv -f libc64 $TOOLDIR
rm -f libc64.tar.bz2
cp -r libc64 $TOOLDIR
rm -rf libc64
}
libcrt32()
{
wget $REPOSITORY/libcrt32/libcrt32.tar.bz2
tar -xvf libcrt32.tar.bz2
mv -f libcrt32 $TOOLDIR
rm -f libcrt32.tar.bz2
cp -r libcrt32 $TOOLDIR
rm -rf libcrt32
}
libcrt64()
{
wget $REPOSITORY/libcrt64/libcrt64.tar.bz2
tar -xvf libcrt64.tar.bz2
mv -f libcrt64 $TOOLDIR
rm -f libcrt64.tar.bz2
cp -r libcrt64 $TOOLDIR
rm -rf libcrt64
}
libc32()
{
wget $REPOSITORY/libc32/libc32.tar.bz2
tar -xvf libc32.tar.bz2
mv -f libc32 $TOOLDIR
rm -f libc32.tar.bz2
cp -r libc32 $TOOLDIR
rm -rf libc32
}
libc64()
{
wget $REPOSITORY/libc64/libc64.tar.bz2
tar -xvf libc64.tar.bz2
mv -f libc64 $TOOLDIR
rm -f libc64.tar.bz2
cp -r libc64 $TOOLDIR
rm -rf libc64
}
pocl()
{
wget $REPOSITORY/pocl/$OSDIR/pocl2.tar.bz2
tar -xvf pocl2.tar.bz2
mv -f pocl $TOOLDIR
rm -f pocl2.tar.bz2
cp -r pocl $TOOLDIR
rm -rf pocl
}
verilator()
{
wget $REPOSITORY/verilator/$OSDIR/verilator.tar.bz2
tar -xvf verilator.tar.bz2
cp -r verilator $TOOLDIR
mv -f verilator $TOOLDIR
rm -f verilator.tar.bz2
rm -rf verilator
}
sv2v()
{
wget $REPOSITORY/sv2v/$OSDIR/sv2v.tar.bz2
tar -xvf sv2v.tar.bz2
mv -f sv2v $TOOLDIR
rm -f sv2v.tar.bz2
cp -r sv2v $TOOLDIR
rm -rf sv2v
}
yosys()
@ -171,9 +159,8 @@ yosys()
done
cat yosys.tar.bz2.parta* > yosys.tar.bz2
tar -xvf yosys.tar.bz2
cp -r yosys $TOOLDIR
rm -f yosys.tar.bz2*
rm -rf yosys
mv -f yosys $TOOLDIR
rm -f yosys.tar.bz2* yosys
}
show_usage()
@ -206,7 +193,7 @@ while [ "$1" != "" ]; do
;;
--yosys ) yosys
;;
--all ) pocl
--all )
verilator
llvm
libcrt32
@ -217,6 +204,7 @@ while [ "$1" != "" ]; do
riscv64
sv2v
yosys
pocl
;;
-h | --help ) show_usage
exit