rusefi-1/firmware/gen_config.bat

42 lines
1.3 KiB
Batchfile
Raw Normal View History

@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-05-27 08:35:19 -07:00
rem lazy is broken - TS input is not considered a change
rm build/config.gen
mkdir build
2019-06-01 13:51:32 -07:00
java -Drusefi.generator.lazyfile.enabled=true ^
-jar ../java_tools/ConfigDefinition.jar ^
-definition integration\rusefi_config.txt ^
-romraider integration ^
-ts_destination tunerstudio ^
-c_defines controllers\generated\rusefi_generated.h ^
-c_destination controllers\generated\engine_configuration_generated_structures.h ^
-java_destination ../java_console/models/src/com/rusefi/config/generated/Fields.java ^
-romraider_destination ../java_console/rusefi.xml ^
-skip build/config.gen
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
set ts_path="%HOMEDRIVE%%HOMEPATH%\Documents\TunerStudioProjects\dev\projectCfg"
echo %ts_path%
2019-05-30 17:41:54 -07:00
cp tunerstudio/rusefi.ini %ts_path%\mainController.ini
call gen_config_board microrusefi
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
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
IF NOT ERRORLEVEL 0 echo ERROR generating
IF NOT ERRORLEVEL 0 EXIT /B 1