Commit fd9fa715 authored by Johny Mattsson's avatar Johny Mattsson
Browse files

Ensure ESP32 bins are created fresh.

Just appending to previously built bins was not a successful approach...
parent d33945b6
...@@ -165,6 +165,7 @@ $(BINODIR)/%.bin: $(IMAGEODIR)/%.out ...@@ -165,6 +165,7 @@ $(BINODIR)/%.bin: $(IMAGEODIR)/%.out
ifeq ($(HW),ESP8266) ifeq ($(HW),ESP8266)
$(ESPTOOL) elf2image $< -o $(FIRMWAREDIR) $(ESPTOOL) elf2image $< -o $(FIRMWAREDIR)
else ifeq ($(HW),ESP32) else ifeq ($(HW),ESP32)
@rm -f $(FIRMWAREDIR)/*
@$(OBJCOPY) --only-section .text -O binary $< eagle.app.v7.text.bin @$(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 .data -O binary $< eagle.app.v7.data.bin
@$(OBJCOPY) --only-section .rodata -O binary $< eagle.app.v7.rodata.bin @$(OBJCOPY) --only-section .rodata -O binary $< eagle.app.v7.rodata.bin
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment