initial setup
This commit is contained in:
commit
f60351815b
2 changed files with 79 additions and 0 deletions
7
configure_environment.sh
Executable file
7
configure_environment.sh
Executable file
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
export ACT_HOME=~/.act_install
|
||||
export PATH=$ACT_HOME/bin::$PATH
|
||||
export LD_LIBRARY_PATH=$ACT_HOME/lib
|
||||
|
||||
echo ACT_HOME is set to $ACT_HOME
|
||||
72
setup_node.sh
Executable file
72
setup_node.sh
Executable file
|
|
@ -0,0 +1,72 @@
|
|||
#!/bin/bash
|
||||
|
||||
check_dependency()
|
||||
{
|
||||
echo -n "checking $1... "
|
||||
|
||||
if command -v $1 >/dev/null 2>&1; then
|
||||
echo "found"
|
||||
else
|
||||
echo "missing"
|
||||
missing="$1 "
|
||||
fi
|
||||
}
|
||||
|
||||
# checking dependencies
|
||||
check_dependency git
|
||||
check_dependency cmake
|
||||
check_dependency g++
|
||||
check_dependency gcc
|
||||
|
||||
|
||||
if [ -z ${missing+x} ]; then
|
||||
echo "All dependencies found"
|
||||
else
|
||||
echo Missing dependencies $missing
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo Setting up local user ACT installation
|
||||
source configure_environment.sh
|
||||
|
||||
mkdir -p $ACT_HOME
|
||||
|
||||
|
||||
echo Building core library
|
||||
|
||||
git clone https://github.com/asyncvlsi/act.git
|
||||
cd ./act
|
||||
export VLSI_TOOLS_SRC=$(pwd)
|
||||
./configure $ACT_HOME
|
||||
./build
|
||||
make install
|
||||
make runtest
|
||||
cd ..
|
||||
|
||||
|
||||
echo Building stdlib
|
||||
|
||||
git clone https://github.com/asyncvlsi/stdlib.git
|
||||
cd stdlib
|
||||
make install
|
||||
cd ..
|
||||
|
||||
|
||||
echo Building annotation library
|
||||
|
||||
git clone https://github.com/asyncvlsi/annotate.git
|
||||
cd annotate
|
||||
make install_inc
|
||||
make depend
|
||||
make
|
||||
make install
|
||||
cd ..
|
||||
|
||||
|
||||
echo Building actsim
|
||||
|
||||
git clone https://github.com/TheBitFighter/actsim/ -b set_rework
|
||||
cd actsim
|
||||
./configure
|
||||
./build.sh
|
||||
cd ..
|
||||
Loading…
Reference in a new issue