File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ FLASH_MODE ?= qio
32
32
FLASH_SIZE ?= detect
33
33
CROSS_COMPILE = xtensa-lx106-elf-
34
34
ESP_SDK = $(shell $(CC ) -print-sysroot) /usr
35
+ ESPTOOL = esptool.py
35
36
36
37
INC += -I.
37
38
INC += -I$(TOP )
@@ -230,18 +231,18 @@ FROZEN_EXTRA_DEPS = $(CONFVARS_FILE)
230
231
231
232
deploy : $(BUILD ) /firmware-combined.bin
232
233
$(ECHO ) " Writing $< to the board"
233
- $(Q ) esptool.py --port $(PORT ) --baud $(BAUD ) write_flash --verify --flash_size=$(FLASH_SIZE ) --flash_mode=$(FLASH_MODE ) 0 $<
234
+ $(Q )$( ESPTOOL ) --port $(PORT ) --baud $(BAUD ) write_flash --verify --flash_size=$(FLASH_SIZE ) --flash_mode=$(FLASH_MODE ) 0 $<
234
235
235
236
erase :
236
237
$(ECHO ) " Erase flash"
237
- $(Q ) esptool.py --port $(PORT ) --baud $(BAUD ) erase_flash
238
+ $(Q )$( ESPTOOL ) --port $(PORT ) --baud $(BAUD ) erase_flash
238
239
239
240
reset :
240
241
echo -e " \r\nimport machine; machine.reset()\r\n" > $(PORT )
241
242
242
243
$(FWBIN ) : $(BUILD ) /firmware.elf
243
244
$(ECHO ) " Create $@ "
244
- $(Q ) python2 $( shell which esptool.py ) elf2image $^
245
+ $(Q )$( ESPTOOL ) elf2image $^
245
246
$(Q )$(PYTHON ) makeimg.py $(BUILD ) /firmware.elf-0x00000.bin $(BUILD ) /firmware.elf-0x[0-5][1-f]000.bin $@
246
247
247
248
You can’t perform that action at this time.
0 commit comments