From 0af4f0431d9c6a5257aa72ac0c3c656f147373ce Mon Sep 17 00:00:00 2001 From: Cedric Girard Date: Thu, 9 May 2019 16:08:01 +0200 Subject: [PATCH] compile produces an elf file as well --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index ea070fc..63e7a66 100644 --- a/Makefile +++ b/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)