mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
f4b1d60887
This removes duplication for the jlink case (keeping only any non-default values in the board makefiles), and opens up STK3700's OpenOCD programmability for generic boards.
14 lines
357 B
Makefile
14 lines
357 B
Makefile
INCLUDES += -I$(RIOTBOARD)/common/silabs/include
|
|
INCLUDES += -I$(RIOTBOARD)/common/silabs/drivers/include
|
|
|
|
PROGRAMMER ?= jlink
|
|
|
|
export JLINK_DEVICE ?= ${CPU_MODEL}
|
|
export OPENOCD_CONFIG ?= board/efm32.cfg
|
|
|
|
ifeq ($(PROGRAMMER),jlink)
|
|
include $(RIOTMAKE)/tools/jlink.inc.mk
|
|
else ifeq ($(PROGRAMMER),openocd)
|
|
include $(RIOTMAKE)/tools/openocd.inc.mk
|
|
endif
|