-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup_env.sh
More file actions
26 lines (25 loc) · 899 Bytes
/
setup_env.sh
File metadata and controls
26 lines (25 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
core="$1"
echo "Selected core: $core"
export MAGIA_DIR=$(pwd)
echo "Exporting MAGIA path to $MAGIA_DIR"
export PATH=$MAGIA_DIR:$PATH
export BENDER_DIR=$(pwd)/hw/bender
echo "Exporting bender path to $BENDER_DIR"
export PATH=$BENDER_DIR:$PATH
unset BENDER_DIR
echo "Exporting SDK and GCC Toolchain paths"
export PATH=/usr/pack/pulpsdk-1.0-kgf/artifactory/pulp-sdk-release/pkg/pulp_riscv_gcc/1.0.16/bin:$PATH
export PATH=/usr/pack/gcc-5.2.0-af/x86_64-rhe6-linux/bin:$PATH
export PATH=/usr/local/anaconda3-2023.07/condabin:$PATH
export PATH=/home/visachi/.local/bin:$PATH
export XLEN=32
if [[ "$core" == "CV32E40P" ]]; then
echo "Exporting ISA extentions: I, M, F, C, XPULP_V2"
export XTEN=imfcxpulpv2
else
echo "Exporting ISA extentions: I, M, A, F, C"
export XTEN=imafc
fi
echo "Sourcing python virtual environment"
source ./magia_venv/bin/activate
echo "Finished setting up the environment"