Skip to content
Snippets Groups Projects
Unverified Commit 1087e493 authored by Gaëtan Harter's avatar Gaëtan Harter
Browse files

dist/tools/usb-serial: use RIOTTOOLS variable

parent b0b28355
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,7 @@ solution): ...@@ -45,7 +45,7 @@ solution):
ifeq ($(PORT),) ifeq ($(PORT),)
# try to find tty name by serial number, only works on Linux currently. # try to find tty name by serial number, only works on Linux currently.
ifeq ($(OS),Linux) ifeq ($(OS),Linux)
PORT := $(firstword $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh "^$(PROGRAMMER_SERIAL)$$")) PORT := $(firstword $(shell $(RIOTTOOLS)/usb-serial/find-tty.sh "^$(PROGRAMMER_SERIAL)$$"))
endif endif
endif endif
endif endif
...@@ -53,7 +53,7 @@ solution): ...@@ -53,7 +53,7 @@ solution):
# Fallback PORT if no serial was specified or if the specified serial was not found # Fallback PORT if no serial was specified or if the specified serial was not found
ifeq ($(PORT),) ifeq ($(PORT),)
ifeq ($(OS),Linux) ifeq ($(OS),Linux)
PORT := $(firstword $(shell $(RIOTBASE)/dist/tools/usb-serial/find-tty.sh)) PORT := $(firstword $(shell $(RIOTTOOLS)/usb-serial/find-tty.sh))
else ifeq ($(OS),Darwin) else ifeq ($(OS),Darwin)
PORT := $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1) PORT := $(shell ls -1 /dev/tty.SLAB_USBtoUART* | head -n 1)
endif endif
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment