1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

Merge pull request #8838 from cladmi/pr/big/cleanup/add_flashfile

Makefiles: add support to generate both `.hex` and `.bin` file and add FLASHFILE variable
This commit is contained in:
Kevin "Tristate Tom" Weiss 2019-08-20 16:06:29 +02:00 committed by GitHub
commit fa81295988
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 5 deletions

View File

@ -426,13 +426,15 @@ include $(RIOTMAKE)/boot/riotboot.mk
elffile: $(ELFFILE)
hexfile: $(HEXFILE)
binfile: $(BINFILE)
# # # FLASHFILE Being introduced, only supported if bsp define FLASHFILE # # #
# # # Not all boards use this file for the moment
#
# FLASHFILE is the file used by the flasher
# (can be overwritten to $(HEXFILE), $(BINFILE))
# Usually set to $(ELFFILE), $(HEXFILE) or $(BINFILE) in the board/flasher
# or application specific files
flashfile: $(FLASHFILE)
ifeq (,$(FLASHFILE))
$(error FLASHFILE is not defined for this board: $(FLASHFILE))
endif
# variables used to compile and link c++
CPPMIX ?= $(if $(wildcard *.cpp),1,)

View File

@ -78,7 +78,7 @@ export PORT # The port to connect the TERMPROG to.
export ELFFILE # The unstripped result of the compilation.
export HEXFILE # The 'intel hex' stripped result of the compilation.
# BINFILE # The 'binary' stripped result of the compilation.
# FLASHFILE # The output file used for flashing (transition phase: only if defined)
# FLASHFILE # The output file used for flashing
# DEBUGGER # The command to call on "make debug", usually a script starting the GDB front-end.
# DEBUGGER_FLAGS # The parameters to supply to DEBUGGER.
# DEBUGSERVER # The command to call on "make debug-server", usually a script starting the GDB server.