Skip to content

Build dependencies

David Banks edited this page Jun 12, 2016 · 16 revisions

Linux

I'm using Ubuntu 14.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 4.7, as there are issues with 4.9):

sudo apt-get install gcc-arm-none-eabi

Finally, we use cmake to manage the make files:

sudo apt-get install cmake

Next: Running cmake

Windows

TODO:

OSX

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