Skip to content

Commit 8e22624

Browse files
committed
Update gen-test.sh.in
1 parent 967c694 commit 8e22624

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/riscv/riscv-vector-tests/gen-test.sh.in

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,25 @@
22

33
XLEN=${XLEN:-"@XLEN@"}
44
TOOLDIR=${TOOLDIR:-"@TOOLDIR@"}
5-
echo TESTING: $TOOLDIR
65
RISCV_TOOLCHAIN_PATH=${RISCV_TOOLCHAIN_PATH:-"$TOOLDIR/riscv$XLEN-gnu-toolchain"}
7-
echo TESTING: $RISCV_TOOLCHAIN_PATH
86
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
97
PREV_DIR=$(pwd)
108

119
sudo apt-get install device-tree-compiler
1210
wget -O- -q https://go.dev/dl/go1.24.0.linux-amd64.tar.gz | tar -xzf -
1311

14-
export PATH=$PATH:$PREV_DIR/go/bin:$RISCV_TOOLCHAIN_PATH/bin
12+
export RISCV=$RISCV_TOOLCHAIN_PATH
13+
export PATH=$PATH:$PREV_DIR/go/bin:$RISCV/bin
1514

1615
git clone --recursive https://github.com/chipsalliance/riscv-vector-tests.git
1716
cd riscv-vector-tests
1817

1918
git clone --recursive https://github.com/riscv-software-src/riscv-isa-sim.git
2019
cd riscv-isa-sim
2120
git reset --hard 91793ed7d964aa0031c5a9a31fa05ec3d11b3b0f
21+
export PATH=$PATH:$(pwd)/riscv
2222
mkdir build && cd build
23-
../configure --prefix=$RISCV_TOOLCHAIN_PATH
23+
../configure --prefix=$RISCV
2424
make -j$(nproc) && sudo make install
2525
cd ../..
2626

0 commit comments

Comments
 (0)