max32630-fthr: make fw flashing script path independent

This commit is contained in:
Matthias Ringwald 2017-08-18 09:53:35 +02:00
parent 79714be82e
commit ec2bbb878f

View File

@ -1,3 +1,4 @@
file="./build/max3263x.elf"
openocd -f scripts/max3263x_hdk.cfg -c "program $file verify reset exit"
fw_file=$1
DIR=$(dirname $(readlink -f $0))
CFG_FILE=$DIR/max3263x_hdk.cfg
openocd -f $CFG_FILE -c "program $fw_file verify reset exit"