GettingStarted osx » History » Version 5
Please note that OSX is not a supported platform for osmocomBB.
This page will describe how to compile the firmware and the host utilities.
If you haven't do so already, checkout PreliminaryRequirements
osmocomBB consists out of software that is intended to be run on the phone (target) and the host system.
Dependencies for the host¶
osmocomBB requires GNU autoconf, automake, libtool, pkg-config, make and GCC to compile. You will
also need to use git to access and update the sources. There should be no other depedencies. The name
of these packages depend on the distribution used.
For OSX 10.7 Lion XCode is needed and can be downloaded from the Mac-Appstore here
sudo port install libtool-devel autoconf git-core pkgconfig automake17 gcc46
sudo fink install autoconf2.6 automake1.11 gcc46 git libtool2 pkgconfig
Dependencies for the target¶
To compile osmocomBB or SIMtrace for the target we need a GNU for ARM.
With Macports you can install arm-elf-gcc port command:
sudo port install arm-elf-gcc
For Fink or for manual compilation go to toolchain
Getting and updating the source¶
git clone git://git.osmocom.org/osmocom-bb.git
$ cd osmocom-bb $ git pull --rebase
PATH environment variable¶
Please ensure that the cross-compiler is available in your
PATH, for example by adding the following command to your shell's startup script (e.g.
.bashrc) or typing it in the terminal you use to build:
Building the source¶
Compiling both the target and the host code will happen with the following command. It assumes that the arm-elf-gcc
is inside the current path.
$ cd src $ make
If no error has occured you will have the firmware binaries in src/target/firmware/board/compal_e88/*.bin that can be
used with the Motorola C123. You also have the binaries to run on your host in src/host/osmocon/osmocon, in
src/host/layer23/src/misc and layer23/src/mobile.