compile produces an elf file as well
This commit is contained in:
parent
13f1c92d77
commit
0af4f0431d
1 changed files with 2 additions and 1 deletions
3
Makefile
3
Makefile
|
@ -2,6 +2,7 @@ FQBN := esp32:esp32:esp32
|
|||
NAME := esp32-env-monitor
|
||||
SOURCE := $(addsuffix .ino, $(NAME)) wifi_login.h
|
||||
TARGET := $(addsuffix .$(subst :,.,$(FQBN)).bin, $(NAME))
|
||||
ELF := $(addsuffix .$(subst :,.,$(FQBN)).elf, $(NAME))
|
||||
ESPTOOL := ~/.arduino15/packages/esp32/tools/esptool_py/2.6.1/esptool.py
|
||||
PORT := /dev/ttyUSB0
|
||||
ADDRESS := 0x10000
|
||||
|
@ -11,7 +12,7 @@ ADDRESS := 0x10000
|
|||
compile: $(TARGET)
|
||||
|
||||
clean:
|
||||
rm -f $(TARGET)
|
||||
rm -f $(TARGET) $(ELF)
|
||||
|
||||
upload: $(TARGET)
|
||||
$(ESPTOOL) --port $(PORT) write_flash $(ADDRESS) $(TARGET)
|
||||
|
|
Loading…
Reference in a new issue