projects
/
bertos.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Update example projects' makefiles.
[bertos.git]
/
bertos
/
cpu
/
arm
/
scripts
/
debug.sh
1
#! /usr/bin/env bash
2
set -x
3
BASE_DIR=`dirname $0`
4
. ${BASE_DIR}/common.sh
5
6
OUT_FILE="openocd.tmp"
7
8
sed -e "s#PROGRAMMER_TYPE#${INT_FILE}#" ${BASE_DIR}/openocd/debug.cfg | sed -e "s#PROGRAMMER_CPU#${CPU_FILE}#" > ${OUT_FILE}
9
10
openocd -f ${OUT_FILE}
11
OCD_RET=$?
12
rm -f ${OUT_FILE}
13
exit $OCD_RET