projects
/
bertos.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add definitions for 24C32, 24C64 and 24C128 eeproms. Use the right eeprom type.
[bertos.git]
/
test
/
gen_mk_src.sh
diff --git
a/test/gen_mk_src.sh
b/test/gen_mk_src.sh
index ac642824e25cc2c19e8652ec0477f6ff844c196b..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"
@@
-58,17
+54,6
@@
ASRC=`${TEST_SCRIPT_DIR}/get_source_list.sh $1 S`
#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"`
#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"`
-#Source to skip:
-
-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