projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor to use new protocol module and sipo.
[bertos.git]
/
test
/
gen_mk_src.sh
diff --git
a/test/gen_mk_src.sh
b/test/gen_mk_src.sh
index 0aab30d6731bf898d42a551801c584714cc57524..820e3917a081784be4240c4bc7c4d2db8d20d5dc 100755
(executable)
--- a/
test/gen_mk_src.sh
+++ b/
test/gen_mk_src.sh
@@
-37,11
+37,7
@@
BERTOS_DIR_RE="\\.\\/bertos"
TEST_SCRIPT_DIR="test"
#Test directory, where are the test makefile
TEST_SCRIPT_DIR="test"
#Test directory, where are the test makefile
-TEST_APP_DIR="app/test/"
-
-#Dir list for ARM, write with escape char for sed regrepx
-ARM_DRV="${BERTOS_DIR_RE}\\/cpu\\/arm\\/drv"
-ARM_DRV_C_EXCLUDE_LIST="ser_arm pwm_arm twi_arm stepper_arm"
+TEST_APP_DIR="examples/test/"
if [ $# \< 1 ] ; then
printf "You must specify a cpu target!\n\n"
if [ $# \< 1 ] ; then
printf "You must specify a cpu target!\n\n"
@@
-55,22
+51,9
@@
CSRC=`${TEST_SCRIPT_DIR}/get_source_list.sh $1 c`
ASRC=`${TEST_SCRIPT_DIR}/get_source_list.sh $1 S`
#ASRC=
ASRC=`${TEST_SCRIPT_DIR}/get_source_list.sh $1 S`
#ASRC=
+#kdebug must added to skip list because it is compiled two times and the linker fail.
CSRC=`echo $CSRC | sed -e "s/${BERTOS_DIR_RE}\\/drv\\/kdebug\\.c//g"`
CSRC=`echo $CSRC | sed -e "s/${BERTOS_DIR_RE}\\/drv\\/kdebug\\.c//g"`
-#Source to skip:
-if [ $1 = 'avr' ] ; then
- `echo`
-fi
-
-if [ $1 = 'arm' ] ; then
- for i in $ARM_DRV_C_EXCLUDE_LIST ;
- do
- CSRC=`echo $CSRC | sed -e "s/${ARM_DRV}\\/$i\\.c//g"`
- done
-fi
-
-
-
printf "#This makefile was generate automatically.\n\n" > ${TEST_APP_DIR}/$1_src.mk
printf "${1}_CSRC = $CSRC\n\n" >> ${TEST_APP_DIR}/$1_src.mk
printf "${1}_ASRC = $ASRC\n\n" >> ${TEST_APP_DIR}/$1_src.mk
printf "#This makefile was generate automatically.\n\n" > ${TEST_APP_DIR}/$1_src.mk
printf "${1}_CSRC = $CSRC\n\n" >> ${TEST_APP_DIR}/$1_src.mk
printf "${1}_ASRC = $ASRC\n\n" >> ${TEST_APP_DIR}/$1_src.mk