2019-06-10 20:13:32 -07:00
|
|
|
@echo off
|
2016-04-09 09:02:01 -07:00
|
|
|
rem This batch files reads rusefi_config.txt and produses firmware persistent configuration headers
|
|
|
|
rem the storage section of rusefi.ini is updated as well
|
2015-07-10 06:01:56 -07:00
|
|
|
|
2019-06-17 17:21:32 -07:00
|
|
|
rm gen_config.log
|
|
|
|
rm gen_config_board.log
|
2019-05-27 08:35:19 -07:00
|
|
|
|
|
|
|
rem lazy is broken - TS input is not considered a change
|
|
|
|
rm build/config.gen
|
|
|
|
|
2019-06-10 20:13:32 -07:00
|
|
|
mkdir build
|
|
|
|
|
2019-06-17 17:21:32 -07:00
|
|
|
java -DSystemOut.name=gen_config ^
|
|
|
|
-Drusefi.generator.lazyfile.enabled=true ^
|
2019-06-01 13:51:32 -07:00
|
|
|
-jar ../java_tools/ConfigDefinition.jar ^
|
|
|
|
-definition integration\rusefi_config.txt ^
|
|
|
|
-romraider integration ^
|
|
|
|
-ts_destination tunerstudio ^
|
2019-06-15 19:11:43 -07:00
|
|
|
-c_defines controllers\generated\rusefi_generated.h ^
|
|
|
|
-c_destination controllers\generated\engine_configuration_generated_structures.h ^
|
2019-06-16 19:06:05 -07:00
|
|
|
-java_destination ../java_console/models/src/com/rusefi/config/generated/Fields.java ^
|
2019-06-13 21:47:28 -07:00
|
|
|
-romraider_destination ../java_console/rusefi.xml ^
|
|
|
|
-skip build/config.gen
|
2019-06-10 20:13:32 -07:00
|
|
|
IF NOT ERRORLEVEL 0 echo ERROR generating
|
|
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
2019-03-12 17:34:10 -07:00
|
|
|
|
|
|
|
|
|
|
|
rem This would automatically copy latest file to 'dev' TS project
|
2019-08-14 22:04:39 -07:00
|
|
|
set ts_path="%HOMEDRIVE%%HOMEPATH%\Documents\TunerStudioProjects"
|
2019-03-12 17:34:10 -07:00
|
|
|
echo %ts_path%
|
2019-08-14 22:04:39 -07:00
|
|
|
cp tunerstudio/rusefi.ini %ts_path%\dev\projectCfg\mainController.ini
|
|
|
|
cp tunerstudio/rusefi_microrusefi.ini %ts_path%\dev_mre\projectCfg\mainController.ini
|
2019-05-30 17:41:54 -07:00
|
|
|
|
|
|
|
call gen_config_board microrusefi
|
2019-06-10 20:13:32 -07:00
|
|
|
IF NOT ERRORLEVEL 0 echo ERROR generating
|
|
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
|
2019-05-30 17:41:54 -07:00
|
|
|
call gen_config_board frankenso
|
2019-06-10 20:13:32 -07:00
|
|
|
IF NOT ERRORLEVEL 0 echo ERROR generating
|
|
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
|
2019-05-30 17:41:54 -07:00
|
|
|
call gen_config_board prometheus
|
2019-06-10 20:13:32 -07:00
|
|
|
IF NOT ERRORLEVEL 0 echo ERROR generating
|
|
|
|
IF NOT ERRORLEVEL 0 EXIT /B 1
|
|
|
|
|