Currently, only Ubuntu 14.04+ officially supported as primary development environment.
There are several dependencies, that should be installed manually. The following list is required for building:
gccorg++higher than4.8.2- native
- arm-none-eabi
cmakehigher than2.8.12.2makehigher than3.81bashhigher than4.3.11
sudo apt-get install gcc g++ gcc-arm-none-eabi cmakeThese tools are required for development:
cppcheckrequireslibpcrevera++requirestcl,tkandboost
sudo apt-get install libpcre3 libpcre3-dev
sudo apt-get install tcl8.6 tcl8.6-dev tk8.6-dev libboost-all-devUpon first build, make would try to setup prerequisites, required for further development and pre-commit testing:
- STM32F3 and STM32F4 libraries
- cppcheck 1.66
- vera++ 1.2.1
make prerequisites -jIt may take time, so go grab some coffee:
Setting up prerequisites... (log file: ./build/prerequisites/prerequisites.log)To build debug version for Linux:
make debug.linux -jTo build debug version for Linux without LTO (Link Time Optimization):
LTO=OFF make debug.linux -jmake precommit -jIf some style guidelines, build or test runs fail during precommit, then this is indicated with a message like this:
Build failed. See ./build/bin/unittests/make.log for details.