Skip to content

Commit 13de591

Browse files
committed
Makefile.include: allow overwriting flash-recipe
This allows changing the flashing commands from the outside or in a BSP.
1 parent cfde3f1 commit 13de591

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile.include

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -526,10 +526,12 @@ distclean:
526526
-@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTPKG)/$$i distclean ; done
527527
-@rm -rf $(BINDIRBASE)
528528

529-
define flash-recipe
529+
# Define flash-recipe with a default value
530+
define default-flash-recipe
530531
$(call check_cmd,$(FLASHER),Flash program)
531532
$(FLASHER) $(FFLAGS)
532533
endef
534+
flash-recipe ?= $(default-flash-recipe)
533535

534536
# Do not add dependencies to "flash" directly, use FLASHDEPS, as this is shared
535537
# with flash-only too

0 commit comments

Comments
 (0)