Building master - adapteva/epiphany-sdk GitHub Wiki

Ubuntu 14.04 instructions

Prerequisites

sudo apt-get install build-essential git bison flex texinfo guile-1.8 dejagnu
sudo apt-get install gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf

Optional (?)

Taken from wiki, likely outdated and unnecessary

sudo apt-get libgmp3-dev libncurses-dev libmpc-dev libmpfr-dev xzip lzip zip

Install ccache

This is highly recommended. Consecutive builds will be much faster. Guide here: https://askubuntu.com/questions/470545/how-do-i-set-up-ccache

Downloading toolchain build scripts

mkdir -p path/to/buildroot
cd path/to/buildroot
git clone [email protected]:/adapteva/epiphany-sdk.git -b master sdk

Building toolchain / SDK for the Parallella board

First time you do this the scripts will clone all repos. That's about 5GB. Building the toolchain will take another 2GB

cd sdk && git pull && cd .. # optional
./sdk/build-epiphany-sdk.sh -c arm-linux-gnueabihf

add -C to do a clean build

-h will list available options.

Installing on Parallella

After building:

  • copy esdk.master to /opt/adapteva on your Parallella board.

  • Add a symlink in /opt/adapteva
    cd /opt/adapteva && ln -sf esdk.master esdk

Setting up paths (on Parallella)

Add this to .bashrc

export EPIPHANY_HOME=/opt/adapteva/esdk
source $EPIPHANY_HOME/setup.sh

Force regeneration of unified source tree

We use a unified source tree w/ symlinks to all components. If a file is added to one of the repos a corresponding symlink needs to be added to the unified tree. The easiest way to accomplish that is to just delete the directory. The next time the build script is invoked the tree will be regenerated (takes ~2 minutes extra).

rm -rf unisrc-master
./sdk/build-epiphany-sdk.sh