2022-04-03 11:06:22 -07:00
|
|
|
|
2024-01-30 04:53:27 -08:00
|
|
|
COMMON_GEN_CONFIG_PREFIX=" -DSystemOut.name=logs/gen_config_${SHORT_BOARD_NAME} \
|
2024-02-16 21:55:25 -08:00
|
|
|
-jar ../java_tools/configuration_definition/build/libs/config_definition-all.jar"
|
2022-04-11 08:47:59 -07:00
|
|
|
|
2024-04-26 09:38:16 -07:00
|
|
|
set_board_file() {
|
|
|
|
local var=$1
|
|
|
|
local file_path=$2
|
|
|
|
local default_file="tunerstudio/empty_board_options.ini"
|
|
|
|
|
|
|
|
if [ ! -f "$file_path" ]; then
|
|
|
|
eval "$var=\"$default_file\""
|
|
|
|
else
|
|
|
|
eval "$var=\"$file_path\""
|
|
|
|
fi
|
|
|
|
}
|
|
|
|
|
2024-06-24 10:48:38 -07:00
|
|
|
set_board_file BOARD_ENGINE_CONFIGURATION_FILE "${BOARD_DIR}/board_engine_configuration.txt"
|
2024-04-26 09:38:16 -07:00
|
|
|
set_board_file BOARD_CONFIG_FILE "${BOARD_DIR}/board_config.txt"
|
|
|
|
set_board_file BOARD_OPTIONS_FILE "${BOARD_DIR}/board_options.ini"
|
|
|
|
set_board_file BOARD_MENU_FILE "${BOARD_DIR}/board_menu.ini"
|
2024-06-09 16:49:17 -07:00
|
|
|
set_board_file BOARD_VE_MENU_FILE "${BOARD_DIR}/board_ve_menu.ini"
|
2024-04-26 09:38:16 -07:00
|
|
|
set_board_file BOARD_TABLES_FILE "${BOARD_DIR}/board_tables.ini"
|
2024-07-02 20:56:19 -07:00
|
|
|
set_board_file BOARD_CURVES_FILE "${BOARD_DIR}/board_curves.ini"
|
2024-05-07 07:19:27 -07:00
|
|
|
set_board_file BOARD_PANELS_FILE "${BOARD_DIR}/board_panels.ini"
|
2024-07-03 16:17:50 -07:00
|
|
|
set_board_file BOARD_PC_VARIABLES_FROM_FILE "${BOARD_DIR}/board_pc_variables.ini"
|
2024-05-14 14:20:27 -07:00
|
|
|
set_board_file BOARD_INDICATORS_FILE "${BOARD_DIR}/board_indicators.ini"
|
2024-05-16 18:27:53 -07:00
|
|
|
set_board_file BOARD_GAUGES_FILE "${BOARD_DIR}/board_gauges.ini"
|
2024-06-25 15:41:27 -07:00
|
|
|
set_board_file BOARD_CONSTANTS_EXTENSIONS_FILE "${BOARD_DIR}/board_constants_extensions.ini"
|
2024-05-22 06:32:00 -07:00
|
|
|
set_board_file BOARD_COMMANDS_FILE "${BOARD_DIR}/board_commands.ini"
|
2024-09-06 17:12:50 -07:00
|
|
|
set_board_file BOARD_POPULAR_VEHICLES_FILE "${BOARD_DIR}/board_popular_vehicles.ini"
|
2024-05-19 12:04:18 -07:00
|
|
|
set_board_file BOARD_DIAG_PANEL1_FILE "${BOARD_DIR}/board_diag_panel1.ini"
|
|
|
|
set_board_file BOARD_DIAG_PANEL2_FILE "${BOARD_DIR}/board_diag_panel2.ini"
|
2024-10-01 11:56:15 -07:00
|
|
|
set_board_file BOARD_VE_FILE "${BOARD_DIR}/board_ve.ini"
|
2024-04-17 11:46:04 -07:00
|
|
|
|
2022-04-11 08:47:59 -07:00
|
|
|
COMMON_GEN_CONFIG="
|
2024-05-22 06:33:17 -07:00
|
|
|
-prepend integration/ts_protocol.txt \
|
2024-09-05 18:34:14 -07:00
|
|
|
-readfile OUTPUTS_SECTION_FROM_FILE ${META_OUTPUT_ROOT_FOLDER}console/binary/generated/output_channels.ini \
|
|
|
|
-readfile DATALOG_SECTION_FROM_FILE ${META_OUTPUT_ROOT_FOLDER}console/binary/generated/data_logs.ini \
|
|
|
|
-readfile LIVE_DATA_MENU_FROM_FILE ${META_OUTPUT_ROOT_FOLDER}console/binary/generated/fancy_menu.ini \
|
|
|
|
-readfile LIVE_DATA_PANELS_FROM_FILE ${META_OUTPUT_ROOT_FOLDER}console/binary/generated/fancy_content.ini \
|
|
|
|
-readfile LIVE_DATA_GAUGES_FROM_FILE ${META_OUTPUT_ROOT_FOLDER}console/binary/generated/gauges.ini \
|
2024-06-24 10:48:38 -07:00
|
|
|
-readfile BOARD_ENGINE_CONFIGURATION_FROM_FILE ${BOARD_ENGINE_CONFIGURATION_FILE} \
|
2024-04-26 09:38:16 -07:00
|
|
|
-readfile BOARD_CONFIG_FROM_FILE ${BOARD_CONFIG_FILE} \
|
2024-04-17 11:46:04 -07:00
|
|
|
-readfile BOARD_OPTIONS_FROM_FILE ${BOARD_OPTIONS_FILE} \
|
2024-04-26 09:38:16 -07:00
|
|
|
-readfile BOARD_MENU_FROM_FILE ${BOARD_MENU_FILE} \
|
2024-06-09 16:49:17 -07:00
|
|
|
-readfile BOARD_VE_MENU_FROM_FILE ${BOARD_VE_MENU_FILE} \
|
2024-04-26 09:38:16 -07:00
|
|
|
-readfile BOARD_TABLES_FROM_FILE ${BOARD_TABLES_FILE} \
|
2024-07-02 20:56:19 -07:00
|
|
|
-readfile BOARD_CURVES_FROM_FILE ${BOARD_CURVES_FILE} \
|
2024-06-25 15:41:27 -07:00
|
|
|
-readfile BOARD_CONSTANTS_EXTENSIONS_FROM_FILE ${BOARD_CONSTANTS_EXTENSIONS_FILE} \
|
2024-05-19 12:04:18 -07:00
|
|
|
-readfile BOARD_DIAG_PANEL1_FROM_FILE ${BOARD_DIAG_PANEL1_FILE} \
|
|
|
|
-readfile BOARD_DIAG_PANEL2_FROM_FILE ${BOARD_DIAG_PANEL2_FILE} \
|
2024-05-07 07:19:27 -07:00
|
|
|
-readfile BOARD_PANELS_FROM_FILE ${BOARD_PANELS_FILE} \
|
2024-07-03 16:17:50 -07:00
|
|
|
-readfile BOARD_PC_VARIABLES_FROM_FILE ${BOARD_PC_VARIABLES_FROM_FILE} \
|
2024-05-14 14:20:27 -07:00
|
|
|
-readfile BOARD_INDICATORS_FROM_FILE ${BOARD_INDICATORS_FILE} \
|
2024-05-14 19:06:10 -07:00
|
|
|
-readfile BOARD_GAUGES_FROM_FILE ${BOARD_GAUGES_FILE} \
|
2024-10-01 11:56:15 -07:00
|
|
|
-readfile BOARD_VE_FROM_FILE ${BOARD_VE_FILE} \
|
2024-05-22 06:32:00 -07:00
|
|
|
-readfile COMMANDS_FROM_FILE ${BOARD_COMMANDS_FILE} \
|
2024-09-06 17:12:50 -07:00
|
|
|
-readfile BOARD_POPULAR_VEHICLES_FILE ${BOARD_POPULAR_VEHICLES_FILE} \
|
2024-05-07 07:19:27 -07:00
|
|
|
-ts_destination tunerstudio \
|
2022-08-16 13:58:01 -07:00
|
|
|
-triggerInputFolder ../unit_tests \
|
2022-01-04 22:02:50 -08:00
|
|
|
-with_c_defines false \
|
2022-12-20 08:42:34 -08:00
|
|
|
-field_lookup_file controllers/lua/generated/value_lookup_generated.cpp controllers/lua/generated/value_lookup_generated.md \
|
2022-08-16 14:51:46 -07:00
|
|
|
-java_destination ../java_console/models/src/main/java/com/rusefi/config/generated/Fields.java \
|
2022-01-04 22:02:50 -08:00
|
|
|
-initialize_to_zero false \
|
2024-09-12 05:30:17 -07:00
|
|
|
-signature ${META_OUTPUT_ROOT_FOLDER}tunerstudio/generated/signature_${SHORT_BOARD_NAME}.txt \
|
2024-01-30 04:53:27 -08:00
|
|
|
-signature_destination controllers/generated/signature_${SHORT_BOARD_NAME}.h \
|
2022-08-16 11:52:34 -07:00
|
|
|
-ts_output_name generated/${INI} \
|
2023-07-14 08:19:17 -07:00
|
|
|
-prepend integration/rusefi_config_trigger.txt \
|
2024-09-07 19:34:56 -07:00
|
|
|
-prepend ${META_OUTPUT_ROOT_FOLDER}console/binary/generated/total_live_data_generated.h \
|
2022-08-16 13:41:33 -07:00
|
|
|
-prepend ${BOARD_DIR}/prepend.txt \
|
2023-06-17 11:54:53 -07:00
|
|
|
-board ${BOARD_DIR}"
|