mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-19 03:44:46 -04:00
Fix travis cache path
This commit is contained in:
parent
b3a1b28136
commit
5147435ba1
2 changed files with 8 additions and 5 deletions
|
@ -4,7 +4,6 @@ sudo: false
|
|||
cache:
|
||||
apt: true
|
||||
directories:
|
||||
/home/travis/tmp/riscv-gnu-toolchain
|
||||
$RISCV
|
||||
$VERILATOR_ROOT
|
||||
|
||||
|
|
|
@ -4,7 +4,10 @@
|
|||
set -e
|
||||
ROOT=$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)
|
||||
VERSION="691e4e826251c7ec59f883cab18440c87baf45e7"
|
||||
cd $ROOT/tmp
|
||||
|
||||
mkdir -p $RISCV
|
||||
|
||||
cd $RISCV
|
||||
|
||||
if [ -z ${NUM_JOBS} ]; then
|
||||
NUM_JOBS=1
|
||||
|
@ -12,13 +15,14 @@ fi
|
|||
|
||||
|
||||
if ! [ -e $RISCV/bin ]; then
|
||||
[ -d $ROOT/tmp/riscv-gnu-toolchain ] || git clone https://github.com/riscv/riscv-gnu-toolchain.git
|
||||
if ! [ -e $RISCV/riscv-gnu-toolchain ]; then
|
||||
git clone https://github.com/riscv/riscv-gnu-toolchain.git
|
||||
fi
|
||||
|
||||
cd riscv-gnu-toolchain
|
||||
git checkout $VERSION
|
||||
git submodule update --init --recursive
|
||||
|
||||
mkdir -p $RISCV
|
||||
|
||||
if [[ $1 -ne "0" || -z ${1} ]]; then
|
||||
echo "Compiling RISC-V Toolchain"
|
||||
./configure --prefix=$RISCV > /dev/null
|
||||
|
|
Loading…
Add table
Reference in a new issue