Skip to content

Build dependencies

David Banks edited this page Oct 21, 2017 · 16 revisions

Linux

I'm using Ubuntu 16.04, and the following packages are required:

You'll need git, to be able to check out the repository:

sudo apt-get install git gitk

Next, you'll need the ARM GCC cross compiler (check it's version 6.x not earlier):

sudo add-apt-repository ppa:team-gcc-arm-embedded/ppa
sudo apt-get update
sudo apt-get install gcc-arm-embedded

Finally, we use cmake to manage the make files:

sudo apt-get install cmake

Next: Running cmake

Windows

Under Windows 10 Anniversary edition you can use the Bash Ubuntu Shell (you will need to enable developer mode) and follow the Linux instructions. It is simpler to copy files if you make a directory under your c drive and do all the work in there.

mkdir /mnt/c/linux
cd /mnt/c/linux

OSX

The below instructions need updating to use version 6.x of gcc-arm-none-eabi

You will need git, cmake, and version 4.7 of gcc-arm-none-eabi. You already have git, although it might be an old version. For cmake, assuming you are using MacPorts, install with

sudo port install cmake

You will need to download version 4.7 of gcc-arm-none-eabi from elsewhere, for example launchpad.net. Let's assume you get this:

ls -l Downloads/gcc-arm-none-eabi-4_7-2014q2-20140408-mac.tar.bz2

Now unpack the tarfile:

sudo tar -C /opt/local/bin -xjf Downloads/gcc-arm-none-eabi-4_7-2014q2-20140408-mac.tar.bz2

Finally, you should adjust your PATH:

PATH=$PATH:/opt/local/bin/gcc-arm-none-eabi-4_7-2014q2/bin

Next: Compiling kernel.img