Merge pull request #3185 from daniel-k/fix_openocd_serial

openocd: fix SERIAL env to select board
This commit is contained in:
Joakim Gebart 2015-06-25 08:51:28 +02:00
commit 31f95c40f1

View File

@ -11,6 +11,13 @@ include $(RIOTBOARD)/$(BOARD)/Makefile.dep
# setup serial terminal
include $(RIOTBOARD)/Makefile.include.serial
# Add board selector (USB serial) to OpenOCD options if specified.
# Use /dist/tools/usb-serial/list-ttys.sh to find out serial number.
# Usage: SERIAL="ATML..." BOARD="samr21-xpro" make flash
ifneq (,$(SERIAL))
export OPENOCD_EXTRA_INIT += "-c cmsis_dap_serial $(SERIAL)"
endif
# this board uses openocd
include $(RIOTBOARD)/Makefile.include.openocd