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

boards/common/qn908x: perfom checksum on shadow copy

This commit is contained in:
Leandro Lanzieri 2022-03-07 08:39:51 +01:00
parent f31fdfd12d
commit 5438a967aa
No known key found for this signature in database
GPG Key ID: F4E9A721761C7593

View File

@ -22,8 +22,12 @@ OPENOCD_PRE_FLASH_CMDS += "-c qn908x disable_wdog"
# in another ELF file and we set it as the FLASHFILE.
ELFFILE ?= $(BINDIR)/$(APPLICATION).elf
ELFFILE_CHECKSUM ?= $(ELFFILE:.elf=-checksum.elf)
ELFFILE_SHADOW ?= $(ELFFILE:.elf=-shadow.elf)
$(ELFFILE_CHECKSUM): $(ELFFILE)
$(ELFFILE_SHADOW): $(ELFFILE)
$(Q)cp $(ELFFILE) $(ELFFILE_SHADOW)
$(ELFFILE_CHECKSUM): $(ELFFILE_SHADOW)
$(Q)$(OBJCOPY) --dump-section .vectors=$<.vectors $<
$(Q)$(RIOTBOARD)/common/qn908x/dist/nxp_checksum.py $(if $(Q),--quiet) \
$<.vectors