06_stlink.sh 480 Bytes
Newer Older
1
2
3
4
5
6
7
8
#!/bin/bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. ${DIR}/common.sh

# Setup the stlink tools (if not there)
cd $DIR/../stlink || exit 1
make release || exit 1

Thanassis Tsiodras's avatar
Thanassis Tsiodras committed
9
STUTIL_PATH=$(realpath "${DIR}/../stlink/build/Release/src/gdbserver")
10
11
12
PATH_CMD='export PATH=$PATH:'"${STUTIL_PATH}"
UpdatePATH

Thanassis Tsiodras's avatar
Thanassis Tsiodras committed
13
STFLASH_PATH=$(realpath "${DIR}/../stlink/build/Release")
14
15
16
PATH_CMD='export PATH=$PATH:'"${STFLASH_PATH}"
UpdatePATH

17
18
sudo cp -n etc/udev/rules.d/* /etc/udev/rules.d || :