Skip to content

Downloading the SDK

Christian Bielert edited this page Aug 3, 2013 · 13 revisions

First, you should create a directory for your build environment, for example ${HOME}/epiphany-sdk. We will then extract the various parts of the SDK into this build environment, so that the final structure will look something like this:

epiphany-sdk/
   gcc/
   binutils/
   gdb/
   newlib/
   cgen/
   sdk/
   epiphany-libs/

These subdirectories can be retrieved from the adapteva github repositories, for example with: git clone https://github.com/adapteva/epiphany-gcc gcc.

However, the more convenient method of downloading the sources is to use this script.

wget https://raw.github.com/adapteva/epiphany-sdk/master/download-toolchain.sh
chmod +x download-toolchain.sh

# You can either download them as zip packages(faster)
./download-toolchain.sh

# Or, alternatively, you can clone the github repositories(significantly slower, but simplifies updates)
./download-toolchain.sh --clone

Note: Currently, if you use the script, epiphany-libs will not be downloaded automatically. You will have to additionally perform git clone https://github.com/adapteva/epiphany-libs.git.

Installing additional GCC modules

You will additionally need GMP, MPFR and MPC. These are libraries related to arithmetic, e.g. MPC provides arbitrary precision floating point numbers.

Download and extract these into your gcc directory, so that you get a directory structure like this:

gcc/
   mpc/ ([download](http://multiprecision.org/mpc/download/mpc-1.0.1.tar.gz))
   mpfr/ ([download](http://www.mpfr.org/mpfr-current/mpfr-3.1.2.tar.xz))
   gmp/ ([download](ftp://ftp.gmplib.org/pub/gmp-5.1.2/gmp-5.1.2.tar.lz))

Building/Installing

Information about building the SDK can be found on the Building the SDK page.