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

Makefile.include: allow overwriting flash-recipe

This allows changing the flashing commands from the outside or in a BSP.
This commit is contained in:
Gaëtan Harter 2019-04-23 14:55:55 +02:00
parent cfde3f1596
commit 13de591a95
No known key found for this signature in database
GPG Key ID: 76DF6BCF1B1F883B

View File

@ -526,10 +526,12 @@ distclean:
-@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTPKG)/$$i distclean ; done
-@rm -rf $(BINDIRBASE)
define flash-recipe
# Define flash-recipe with a default value
define default-flash-recipe
$(call check_cmd,$(FLASHER),Flash program)
$(FLASHER) $(FFLAGS)
endef
flash-recipe ?= $(default-flash-recipe)
# Do not add dependencies to "flash" directly, use FLASHDEPS, as this is shared
# with flash-only too