Skip to content

Commit 16a2687

Browse files
committed
Added discovery priority based on the currently selected board
1 parent bfcb83d commit 16a2687

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

RFCs/0002-pluggable-discovery.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,8 @@ It may happen that different 3rd party platforms provides the same discovery or
241241

242242
We can partially handle this if the `DISCOVERY_ID` field in `platform.txt` is well defined: from the CLI we could group together the platforms that requires the same discovery and launch the latest version available just once. How the different 3rd party will agree on the `DISCOVERY_ID` value population is TBD.
243243

244+
In case different discoveries provide conflicting information (for example if two discoveries provide different information for the same port address) we could partially mitigate the issue by giving priority to the discovery that is bundled with the package of the selected board.
245+
244246
#### Board identification
245247

246248
The metadata `identificationPrefs` associated to a port can be used to identify the board attached to that port. The algorithm is very simple: if a board listed in the platform file `boards.txt` match the same `identificationPrefs` coming from the discovery then the board is a “candidate” board attached to that port. Some identification properties may be imperfect and not uniquely identify a board, in that case more boards can match the same `identificationPrefs`, that’s why we called it “candidate”.

0 commit comments

Comments
 (0)