Install some needed libraries
sudo aptitude install libmpc-dev
Make the temp directory to build in
mkdir toolchain
cd toolchain
Get the required sources
| #!/usr/bin/env ruby | |
| require 'net/ssh' | |
| require 'json' | |
| users = %w(user) | |
| host = localhost | |
| Net::SSH.start(host, ENV['USER'] , port: 29418) do |ssh| | |
| result = ssh.exec!('gerrit ls-projects --type code --format json') |
| #!/bin/bash | |
| export target=arm-eabi | |
| export prefix=~/$target | |
| export PATH=$prefix/bin:$PATH | |
| mkdir toolchain && \ | |
| cd toolchain && \ | |
| wget -c ftp://sources.redhat.com/pub/newlib/newlib-1.19.0.tar.gz && \ | |
| wget -c http://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.gz && \ |
Install some needed libraries
sudo aptitude install libmpc-dev
Make the temp directory to build in
mkdir toolchain
cd toolchain
Get the required sources
| #!/bin/bash | |
| mkdir toolchain | |
| cd toolchain | |
| wget ftp://sources.redhat.com/pub/newlib/newlib-1.19.0.tar.gz | |
| wget http://ftp.gnu.org/gnu/gdb/gdb-7.2.tar.gz | |
| wget http://ftp.gnu.org/gnu/binutils/binutils-2.21.tar.bz2 | |
| wget http://ftp.gnu.org/gnu/gcc/gcc-4.6.0/gcc-core-4.6.0.tar.bz2 |