From d655a5eb915f0c067f5929badb7549dd02468d1b Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 4 Nov 2019 15:42:51 +0100 Subject: esp8266: make serial port configurable --- src/arch/esp8266/Makefile.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/arch/esp8266') diff --git a/src/arch/esp8266/Makefile.inc b/src/arch/esp8266/Makefile.inc index 70b319e..f0f36f9 100644 --- a/src/arch/esp8266/Makefile.inc +++ b/src/arch/esp8266/Makefile.inc @@ -62,14 +62,14 @@ build/0x40000.bin: build/0x00000.bin # also created by commandline for 0x00000.bin program: build/0x00000.bin build/0x40000.bin - ${ESPTOOL} write_flash 0x00000 build/0x00000.bin 0x40000 build/0x40000.bin -fm dout + ${ESPTOOL} -p ${SERIAL_PORT} write_flash 0x00000 build/0x00000.bin 0x40000 build/0x40000.bin -fm dout arch_clean: rm -f ${OBJECTS} rm -f build/system.ar monitor: - screen /dev/ttyUSB0 115200 + screen ${SERIAL_PORT} 115200 arch_help: @echo "esp8266 coding advice:" -- cgit v1.2.3