Skip to content

Commit 5484ebf

Browse files
massonalfpistm
authored andcommitted
cmake: Add doc on BOOTLOADER
1 parent 2adc23e commit 5484ebf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

_cmake/Functions reference.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,7 @@ set_board(<boardName>
169169
[USB <usbSetting>]
170170
[XUSB <usbSpeed>]
171171
[VIRTIO <virtioSetting>]
172+
[BOOTLOADER <bootloader>]
172173
)
173174
```
174175

@@ -178,9 +179,10 @@ and caches the result in a CMake-readable database.
178179

179180
The first argument to this function must be the board codename, as used in boards.txt.
180181
E.g., "GENERIC_L010RBTX", not "Generic L010RBTx" (the latter being what the IDE displays).
181-
Then come any number of the four keywords, in any order. As with `overall_settings`, default values are used on fallback.
182+
Then come any number of the five keywords, in any order. As with `overall_settings`, default values are used on fallback.
182183
Depending on your board, not all features may be meaningful. Note: the values for each keyword are case-sensitive!
183184
- SERIAL: Serial support. Usually one of `generic`, `disabled`, `none` (standing for "Enabled (no generic 'Serial')");
184185
- USB: USB support. Usually one of `none`, `CDCgen`, `CDC`, `HID`;
185186
- XUSB: USB speed. Usually one of `FS`, `HS`, `HSFS`;
186-
- VIRTIO: virtIO support. Usually one of `disable`, `generic`, `enabled`.
187+
- VIRTIO: virtIO support. Usually one of `disable`, `generic`, `enabled`;
188+
- BOOTLOADER: third-party bootloader impacting the build (link step). Usually one of `hid`, `dfuo`, `dfu2`.

0 commit comments

Comments
 (0)