Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 21 additions & 1 deletion docs/advanced/mbed_targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,27 @@ When you use target inheritance, you may alter the values of `extra_labels` usin

### `features`, `features_add` and `features_remove`

The list of _features_ enables software features on a platform. Like `extra_labels`, `features` makes the build system aware of additional directories it must scan for resources.
The list of _features_ enables software features on a platform. Like `extra_labels`, `features` makes the build system aware of additional directories it must scan for resources. Unlike `extra_labels`, the build system recognizes a fixed set of values in the `features` list. The build system recognizes the following features:
- `UVISOR`.
- `BLE`.
- `CLIENT`.
- `IPV4`.
- `LWIP`.
- `COMMON_PAL`.
- `STORAGE`.
- `NANOSTACK`.

The following features, also recognized by the build system, are all Nanostack configurations:
- `LOWPAN_BORDER_ROUTER`.
- `LOWPAN_HOST`.
- `LOWPAN_ROUTER`.
- `NANOSTACK_FULL`.
- `THREAD_BORDER_ROUTER`.
- `THREAD_END_DEVICE`.
- `THREAD_ROUTER`.
- `ETHERNET_HOST`.

The build system errors when you use features outside of this list.

When you use target inheritance, you may alter the values of `features` using `features_add` and `features_remove`. This is similar to the `macros_add` and `macros_remove` mechanism the previous section describes.

Expand Down