summaryrefslogtreecommitdiffstats
path: root/bootstrap.sh
diff options
context:
space:
mode:
authorDaveHodder67 <dave.hodder@focusrite.com>2015-06-10 14:47:42 +0100
committerDaveHodder67 <dave.hodder@focusrite.com>2015-06-10 14:47:42 +0100
commit30eadbdae99c2da6d996133a2f143c02ceff98bf (patch)
treee738fd0e465fdbbe8f1dd8f27240b42bd40e2b3d /bootstrap.sh
parentdee635b32c44c9b3f8f8f27e1812219a41c73911 (diff)
downloadlaunchpad-polymaker-30eadbdae99c2da6d996133a2f143c02ceff98bf.tar.gz
launchpad-polymaker-30eadbdae99c2da6d996133a2f143c02ceff98bf.zip
adding Vagrant box config for gcc-arm environment
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