Skip to content

Commit 1811ecc

Browse files
jaenrig-ifxactions-user
authored andcommitted
psoc6/Makefile: Update utility to detect devices.
Signed-off-by: jaenrig-ifx <[email protected]>
1 parent a0b388e commit 1811ecc

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ports/psoc6/Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,18 +212,18 @@ deploy: all mtb_program
212212
# When working locally, if a "local-devs.yml" file is placed in "tools/psoc6"
213213
# it will be used
214214
ifneq ($(DEVS_FILE),)
215-
MULTI_BOARD_DEVS_OPTS = -b $(BOARD) -y $(DEVS_FILE)
215+
MULTI_BOARD_DEVS_OPTS = -f name=$(BOARD) --devs-yml $(DEVS_FILE)
216216
else
217217
DFLT_LOCAL_DEVS_FILE_NAME = local-devs.yml
218218
LOCAL_DEVS_FILE=$(TOP)/tools/psoc6/$(DFLT_LOCAL_DEVS_FILE_NAME)
219219
ifneq (,$(wildcard $(LOCAL_DEVS_FILE)))
220-
MULTI_BOARD_DEVS_OPTS = -b $(BOARD) -y $(LOCAL_DEVS_FILE)
220+
MULTI_BOARD_DEVS_OPTS = -f name=$(BOARD) --devs-yml $(LOCAL_DEVS_FILE)
221221
endif
222222
endif
223223

224224
attached_devs:
225225
@:
226-
$(eval ATTACHED_TARGET_LIST = $(shell $(PYTHON) $(TOP)/lib/mpy-test-ext/get_devs.py serial-number $(MULTI_BOARD_DEVS_OPTS)))
226+
$(eval ATTACHED_TARGET_LIST = $(shell $(PYTHON) $(TOP)/lib/mpy-test-ext/devs_query.py serial_number $(MULTI_BOARD_DEVS_OPTS)))
227227
$(eval ATTACHED_TARGETS_NUMBER = $(words $(ATTACHED_TARGET_LIST)))
228228
$(info Number of attached targets : $(ATTACHED_TARGETS_NUMBER))
229229
$(info List of attached targets : $(ATTACHED_TARGET_LIST))

0 commit comments

Comments
 (0)