Skip to content

Commit

Permalink
Fix source.sh file for pre-installed riscv toolchain (#230)
Browse files Browse the repository at this point in the history
* Update fast-setup to account for a pre-installed RISC-V toolchain
  • Loading branch information
cathylu10 committed Mar 5, 2021
1 parent 53047ea commit 0022215
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion fast-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ then
fi

# update source.sh
echo "export RISCV=$(pwd)/riscv${BITS}" > ./source.sh
GCC_PATH=$(which riscv$BITS-unknown-linux-gnu-gcc)
RISCV_DIR=$(dirname $(dirname $GCC_PATH))
echo "export RISCV=$RISCV_DIR" > ./source.sh
echo "export PATH=$RISCV/bin:\$PATH" >> ./source.sh
echo "export KEYSTONE_SDK_DIR=$KEYSTONE_SDK_DIR" >> ./source.sh

Expand Down

0 comments on commit 0022215

Please sign in to comment.