From 30eadbdae99c2da6d996133a2f143c02ceff98bf Mon Sep 17 00:00:00 2001 From: DaveHodder67 Date: Wed, 10 Jun 2015 14:47:42 +0100 Subject: adding Vagrant box config for gcc-arm environment --- bootstrap.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 bootstrap.sh (limited to 'bootstrap.sh') diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100644 index 0000000..111b248 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,25 @@ +#!/usr/bin/env bash + +# setup as described here: http://gnuarmeclipse.livius.net/blog/toolchain-install/#GNULinux + +# tools for running 32-bit binaries +apt-get update +sudo apt-get install -y lib32z1 lib32ncurses5 lib32bz2-1.0 + +# eclipse IDE +# sudo apt-get install -y eclipse + +# download the compiler +wget -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 + +# expand and add it to the path (yes, I know it says don't ever do this - but this is a Vagrant box ;) +cd /usr/local +sudo tar xjf /tmp/gcc-arm.tar.bz2 + +# cd to the /vagrant dir on login +echo "cd /vagrant" >> /home/vagrant/.bashrc + +# set up path to arm gcc on login +echo "export PATH=/usr/local/gcc-arm-none-eabi-4_9-2015q1/bin:$PATH" >> /home/vagrant/.bashrc + + -- cgit v1.2.1