Files
chipyard/scripts/firesim-setup.sh
2020-06-21 23:26:25 +00:00

18 lines
379 B
Bash
Executable File

#!/usr/bin/env bash
# Sets up FireSim for use as a library within Chipyard
set -e
set -o pipefail
RDIR=$(pwd)
scripts_dir="$( cd "$( dirname "${BASH_SOURCE[0]:-${(%):-%x}}" )" >/dev/null 2>&1 && pwd )"
cd "${scripts_dir}/.."
# Reenable the FireSim submodule
git config --unset submodule.sims/firesim.update || true
cd sims/firesim
./build-setup.sh "$@" --library
cd "$RDIR"