better defaults to make things easier

This commit is contained in:
rusefi 2019-08-31 23:00:16 -04:00
parent 3f0665255d
commit 26285b9bae
2 changed files with 2 additions and 6 deletions

View File

@ -6,28 +6,23 @@ java -DSystemOut.name=gen_config2 ^
-jar ../java_tools/ConfigDefinition.jar ^
-definition integration/engine_state.txt ^
-java_destination ../java_console/models/src/com/rusefi/config/generated/EngineState.java ^
-initialize_to_zero yes ^
-c_destination controllers/generated/engine_state_generated.h
java -DSystemOut.name=gen_config2 ^
-jar ../java_tools/ConfigDefinition.jar ^
-definition integration/thermistor.txt ^
-initialize_to_zero yes ^
-java_destination ../java_console/models/src/com/rusefi/config/generated/ThermistorState.java ^
-c_destination controllers/generated/thermistor.h
java -DSystemOut.name=gen_config2 ^
-jar ../java_tools/ConfigDefinition.jar ^
-definition integration/trigger.txt ^
-initialize_to_zero yes ^
-with_c_defines true ^
-java_destination ../java_console/models/src/com/rusefi/config/generated/TriggerState.java ^
-c_destination controllers/generated/trigger_structs.h
java -DSystemOut.name=gen_config2 ^
-jar ../java_tools/ConfigDefinition.jar ^
-definition integration/wall_fuel.txt ^
-initialize_to_zero yes ^
-java_destination ../java_console/models/src/com/rusefi/config/generated/WallFuelState.java ^
-c_destination controllers/generated/wall_fuel.h

View File

@ -38,7 +38,7 @@ public class ConfigDefinition {
public static final String KEY_PREPEND = "-prepend";
private static final String KEY_SKIP = "-skip";
private static final String KEY_ZERO_INIT = "-initialize_to_zero";
public static boolean needZeroInit; // ugly quick implementation
public static boolean needZeroInit = true;
public static String definitionInputFile = null;
public static void main(String[] args) throws IOException {
@ -72,6 +72,7 @@ public class ConfigDefinition {
List<String> prependFiles = new ArrayList<>();
String skipRebuildFile = null;
String romRaiderInputFile = null;
CHeaderConsumer.withC_Defines = true;
for (int i = 0; i < args.length - 1; i += 2) {
String key = args[i];