Ensure ESP32 bins are created fresh.

Just appending to previously built bins was not a successful approach...
This commit is contained in:
Johny Mattsson 2016-06-21 19:16:35 +10:00
parent d33945b68b
commit fd9fa71541
1 changed files with 1 additions and 0 deletions

View File

@ -165,6 +165,7 @@ $(BINODIR)/%.bin: $(IMAGEODIR)/%.out
ifeq ($(HW),ESP8266)
$(ESPTOOL) elf2image $< -o $(FIRMWAREDIR)
else ifeq ($(HW),ESP32)
@rm -f $(FIRMWAREDIR)/*
@$(OBJCOPY) --only-section .text -O binary $< eagle.app.v7.text.bin
@$(OBJCOPY) --only-section .data -O binary $< eagle.app.v7.data.bin
@$(OBJCOPY) --only-section .rodata -O binary $< eagle.app.v7.rodata.bin