sanitycheck: allow device runner board-id to differ from board id
Boards like mimxrt1060_evk are recognized by the scanner through their USB device which has an ID, but in some cases the board may be programmed using an external J-Link probe. Support this by adding a probe_id key that can be added to the yaml dictionary to override the use of id for this purpose. Signed-off-by: Peter Bigot <peter.bigot@nordicsemi.no>
This commit is contained in:
parent
52356ebde4
commit
da7384846e
|
@ -731,7 +731,7 @@ class DeviceHandler(Handler):
|
|||
|
||||
runner = hardware.get('runner', None)
|
||||
if runner:
|
||||
board_id = hardware.get("id", None)
|
||||
board_id = hardware.get("probe_id", hardware.get("id", None))
|
||||
product = hardware.get("product", None)
|
||||
command = ["west", "flash", "--skip-rebuild", "-d", self.build_dir]
|
||||
command.append("--runner")
|
||||
|
|
Loading…
Reference in a new issue