mirror of
				https://github.com/openhwgroup/cvw
				synced 2025-02-11 06:05:49 +00:00 
			
		
		
		
	separates setup.sh into setup.sh and site-setup.sh. site-setup.sh is to be copied into $RISCV/site-setup.sh by the system admin and modified as needed. setup.sh should no longer require modifications for individual systems.
		
			
				
	
	
		
			33 lines
		
	
	
		
			798 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			798 B
		
	
	
	
		
			Bash
		
	
	
	
	
	
#!/bin/bash
 | 
						|
 | 
						|
# setup.sh
 | 
						|
# David_Harris@hmc.edu and kekim@hmc.edu 1 December 2021
 | 
						|
# Set up tools for cvw
 | 
						|
 | 
						|
# optionally have .bashrc or .bash_profile source this file with
 | 
						|
#if [ -f ~/cvw/setup.sh ]; then
 | 
						|
#	source ~/cvw/setup.sh
 | 
						|
#fi
 | 
						|
 | 
						|
# SPDX-License-Identifier: Apache-2.0 WITH SHL-2.1
 | 
						|
 | 
						|
echo "Executing Wally setup.sh"
 | 
						|
 | 
						|
# Path to RISC-V Tools
 | 
						|
export RISCV=/opt/riscv   # change this if you installed the tools in a different location
 | 
						|
 | 
						|
# Path to Wally repository
 | 
						|
WALLY=$(dirname ${BASH_SOURCE[0]:-$0})
 | 
						|
export WALLY=$(cd "$WALLY" && pwd)
 | 
						|
echo \$WALLY set to ${WALLY}
 | 
						|
# utility functions in Wally repository
 | 
						|
export PATH=$WALLY/bin:$PATH    
 | 
						|
 | 
						|
# Verilator needs a larger stack to simulate CORE-V Wally
 | 
						|
ulimit -s 100000
 | 
						|
 | 
						|
# load site licenses and tool locations
 | 
						|
source $RISCV/site-setup.sh
 | 
						|
 | 
						|
echo "setup done"
 |