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:
parent
66b6ca336a
commit
41c0a7c262
2
Makefile
2
Makefile
|
@ -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 ?=
|
||||
|
|
Loading…
Reference in New Issue