tests: extract serials to optional local config

Instead of having committed files containing a single developer's serials, use
optional includes to include a local config file for each board.

If you have only a single board connected, simply:

$ make -f Makefile.<board> clean all flash

If you have multiple boards connected, make sure to fill in the appropriate
hla_serial in your openocd.<board>.local.cfg file, and then run the same
commands.
This commit is contained in:
Karl Palsson
2016-01-26 23:47:06 +00:00
parent 5738e9515d
commit 84dec14d60
8 changed files with 23 additions and 14 deletions

View File

@@ -3,10 +3,8 @@ source [find interface/stlink-v2-1.cfg]
set WORKAREASIZE 0x2000
source [find target/stm32l1.cfg]
hla_serial "066DFF495351885087171826" # My l4 disco
# Serial of my l1 disco used as stlink here.
#hla_serial "S?l\x06H?WQ%\x10\x18?" # My l1 disco
source openocd.common.cfg
optional_local "openocd.stm32l1-generic.local.cfg"
tpiu config internal swodump.stm32l1-generic.log uart off 32000000