-
Notifications
You must be signed in to change notification settings - Fork 35
Downloading the SDK
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
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
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'.
Information about building the SDK can be found on the Building the SDK page.