Skip to content

Downloading the SDK

Ben Chaco edited this page Jul 15, 2014 · 13 revisions

First, you should create a directory for your build environment, for example ${HOME}/epiphany-sdk. These instructions will refer to this directory as EPIPHANY_BUILD_HOME. 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

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:

${EPIPHANY_BUILD_HOME}/
  gcc/
    mpc/
    mpfr/
    gmp/

Direct download links(as of August 2013): mpc mpfr gmp

Downloading the sdk sources

cd EPIPHANY_BUILD_HOME git clone https://github.com/adapteva/epiphany-sdk sdk

This will clone the Epiphany SDK source tree in a directory named 'sdk'.

Building/Installing

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