1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

make/esptool: fix FFLAGS inclusion order for qemu

This commit is contained in:
Alexandre Abadie 2021-02-22 10:35:38 +01:00
parent 65ffb4261c
commit 430770886b
No known key found for this signature in database
GPG Key ID: 1C919A403CAE1405
2 changed files with 4 additions and 6 deletions

View File

@ -79,9 +79,3 @@ endif
ifneq (,$(filter cpp,$(FEATURES_USED)))
ARCHIVES += -lstdc++
endif
# additional flasher configuration for ESP32 QEMU
ifneq (,$(filter esp_qemu,$(USEMODULE)))
FFLAGS += cp $(RIOTCPU)/$(CPU)/bin/rom_0x3ff90000_0x00010000.bin $(BINDIR)/rom1.bin &&
FFLAGS += cp $(RIOTCPU)/$(CPU)/bin/rom_0x40000000_0x000c2000.bin $(BINDIR)/rom.bin
endif

View File

@ -40,6 +40,10 @@ ifneq (,$(filter esp_qemu,$(USEMODULE)))
FFLAGS += head -c $$((0x10000)) |
FFLAGS += cat - $(FLASHFILE).bin tmp.bin |
FFLAGS += head -c $(FLASH_SIZE)MB > $(BINDIR)/$(CPU)flash.bin && rm tmp.bin;
ifeq (esp32,$(CPU_FAM))
FFLAGS += cp $(RIOTCPU)/$(CPU)/bin/rom_0x3ff90000_0x00010000.bin $(BINDIR)/rom1.bin &&
FFLAGS += cp $(RIOTCPU)/$(CPU)/bin/rom_0x40000000_0x000c2000.bin $(BINDIR)/rom.bin
endif
else
PROGRAMMER_SPEED ?= 460800
FLASHER = $(ESPTOOL)