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

Merge pull request #11433 from cladmi/pr/make/flash_recipe/allow_overriding

Makefile.include: allow overwriting flash-recipe
This commit is contained in:
Gaëtan Harter 2019-05-28 14:45:47 +02:00 committed by GitHub
commit 545a5f74aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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