bootstrap.sh 789 Bytes
Newer Older
Christoph Gerum's avatar
Christoph Gerum committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
#!/usr/bin/env bash

apt-get update
apt-get upgrade -y
apt-get install build-essential -y
apt-get install scons -y
apt-get install clang -y
apt-get install python-dev -y
apt-get install swig -y 
apt-get install m4 -y
apt-get install libprotobuf-dev -y 
apt-get install zlib1g-dev -y 
apt-get install mercurial -y 
apt-get install htop -y 
apt-get install libgoogle-perftools-dev -y
apt-get install protobuf-compiler -y 

echo ${PWD}

sudo -u vagrant mkdir -p advanced_computer_architecture
cd advanced_computer_architecture 
if [ ! -d gem5 ]; then
  sudo -u vagrant  hg clone http://repo.gem5.org/gem5
fi

cd gem5
sudo -u vagrant  hg pull 
sudo -u vagrant scons build/ALPHA/gem5.debug
sudo -u vagrant scons build/ALPHA/tests/debug


#scons build/ALPHA/gem5.opt
#scons build/ALPHA/tests/opt