Merge branch 'main' into new-hammer

This commit is contained in:
Harrison Liew
2023-02-10 12:55:41 -08:00
11 changed files with 183 additions and 17 deletions

View File

@@ -87,6 +87,27 @@ run_step() {
{
# esp-tools should ONLY be used for hwacha.
# Check for this, since many users will be attempting to use this with gemmini
if [ $TOOLCHAIN_TYPE == "esp-tools" ]; then
while true; do
read -p "WARNING: You are trying to install the esp-tools toolchain."$'n'"This should ONLY be used for Hwacha development."$'\n'"Gemmini should be used with riscv-tools."$'\n'"Type \"y\" to continue if this is intended, or \"n\" if not: " validate
case "$validate" in
y | Y)
echo "Installing esp-tools."
break
;;
n | N)
error "Rerun with riscv-tools"
exit 3
;;
*)
error "Invalid response. Please type \"y\" or \"n\""
;;
esac
done
fi
# setup and install conda environment
if run_step "1"; then
# note: lock file must end in .conda-lock.yml - see https://github.com/conda-incubator/conda-lock/issues/154

View File

@@ -102,4 +102,13 @@ echo '==> Installing espresso logic minimizer'
echo '==> Installing libgloss'
CC= CXX= SRCDIR="$(pwd)/toolchains" module_all libgloss --prefix="${RISCV}/riscv${XLEN}-unknown-elf" --host=riscv${XLEN}-unknown-elf
cd $RDIR
if [ $TOOLCHAIN == "riscv-tools" ]; then
echo '==> Installing gemmini spike extensions'
git submodule update --init generators/gemmini
cd generators/gemmini
git submodule update --init software/libgemmini
make -C $RDIR/generators/gemmini/software/libgemmini install
fi
echo "Extra Toolchain Utilities/Tests Build Complete!"