Base for mbed yotta compilation targets compiling with GCC.
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
CMake
coverage
CHANGELOG.md
LICENSE
readme.md
target.json

readme.md

Base yotta Target Description for Compiling with arm-none-eabi-gcc

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.

Code Coverage

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 } } } }'

Configuring floating point support in 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
  }