Build Flags - kbonset/RIOT GitHub Wiki
There are a couple of flags you can use to statically modify RIOT's behavior or to enable/disable certain features.
Usage Example:
QUIET=1 CFLAGS="-DSCHEDSTATISTICS -DDEVELHELP" make clean all
General
CFLAGS=-DSCHEDSTATISTICS
- enable gathering and display of scheduler statisticsCFLAGS=-DDEVELHELP
- enable certain code sections useful for developmentCFLAGS=-DSCHED_TEST_STACK
- enable (simple) testing for stack overflowsRIOT_VERSION=foo
- build a tagged version of RIOTRIOT_VERSION_OVERRIDE
- override the version string - useful for comparing build sizes (available once https://github.com/RIOT-OS/RIOT/pull/3035 is merged)
Make Specific
QUIET=1
/QUIET=0
- enable/disable hiding of compiler invocations
Platform Specific
native
CFLAGS=-DNATIVE_AUTO_EXIT
- terminate the native process after the last RIOT thread has exited.
Cortex-M based
(available once https://github.com/RIOT-OS/RIOT/pull/3119 is merged)
TOOLCHAIN=gnu
- build with GNU toolchain (GCC, binutils etc), this is the defaultTOOLCHAIN=llvm
- build with LLVM/Clang (some binutils tools are still required)
Module Specific
transceiver
CFLAGS=-DDBG_IGNORE
- enable the transceivers ignore command (useful for debugging)