-
Notifications
You must be signed in to change notification settings - Fork 35
Building master
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
Taken from wiki, likely outdated and unnecessary
sudo apt-get libgmp3-dev libncurses-dev libmpc-dev libmpfr-dev xzip lzip zip
This is highly recommended. Consecutive builds will be much faster. Guide here: https://askubuntu.com/questions/470545/how-do-i-set-up-ccache
mkdir -p path/to/buildroot
cd path/to/buildroot
git clone git@github.com:/adapteva/epiphany-sdk.git -b master sdk
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.
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
Add this to .bashrc
export EPIPHANY_HOME=/opt/adapteva/esdk
source $EPIPHANY_HOME/setup.sh
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