compile produces an elf file as well

This commit is contained in:
Cedric Girard 2019-05-09 16:08:01 +02:00
parent 13f1c92d77
commit 0af4f0431d
Signed by: X-dark
GPG Key ID: E7D0E125DB9519E4
1 changed files with 2 additions and 1 deletions

View File

@ -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)