mirror of
https://github.com/RIOT-OS/RIOT.git
synced 2024-12-29 04:50:03 +01:00
boards/*silabs: Move programmer selection to common
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.
This commit is contained in:
parent
80167b8ba4
commit
f4b1d60887
@ -1,2 +1,13 @@
|
||||
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
|
||||
|
@ -13,7 +13,6 @@ include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
||||
# setup JLink for flashing
|
||||
export JLINK_DEVICE := $(MODULE_JLINK_DEVICE)
|
||||
include $(RIOTMAKE)/tools/jlink.inc.mk
|
||||
|
||||
# include board common
|
||||
include $(RIOTBOARD)/common/silabs/Makefile.include
|
||||
|
@ -6,9 +6,7 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
||||
# setup JLink for flashing
|
||||
export JLINK_DEVICE := $(CPU_MODEL)
|
||||
export JLINK_PRE_FLASH = r
|
||||
include $(RIOTMAKE)/tools/jlink.inc.mk
|
||||
|
||||
# include board common
|
||||
include $(RIOTBOARD)/common/silabs/Makefile.include
|
||||
|
@ -6,9 +6,7 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
||||
# setup JLink for flashing
|
||||
export JLINK_DEVICE := $(CPU_MODEL)
|
||||
export JLINK_PRE_FLASH = r
|
||||
include $(RIOTMAKE)/tools/jlink.inc.mk
|
||||
|
||||
# include board common
|
||||
include $(RIOTBOARD)/common/silabs/Makefile.include
|
||||
|
@ -8,7 +8,6 @@ include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
# setup JLink for flashing
|
||||
export JLINK_DEVICE := EFR32MG1PxxxF256
|
||||
export JLINK_PRE_FLASH = r
|
||||
include $(RIOTMAKE)/tools/jlink.inc.mk
|
||||
|
||||
# include board common
|
||||
include $(RIOTBOARD)/common/silabs/Makefile.include
|
||||
|
@ -5,9 +5,5 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
# setup serial terminal
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
||||
# setup JLink for flashing
|
||||
export JLINK_DEVICE := $(CPU_MODEL)
|
||||
include $(RIOTMAKE)/tools/jlink.inc.mk
|
||||
|
||||
# include board common
|
||||
include $(RIOTBOARD)/common/silabs/Makefile.include
|
||||
|
@ -5,16 +5,5 @@ PORT_DARWIN ?= $(firstword $(sort $(wildcard /dev/tty.usbmodem*)))
|
||||
# setup serial terminal
|
||||
include $(RIOTMAKE)/tools/serial.inc.mk
|
||||
|
||||
PROGRAMMER ?= jlink
|
||||
|
||||
ifeq ($(PROGRAMMER),jlink)
|
||||
# setup JLink for flashing
|
||||
export JLINK_DEVICE := $(CPU_MODEL)
|
||||
include $(RIOTMAKE)/tools/jlink.inc.mk
|
||||
else ifeq ($(PROGRAMMER),openocd)
|
||||
export OPENOCD_CONFIG := board/efm32.cfg
|
||||
include $(RIOTMAKE)/tools/openocd.inc.mk
|
||||
endif
|
||||
|
||||
# include board common
|
||||
include $(RIOTBOARD)/common/silabs/Makefile.include
|
||||
|
Loading…
Reference in New Issue
Block a user