rusefi-1/firmware/gen_config.bat

59 lines
1.9 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
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
mkdir build
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-08-31 20:06:40 -07:00
-with_c_defines false ^
-initialize_to_zero false ^
2019-09-10 19:55:58 -07:00
-c_defines controllers\generated\rusefi_generated.h ^
-c_destination controllers\generated\engine_configuration_generated_structures.h ^
-c_fsio_constants controllers\generated\fsio_enums_generated.def ^
2019-09-10 20:49:21 -07:00
-c_fsio_getters controllers\generated\fsio_getters.def ^
2019-09-11 16:30:36 -07:00
-c_fsio_names controllers\generated\fsio_names.def ^
-c_fsio_strings controllers\generated\fsio_strings.def ^
-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
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
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
2020-02-02 05:42:05 -08:00
call gen_config_board proteus
IF NOT ERRORLEVEL 0 echo ERROR generating
IF NOT ERRORLEVEL 0 EXIT /B 1
2019-11-16 11:44:47 -08:00
cd config\boards\kinetis\config
!gen_config.bat