Please note: This repository is deprecated and it is no longer actively maintained.
This is a base yotta target description for compiling mbed OS with the arm gcc cross-compiler. 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.
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 } } } }'
printf
Floating point support in printf
is enabled by default by this target
description. (Although derived targets may override this behaviour through the
yotta config system.)
If you need to change the default behaviour (perhaps because the increase in
code-size is unacceptable to you), then you can do this in the config
section
of a target description, or in an application's config.json
file:
"gcc": {
"printf-float": false
}
Or:
"gcc": {
"printf-float": true
}