Skip to content

Commit

Permalink
env: only export the PULP RV32 toolchain if at IIS
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrea Belano committed Jan 28, 2025
1 parent d9ce78e commit 1f61cb7
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion env/astral-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
# set up environment variables for rtl simulation, pulp-runtime and freertos
ROOTD=$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")/.." && pwd)

export PULP_RUNTIME_GCC_TOOLCHAIN=/usr/pack/riscv-1.0-kgf/pulp-gcc-1.0.16
if (hostname | grep -qE "\.ee\.ethz\.ch$") ; then
export PULP_RUNTIME_GCC_TOOLCHAIN=/usr/pack/riscv-1.0-kgf/pulp-gcc-1.0.16
end

source "$ROOTD/pulp-runtime/configs/astral-cluster.sh"
source "$ROOTD/scripts/vsim.sh"
4 changes: 3 additions & 1 deletion env/carfield-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
# set up environment variables for rtl simulation, pulp-runtime and freertos
ROOTD=$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")/.." && pwd)

export PULP_RUNTIME_GCC_TOOLCHAIN=/usr/pack/riscv-1.0-kgf/pulp-gcc-1.0.16
if (hostname | grep -qE "\.ee\.ethz\.ch$") ; then
export PULP_RUNTIME_GCC_TOOLCHAIN=/usr/pack/riscv-1.0-kgf/pulp-gcc-1.0.16
fi

source "$ROOTD/pulp-runtime/configs/carfield-cluster.sh"
source "$ROOTD/scripts/vsim.sh"
4 changes: 3 additions & 1 deletion env/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
# set up environment variables for rtl simulation, pulp-runtime and freertos
ROOTD=$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")/.." && pwd)

export PULP_RUNTIME_GCC_TOOLCHAIN=/usr/pack/riscv-1.0-kgf/pulp-gcc-1.0.16
if (hostname | grep -qE "\.ee\.ethz\.ch$") ; then
export PULP_RUNTIME_GCC_TOOLCHAIN=/usr/pack/riscv-1.0-kgf/pulp-gcc-1.0.16
fi

source "$ROOTD/pulp-runtime/configs/pulp_cluster.sh"
source "$ROOTD/scripts/vsim.sh"

0 comments on commit 1f61cb7

Please sign in to comment.