1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-12-26 06:53:52 +01:00

SQUASHME: kill openocd by PID

This commit is contained in:
Thomas Eichinger 2014-09-02 11:41:41 +02:00
parent 8945768c91
commit b505df23a5

View File

@ -17,9 +17,12 @@ openocd -f "${BIN_FOLDER}/${BOARD}_jtag.cfg" \
-c "reset halt" \
-l /dev/null &
# save pid to terminate afterwards
OCD_PID=$?
# needed for openocd to set up
sleep 5
arm-none-eabi-gdb -tui --command=${1} ${2}
killall openocd
kill ${OCD_PID}