Update example projects' makefiles.
[bertos.git] / bertos / cpu / arm / scripts / common.sh
1 BASE_DIR=`dirname $0`
2 INT_FILE=${BASE_DIR}/openocd/${PROGRAMMER_TYPE}.cfg 
3 CPU_FILE=${BASE_DIR}/openocd/${PROGRAMMER_CPU}.cfg 
4
5 if [ ! -f ${INT_FILE} ]; then
6         printf "Interface ${PROGRAMMER_TYPE} not supported\n";
7         exit 1;
8 fi
9
10 if [ ! -f ${CPU_FILE} ]; then
11         printf "CPU ${PROGRAMMER_CPU} not supported\n";
12         exit 1;
13 fi
14