configure
changeset 42 17f0ea205942
parent 41 e70439f50539
child 47 8a1047ab51f4
equal deleted inserted replaced
41:e70439f50539 42:17f0ea205942
   454 		echo >> include/can_peak_win32/cancfg.h
   454 		echo >> include/can_peak_win32/cancfg.h
   455 		echo "// Stripped PcanLight header to prevent typedef conflicts ">> include/can_peak_win32/cancfg.h
   455 		echo "// Stripped PcanLight header to prevent typedef conflicts ">> include/can_peak_win32/cancfg.h
   456 		echo >> include/can_peak_win32/cancfg.h
   456 		echo >> include/can_peak_win32/cancfg.h
   457 		grep __stdcall $PCAN_INCLUDE/$PCAN2_HEADER >> include/can_peak_win32/cancfg.h
   457 		grep __stdcall $PCAN_INCLUDE/$PCAN2_HEADER >> include/can_peak_win32/cancfg.h
   458 	   	SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ \'$PCAN2_LIB\'
   458 	   	SUB_EXE_CFLAGS=$SUB_EXE_CFLAGS\ \'$PCAN2_LIB\'
   459 	fi
   459 		echo '#define PCAN2_HEADER_' >> include/can_peak_win32/cancfg.h
   460 	echo '#define PCAN2_HEADER_' >> include/can_peak_win32/cancfg.h
   460 	fi
       
   461 	if grep -q CANHwType include/can_peak_win32/cancfg.h ; then
       
   462 		echo "Peak Init HwType, IO_Port and IRQ will be passed in environment :"
       
   463 		echo "	PCANHwType PCANIO_Port PCANInterupt"
       
   464 		echo '#define extra_PCAN_init_params' >> include/can_peak_win32/cancfg.h
       
   465 	fi
   461 	cat include/can_peak_win32/cancfg.h.tail >> include/can_peak_win32/cancfg.h
   466 	cat include/can_peak_win32/cancfg.h.tail >> include/can_peak_win32/cancfg.h
   462 fi
   467 fi
   463 
   468 
   464 if [ "$SUB_CAN_DRIVER" = "none" ]; then
   469 if [ "$SUB_CAN_DRIVER" = "none" ]; then
   465 	SUB_CAN_DRIVER=
   470 	SUB_CAN_DRIVER=