2020-01-02 15:58:28 -08:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
#set -x
|
|
|
|
#TS_PATH="/home/<user>/TunerStudioProjects/"
|
|
|
|
|
|
|
|
echo "This batch files reads rusefi_config.txt and produses firmware persistent configuration headers"
|
|
|
|
echo "the storage section of rusefi.ini is updated as well"
|
|
|
|
|
|
|
|
rm gen_config.log
|
|
|
|
rm gen_config_board.log
|
|
|
|
|
|
|
|
mkdir build
|
|
|
|
|
2020-06-16 09:50:22 -07:00
|
|
|
java $(< gen_config.conf)
|
2020-01-02 15:58:28 -08:00
|
|
|
|
|
|
|
[ $? -eq 0 ] || (echo "ERROR generating"; exit $?)
|
|
|
|
|
|
|
|
if [ -z "${TS_PATH}" ]; then
|
|
|
|
echo "TS_PATH not defined"
|
|
|
|
else
|
|
|
|
echo "This would automatically copy latest file to 'dev' TS project at ${TS_PATH}"
|
|
|
|
cp -v tunerstudio/rusefi.ini $TS_PATH/dev/projectCfg/mainController.ini
|
|
|
|
cp -v tunerstudio/rusefi_microrusefi.ini $TS_PATH/dev_mre/projectCfg/mainController.ini
|
|
|
|
fi
|
|
|
|
|
2020-06-16 09:50:22 -07:00
|
|
|
sh gen_config_board.sh microrusefi
|
2020-01-02 15:58:28 -08:00
|
|
|
[ $? -eq 0 ] || (echo "ERROR generating microrusefi"; exit $?)
|
|
|
|
|
2020-06-16 09:50:22 -07:00
|
|
|
sh gen_config_board.sh frankenso
|
2020-01-02 15:58:28 -08:00
|
|
|
[ $? -eq 0 ] || (echo "ERROR generating frankenso"; exit $?)
|
|
|
|
|
2020-06-16 09:50:22 -07:00
|
|
|
sh gen_config_board.sh prometheus
|
2020-01-02 15:58:28 -08:00
|
|
|
[ $? -eq 0 ] || (echo "ERROR generating prometheus"; exit $?)
|
|
|
|
|
2020-06-19 06:31:36 -07:00
|
|
|
sh gen_config_board.sh proteus
|
|
|
|
[ $? -eq 0 ] || (echo "ERROR generating proteus"; exit $?)
|
2020-06-18 21:40:52 -07:00
|
|
|
|
2020-01-02 15:58:28 -08:00
|
|
|
#cd config\boards\kinetis\config
|
|
|
|
#!gen_config.bat
|
|
|
|
|
|
|
|
exit 0
|