olsndot/openocd/openocd.common.cfg
Karl Palsson 8366c94592 common openocd: use -s to find files from test dirs.
The sourcing of the common.cfg and the optional local files was failing
when invoked from a test directory.  Use -s and properly use [find ...]
to search paths nicely.
2017-10-26 22:10:03 +00:00

10 lines
341 B
INI

# Shared openocd script helpers
# put things like "hla_serial 'asdfadfa'" in openocd.<board>.local.cfg to support
# multiple simultaneously connected boards.
proc optional_local { LOCAL_FILE } {
if { [ file exists $LOCAL_FILE ] } {
puts "Loading custom local settings from $LOCAL_FILE"
source [find $LOCAL_FILE]
}
}