summaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bootstrap.sh')
-rw-r--r--bootstrap.sh25
1 files changed, 25 insertions, 0 deletions
diff --git a/bootstrap.sh b/bootstrap.sh
new file mode 100644
index 0000000..111b248
--- /dev/null
+++ b/bootstrap.sh
@@ -0,0 +1,25 @@
1#!/usr/bin/env bash
2
3# setup as described here: http://gnuarmeclipse.livius.net/blog/toolchain-install/#GNULinux
4
5# tools for running 32-bit binaries
6apt-get update
7sudo apt-get install -y lib32z1 lib32ncurses5 lib32bz2-1.0
8
9# eclipse IDE
10# sudo apt-get install -y eclipse
11
12# download the compiler
13wget -O /tmp/gcc-arm.tar.bz2 https://launchpad.net/gcc-arm-embedded/4.9/4.9-2015-q1-update/+download/gcc-arm-none-eabi-4_9-2015q1-20150306-linux.tar.bz2
14
15# expand and add it to the path (yes, I know it says don't ever do this - but this is a Vagrant box ;)
16cd /usr/local
17sudo tar xjf /tmp/gcc-arm.tar.bz2
18
19# cd to the /vagrant dir on login
20echo "cd /vagrant" >> /home/vagrant/.bashrc
21
22# set up path to arm gcc on login
23echo "export PATH=/usr/local/gcc-arm-none-eabi-4_9-2015q1/bin:$PATH" >> /home/vagrant/.bashrc
24
25