configure
changeset 343 118c1cabd0b0
parent 342 66f007300c10
child 351 fb106ad03770
equal deleted inserted replaced
342:66f007300c10 343:118c1cabd0b0
   105 	--timers=*)	SUB_TIMERS_DRIVER=$optarg;;
   105 	--timers=*)	SUB_TIMERS_DRIVER=$optarg;;
   106 	--disable-Ox)	DISABLE_OPT=1;
   106 	--disable-Ox)	DISABLE_OPT=1;
   107 			echo "On user request: Won't optimize with \"-Ox\"";;
   107 			echo "On user request: Won't optimize with \"-Ox\"";;
   108 	--disable-dll)	DISABLE_DLL=1;
   108 	--disable-dll)	DISABLE_DLL=1;
   109 			echo "On user request: Won't create and link to dll";;
   109 			echo "On user request: Won't create and link to dll";;
       
   110 	--enable-lss)	ENABLE_LSS=1;
       
   111 			echo "On user request: LSS services enabled";;
   110 	--debug=*)	DEBUG=$optarg;;
   112 	--debug=*)	DEBUG=$optarg;;
   111 	--MAX_CAN_BUS_ID=*)	MAX_CAN_BUS_ID=$1;;
   113 	--MAX_CAN_BUS_ID=*)	MAX_CAN_BUS_ID=$1;;
   112 	--SDO_MAX_LENGTH_TRANSFERT=*)	SDO_MAX_LENGTH_TRANSFERT=$1;;
   114 	--SDO_MAX_LENGTH_TRANSFERT=*)	SDO_MAX_LENGTH_TRANSFERT=$1;;
   113 	--SDO_MAX_SIMULTANEOUS_TRANSFERTS=*)	SDO_MAX_SIMULTANEOUS_TRANSFERTS=$1;;
   115 	--SDO_MAX_SIMULTANEOUS_TRANSFERTS=*)	SDO_MAX_SIMULTANEOUS_TRANSFERTS=$1;;
   114 	--NMT_MAX_NODE_ID=*)	NMT_MAX_NODE_ID=$1;;
   116 	--NMT_MAX_NODE_ID=*)	NMT_MAX_NODE_ID=$1;;
   139 		echo	"                 see http://developer.berlios.de/projects/socketcan/"
   141 		echo	"                 see http://developer.berlios.de/projects/socketcan/"
   140 		echo	"               \"lincan\" lincan driver"
   142 		echo	"               \"lincan\" lincan driver"
   141 		echo	"                 see http://www.ocera.org/download/components/WP7/lincan-0.3.3.html"
   143 		echo	"                 see http://www.ocera.org/download/components/WP7/lincan-0.3.3.html"
   142 		echo 	" --timers=foo  Use 'foo' as TIMERS driver (can be either 'unix' or 'xeno')"
   144 		echo 	" --timers=foo  Use 'foo' as TIMERS driver (can be either 'unix' or 'xeno')"
   143 		echo 	" --disable-dll Disable run-time dynamic linking of can, led and nvram drivers"
   145 		echo 	" --disable-dll Disable run-time dynamic linking of can, led and nvram drivers"
       
   146 		echo 	" --enable-lss  Enable the LSS services"
   144 		echo	" --disable-Ox  Disable gcc \"-Ox\" optimizations."
   147 		echo	" --disable-Ox  Disable gcc \"-Ox\" optimizations."
   145 		echo	" --debug=foo,foo,..   Enable debug messages, ERR -> only errors, WAR)."
   148 		echo	" --debug=foo,foo,..   Enable debug messages, ERR -> only errors, WAR)."
   146 		echo	"               \"PDO\" send errors and warnings through PDO messages"
   149 		echo	"               \"PDO\" send errors and warnings through PDO messages"
   147 		echo	"               \"ERR\" print errors only, to stdout"
   150 		echo	"               \"ERR\" print errors only, to stdout"
   148 		echo	"               \"WAR\" print errors and warnings, to stdout"
   151 		echo	"               \"WAR\" print errors and warnings, to stdout"
   565 
   568 
   566 if [ "$DISABLE_DLL" = "1" ]; then
   569 if [ "$DISABLE_DLL" = "1" ]; then
   567 	SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ $SUB_CAN_DLL_CFLAGS
   570 	SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ $SUB_CAN_DLL_CFLAGS
   568 fi
   571 fi
   569 
   572 
       
   573 if [ $ENABLE_LSS ]; then
       
   574 	SUB_PROG_CFLAGS=$SUB_PROG_CFLAGS\ -DCO_ENABLE_LSS;
       
   575 	SUB_ENABLE_LSS=1
       
   576 else
       
   577 	SUB_ENABLE_LSS=0
       
   578 fi
       
   579 
   570 ###########################################################################
   580 ###########################################################################
   571 #                              CREATE MAKEFILES                           #
   581 #                              CREATE MAKEFILES                           #
   572 ###########################################################################
   582 ###########################################################################
   573 # General Makefiles
   583 # General Makefiles
   574 MAKEFILES=Makefile.in\
   584 MAKEFILES=Makefile.in\
   634 	s:SUB_BINUTILS_PREFIX:${SUB_BINUTILS_PREFIX}:
   644 	s:SUB_BINUTILS_PREFIX:${SUB_BINUTILS_PREFIX}:
   635 	s:SUB_TIMERS_DRIVER:timers_${SUB_TIMERS_DRIVER}:
   645 	s:SUB_TIMERS_DRIVER:timers_${SUB_TIMERS_DRIVER}:
   636 	s:SUB_CAN_DRIVER:can_${SUB_CAN_DRIVER}:
   646 	s:SUB_CAN_DRIVER:can_${SUB_CAN_DRIVER}:
   637 	s:SUB_CAN_DLL_CFLAGS:${SUB_CAN_DLL_CFLAGS}:
   647 	s:SUB_CAN_DLL_CFLAGS:${SUB_CAN_DLL_CFLAGS}:
   638 	s:SUB_ENABLE_DLL_DRIVERS:${SUB_ENABLE_DLL_DRIVERS}:
   648 	s:SUB_ENABLE_DLL_DRIVERS:${SUB_ENABLE_DLL_DRIVERS}:
       
   649 	s:SUB_ENABLE_LSS:${SUB_ENABLE_LSS}:
   639 	" > $makefile
   650 	" > $makefile
   640 done
   651 done
   641 
   652 
   642 echo "All done."
   653 echo "All done."