Skip to content

Build process explained

Maxime Vincent edited this page Jan 5, 2016 · 11 revisions

The official build process for picoTCP is a Makefile. This section will explain how this works, how modules are enabled or disabled, how a specific compiler or architecture is chosen.

Native build (e.g. linux)

make

Defaults to the GNU compiler tools (gcc, as, ld, ranlib ...)

This will result in a library, found in $PREFIX/lib, called libpicotcp.a

Cross-compiling with gcc

CROSS_COMPILE=arm-none-eabi make

Defaults to the GNU compiler tools (gcc, as, ld, ranlib ...)

Selecting a different compiler

tbd

Selecting an architecture

CROSS_COMPILE=arm-none-eabi ARCH=cortex-m3 make

ARCH has to be define in ...

Selecting modules

IPV4=0 make

Modules can be found in the Makefile.

Other options

tbd

Clone this wiki locally