mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2025-12-27 23:41:18 +01:00
Makefile.include: add mechanism to check supported programmers
This commit is contained in:
parent
930e760143
commit
f74cde5172
@ -410,6 +410,17 @@ endif
|
||||
# Include common programmer logic if available
|
||||
-include $(RIOTMAKE)/tools/$(PROGRAMMER).inc.mk
|
||||
|
||||
# Check if programmer is supported by the board, only if PROGRAMMERS_SUPPORTED
|
||||
# is set and if programmer is not iotlab
|
||||
ifneq (iotlab,$(PROGRAMMER))
|
||||
ifneq (,$(PROGRAMMERS_SUPPORTED))
|
||||
ifeq (,$(filter $(PROGRAMMER),$(PROGRAMMERS_SUPPORTED)))
|
||||
$(info '$(PROGRAMMER)' programmer is not supported by this board. \
|
||||
Supported programmers: '$(PROGRAMMERS_SUPPORTED)')
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
# Assume GCC/GNU as supported toolchain if CPU's Makefile.include doesn't
|
||||
# provide this macro
|
||||
TOOLCHAINS_SUPPORTED ?= gnu
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user