userconfig.sh 915 Bytes
Newer Older
1 2
#!/bin/bash

michael's avatar
michael committed
3
cd $HOME
michael's avatar
michael committed
4
ca_dir="${HOME}/advanced_computer_architecture"
5

michael's avatar
michael committed
6

7 8 9 10 11 12
if [ ! -d gem5 ]; then
 hg clone http://repo.gem5.org/gem5
fi

cd gem5
hg pull 
michael's avatar
michael committed
13
hg update
michael's avatar
michael committed
14

michael's avatar
michael committed
15 16 17 18
#scons build/ARM/gem5.debug --jobs 2
scons build/ARM/gem5.opt --jobs 2
#scons build/X86/gem5.debug --jobs 2
#scons build/X86/gem5.opt --jobs 2
19

michael's avatar
michael committed
20 21 22 23
cd util/term/
make
echo 'alias m5term="/home/vagrant/gem5/util/term/m5term"' >> /home/vagrant/.bashrc

24
cd $ca_dir
michael's avatar
michael committed
25
mkdir -p system
michael's avatar
michael committed
26 27 28
cd system
wget http://www.gem5.org/dist/current/arm/aarch-system-2014-10.tar.xz

29 30
tar xvJf aarch-system-2014-10.tar.xz

michael's avatar
michael committed
31 32 33 34 35
if [ $? == 0 ]; then
 rm aarch-system-2014-10.tar.xz
fi

cd $HOME
michael's avatar
michael committed
36
echo 'export M5_PATH="/home/vagrant/advanced_computer_architecture/system"' >> .bashrc
michael's avatar
michael committed
37 38
cp -r /vagrant/local_config/ssh/* ~/.ssh

michael's avatar
michael committed
39 40 41 42
mkdir -p $ca_dir
cd $ca_dir
git clone git@atreus.informatik.uni-tuebingen.de:advanced_computer_architecture/exercises.git

michael's avatar
michael committed
43
/vagrant/local_config/local_bootstrap.sh