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:
parent
cfde3f1596
commit
13de591a95
@ -526,10 +526,12 @@ distclean:
|
|||||||
-@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTPKG)/$$i distclean ; done
|
-@for i in $(USEPKG) ; do "$(MAKE)" -C $(RIOTPKG)/$$i distclean ; done
|
||||||
-@rm -rf $(BINDIRBASE)
|
-@rm -rf $(BINDIRBASE)
|
||||||
|
|
||||||
define flash-recipe
|
# Define flash-recipe with a default value
|
||||||
|
define default-flash-recipe
|
||||||
$(call check_cmd,$(FLASHER),Flash program)
|
$(call check_cmd,$(FLASHER),Flash program)
|
||||||
$(FLASHER) $(FFLAGS)
|
$(FLASHER) $(FFLAGS)
|
||||||
endef
|
endef
|
||||||
|
flash-recipe ?= $(default-flash-recipe)
|
||||||
|
|
||||||
# Do not add dependencies to "flash" directly, use FLASHDEPS, as this is shared
|
# Do not add dependencies to "flash" directly, use FLASHDEPS, as this is shared
|
||||||
# with flash-only too
|
# with flash-only too
|
||||||
|
Loading…
Reference in New Issue
Block a user