5 INT_FILE=${BASE_DIR}/openocd/${PROGRAMMER_TYPE}.tcl
6 CPU_FILE=${BASE_DIR}/openocd/${PROGRAMMER_CPU}.tcl
8 if [ ! -f ${INT_FILE} ]; then
9 printf "Interface ${PROGRAMMER_TYPE} not supported\n";
13 if [ ! -f ${CPU_FILE} ]; then
14 printf "CPU ${PROGRAMMER_CPU} not supported\n";
18 sed -e "s#PROGRAMMER_TYPE#${INT_FILE}#" ${BASE_DIR}/openocd/flash.cfg | sed -e "s#PROGRAMMER_CPU#${CPU_FILE}#" > openocd.tmp