generate java enum from C enum? generate both C and java from yaml? #2102

refactoring: code duplication
This commit is contained in:
rusefillc 2021-10-23 13:40:04 -04:00
parent 580dcd001d
commit 9d8da9d4bf
5 changed files with 2 additions and 8 deletions

View File

@ -21,8 +21,6 @@ java \
-DSystemOut.name=gen_config_hellen_cypress \
$COMMON_GEN_CONFIG \
-cache hellen_cypress \
-cache_zip_file tunerstudio/generated/cache.zip \
-ts_destination tunerstudio \
-tool hellen_cypress_gen_config.bat \
-with_c_defines false \
-initialize_to_zero false \

View File

@ -21,8 +21,6 @@ java \
-DSystemOut.name=gen_config_kinetis \
$COMMON_GEN_CONFIG \
-cache kinetis \
-cache_zip_file tunerstudio/generated/cache.zip \
-ts_destination tunerstudio \
-tool kinetis_gen_config.bat \
-with_c_defines false \
-initialize_to_zero false \

View File

@ -21,8 +21,6 @@ java \
-DSystemOut.name=gen_config_subaru_eg33 \
$COMMON_GEN_CONFIG \
-cache ${SHORT_BOARDNAME} \
-cache_zip_file tunerstudio/generated/cache.zip \
-ts_destination tunerstudio \
-tool ${BOARD_DIR}/config/gen_config.sh \
-with_c_defines false \
-initialize_to_zero false \

View File

@ -50,11 +50,9 @@ java -DSystemOut.name=gen_config_board \
$COMMON_GEN_CONFIG \
-romraider integration \
-tool gen_config.sh \
-ts_destination tunerstudio \
-board ${BOARDNAME} \
-ts_output_name generated/${INI} \
-cache ${SHORT_BOARDNAME} \
-cache_zip_file tunerstudio/generated/cache.zip \
-with_c_defines $SOMETHINGSOMETHING \
-initialize_to_zero $SOMETHINGSOMETHING \
-signature tunerstudio/generated/signature_${SHORT_BOARDNAME}.txt \

View File

@ -1,4 +1,6 @@
COMMON_GEN_CONFIG="-jar ../java_tools/ConfigDefinition.jar \
-enumInputFile controllers/algo/rusefi_enums.h \
-cache_zip_file tunerstudio/generated/cache.zip \
-ts_destination tunerstudio \
-firing_order controllers/algo/firing_order.h \
-definition integration/rusefi_config.txt"