diff options
author | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-11-28 01:54:46 +0200 |
---|---|---|
committer | Paul Sokolovsky <pfalcon@users.sourceforge.net> | 2014-11-28 01:54:46 +0200 |
commit | 1bbc389d67932e2afa0699848422b944d0ca759e (patch) | |
tree | 8bb03f9fd5c4e78aa94c7abff850c94a0ad1f0cf | |
parent | 075d597464be619475535930de2f36abe69176f8 (diff) | |
download | micropython-1bbc389d67932e2afa0699848422b944d0ca759e.tar.gz micropython-1bbc389d67932e2afa0699848422b944d0ca759e.zip |
esp8266: Allow to override serial port.
-rw-r--r-- | esp8266/Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/esp8266/Makefile b/esp8266/Makefile index 6826ce9dd2..28f5ce13d2 100644 --- a/esp8266/Makefile +++ b/esp8266/Makefile @@ -10,6 +10,7 @@ ifeq ($(ESP_SDK),) $(error ESP_SDK must be set) endif +PORT = /dev/ttyACM0 CROSS_COMPILE = xtensa-lx106-elf- INC = -I. @@ -72,9 +73,9 @@ all: $(BUILD)/firmware-combined.bin deploy: $(BUILD)/firmware-combined.bin $(ECHO) "Writing $< to the board" - $(Q)esptool.py --port /dev/ttyACM0 write_flash 0 $< - #$(Q)esptool.py --port /dev/ttyACM0 write_flash 0 $(BUILD)/firmware.elf-0x00000.bin - #$(Q)esptool.py --port /dev/ttyACM0 write_flash 0x10000 $(BUILD)/firmware.elf-0x10000.bin + $(Q)esptool.py --port $(PORT) write_flash 0 $< + #$(Q)esptool.py --port $(PORT) write_flash 0 $(BUILD)/firmware.elf-0x00000.bin + #$(Q)esptool.py --port $(PORT) write_flash 0x10000 $(BUILD)/firmware.elf-0x10000.bin $(BUILD)/firmware-combined.bin: $(BUILD)/firmware.elf $(ECHO) "Create $@" |