From b4fecf33edf6087579f5a1e587964e3f03bc5cbb Mon Sep 17 00:00:00 2001 From: Alexandre Abadie Date: Thu, 11 Feb 2021 14:12:50 +0100 Subject: [PATCH] makefiles/stm32.inc.mk: allow to override supported programmers The check on supported programmers is now also done in the main Makefile.include, so it's removed from there --- makefiles/boards/stm32.inc.mk | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/makefiles/boards/stm32.inc.mk b/makefiles/boards/stm32.inc.mk index c55374a2c7..d848177415 100644 --- a/makefiles/boards/stm32.inc.mk +++ b/makefiles/boards/stm32.inc.mk @@ -1,10 +1,5 @@ PROGRAMMER ?= openocd - -PROGRAMMERS_SUPPORTED := bmp dfu-util openocd stm32flash jlink - -ifeq (,$(filter $(PROGRAMMER), $(PROGRAMMERS_SUPPORTED))) - $(error Programmer $(PROGRAMMER) not supported) -endif +PROGRAMMERS_SUPPORTED += bmp dfu-util openocd stm32flash ifeq (bmp,$(PROGRAMMER)) # On Blackmagic Probe, the first ACM is used to connect to the gdb server,