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

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

mkdir -p advanced_computer_architecture
michael's avatar
michael committed
6 7

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

cd gem5
hg pull 
michael's avatar
michael committed
14

15 16 17 18 19 20
#scons build/ARM/gem5.debug
scons build/ARM/gem5.opt
#scons build/X86/gem5.debug
#scons build/X86/gem5.opt

cd $ca_dir
michael's avatar
michael committed
21 22 23 24
mkdir system
cd system
wget http://www.gem5.org/dist/current/arm/aarch-system-2014-10.tar.xz

25 26
tar xvJf aarch-system-2014-10.tar.xz

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

echo 'export M5_PATH="${ca_dir}/system"' >> .bashrc

cd $HOME
cp -r /vagrant/local_config/ssh/* ~/.ssh

/vagrant/local_config/local_bootstrap.sh