build: use the first serial port for flashing.

Use wildcard to list all of the USB serial ports.  Pick the first.

This is useful on my machine as the board sometimes appears as
/dev/ttyUSB1.

Signed-off-by: Michael Hope <mlhx@google.com>
This commit is contained in:
Michael Hope 2015-06-23 22:42:34 +02:00 committed by Dominic Clifton
parent 66b6ca336a
commit 41c0a7c262
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ OPBL ?=no
DEBUG ?=
# Serial port/Device for flashing
SERIAL_DEVICE ?= /dev/ttyUSB0
SERIAL_DEVICE ?= $(firstword $(wildcard /dev/ttyUSB*) no-port-found)
# Flash size (KB). Some low-end chips actually have more flash than advertised, use this to override.
FLASH_SIZE ?=