1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00
RIOT/boards/generic-cc2538-cc2592-dk/Makefile.include
Marian Buschsieweke 947d05ed77
boards/generic-cc2538-cc2592-dk: add board support
The CC2538-CC2592-DK is one of the few readily available and
affordable boards featuring a legacy CC2538 MCU. This should make
maintaining RIOT support for that legacy MCU more affordable :-)
2024-01-05 00:00:48 +01:00

22 lines
689 B
Makefile

TTY_BOARD_FILTER := --vendor 'Silicon Labs' --model 'CP2102 USB to UART Bridge Controller'
OPENOCD_DEBUG_ADAPTER ?= jlink
OPENOCD_TRANSPORT := jtag
ifneq (,$(filter debug debug-server,$(MAKECMDGOALS)))
# `make debug` doesn't work with default cc2538-bsl, so let's default
# OpenOCD when the user wants to debug
PROGRAMMER ?= openocd
# OpenOCD only works for debugging, not flashing
PROGRAMMERS_SUPPORTED += openocd
endif
ifeq (openocd,$(PROGRAMMER))
ifneq (,$(filter flash flash-only,$(MAKECMDGOALS)))
$(error "Flashing the generic-cc2538-cc2592-dk via OpenOCD is not supported (yet), only debugging")
endif
endif
include $(RIOTBOARD)/common/cc2538/Makefile.include