Skip to content

Commit 17a18a4

Browse files
authored
Now I figured out custom_targets
Please add a note about the --source switch affecting where cli expected custom_targets.json, something like I wrote here, as it's kind of a "gotcha"
1 parent 8bb7ce4 commit 17a18a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/tools/mbed_targets.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## Adding and configuring targets
22

3-
Arm Mbed uses JSON as a description language for its build targets. You can find the JSON description of Mbed targets in `targets/targets.json` and in `custom_targets.json` in the root of a project directory. When you add new targets with `custom_targets.json`, they are added to the list of available targets.
3+
Arm Mbed uses JSON as a description language for its build targets. You can find the JSON description of Mbed targets in `targets/targets.json` and in `custom_targets.json` in the root of a project directory. If you provide a source directory via the "--source" switch, then mbed will look for custom_targets.json in that directory instead. When you add new targets with `custom_targets.json`, they are added to the list of available targets.
44

55
<span class="notes">**Note:** The Online Compiler does not support this functionality. You need to use [Mbed CLI](/docs/v5.7/tools/arm-mbed-cli.html) to take your code offline.</span>
66

0 commit comments

Comments
 (0)