Please note: This repository is deprecated and it is no longer actively maintained.
This is a base yotta target description for compiling mbed OS. Other target descriptions can inherit from it and add or override things as necessary (such as the link script, or preprocessor definitions).
You should not select this target to compile with directly (compilation will probably not succeed without target-specific startup code).
See CHANGELOG.md for the changes associated with each version.
This target description supports both the arm-none-eabi-gcc
and armcc
(version 5) compilers. The toolchain to be used can be specified in the yotta
config defined by a derived
target or an application.
Derived targets must specify a default toolchain, for example in the derived
target.json
file:
"config": {
"mbed": {
"toolchain": "gcc"
}
}
To enable code coverage for a specific module, add this config to the application's config.json:
"debug" : {
"options" : {
"coverage" : {
"modules" : {
"<module name>" : true
}
}
}
}
For example, to add code coverage to the sockets module, use this config:
"debug" : {
"options" : {
"coverage" : {
"modules" : {
"sockets" : true
}
}
}
}
If building tests, then this config can be passed on the command line via the --config
option. For example,
yotta build --config testconfig.json
yotta build --config '"debug" : { "options" : { "coverage" : { "modules" : { "sockets" : true } } } }'