Subaru build (#2376)
* Subaru EG33: gen_config.sh update * gen_config and gen_enum_to_string for subaru_eg33 board too * Subaru eg33: add to buildables * Subaru: fix build * Subaru eg33: fix build and cleanup * subaru eg33: add compile script * github: subaru_eg33: call special gen_config.sh
This commit is contained in:
parent
f020d7ab09
commit
12b7b737dc
|
@ -12,7 +12,7 @@ jobs:
|
||||||
matrix:
|
matrix:
|
||||||
# What boards should we build for? In the 'include' section below,
|
# What boards should we build for? In the 'include' section below,
|
||||||
# set up what each of these boards needs to build.
|
# set up what each of these boards needs to build.
|
||||||
build-target: [hellen72, cypress, frankenso_na6, kinetis, mre_f4, mre_f4_recovery, mre_f4_hardware_QC_special_build, mre_f7, prometheus_405, prometheus_469, proteus_f4, proteus_f4_hardware_QC_special_build, proteus_f7, stm32f767_nucleo, stm32h743_nucleo]
|
build-target: [hellen72, cypress, frankenso_na6, kinetis, mre_f4, mre_f4_recovery, mre_f4_hardware_QC_special_build, mre_f7, prometheus_405, prometheus_469, proteus_f4, proteus_f4_hardware_QC_special_build, proteus_f7, stm32f767_nucleo, stm32h743_nucleo, subaru_eg33_f7]
|
||||||
|
|
||||||
include:
|
include:
|
||||||
# Board configurations
|
# Board configurations
|
||||||
|
@ -81,6 +81,10 @@ jobs:
|
||||||
ini-file: no
|
ini-file: no
|
||||||
skip-config: yes
|
skip-config: yes
|
||||||
|
|
||||||
|
- build-target: subaru_eg33_f7
|
||||||
|
folder: subaru_eg33
|
||||||
|
ini-file: rusefi_subaru_eg33_f7.ini
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v1
|
||||||
with:
|
with:
|
||||||
|
@ -101,6 +105,9 @@ jobs:
|
||||||
cd config/boards/hellen/cypress/config
|
cd config/boards/hellen/cypress/config
|
||||||
bash gen_config.sh
|
bash gen_config.sh
|
||||||
[ $? -eq 0 ] || { echo "ERROR generating board hellen_cypress hellen_cypress"; exit 1; }
|
[ $? -eq 0 ] || { echo "ERROR generating board hellen_cypress hellen_cypress"; exit 1; }
|
||||||
|
elif [ "${{ matrix.build-target }}" = "subaru_eg33_f7" ]; then
|
||||||
|
bash config/boards/subaru_eg33/config/gen_config.sh
|
||||||
|
[ $? -eq 0 ] || { echo "ERROR generating board subaru_eg33 subaru_eg33_f7"; exit 1; }
|
||||||
else
|
else
|
||||||
bash gen_config_board.sh ${{matrix.folder}} ${{matrix.build-target}}
|
bash gen_config_board.sh ${{matrix.folder}} ${{matrix.build-target}}
|
||||||
fi
|
fi
|
||||||
|
|
|
@ -23,6 +23,11 @@ DDEFS += -DHW_SUBARU_EG33=1
|
||||||
# Fix
|
# Fix
|
||||||
DDEFS += -DDEFAULT_ENGINE_TYPE=SUBARUEG33_DEFAULTS -DSTM32F765xx $(LED_CRITICAL_ERROR_BRAIN_PIN)
|
DDEFS += -DDEFAULT_ENGINE_TYPE=SUBARUEG33_DEFAULTS -DSTM32F765xx $(LED_CRITICAL_ERROR_BRAIN_PIN)
|
||||||
|
|
||||||
|
#Some options override
|
||||||
|
DDEFS += -DHAL_TRIGGER_USE_PAL=TRUE
|
||||||
|
DDEFS += -DHAL_USE_UART=FALSE
|
||||||
|
DDEFS += -DUART_USE_WAIT=FALSE
|
||||||
|
|
||||||
# Shared variables
|
# Shared variables
|
||||||
ALLCSRC += $(BOARDSRC)
|
ALLCSRC += $(BOARDSRC)
|
||||||
ALLCPPSRC += $(BOARDCPPSRC)
|
ALLCPPSRC += $(BOARDCPPSRC)
|
||||||
|
|
|
@ -0,0 +1,8 @@
|
||||||
|
#!/bin/bash
|
||||||
|
export PROJECT_BOARD=subaru_eg33
|
||||||
|
export PROJECT_CPU=ARCH_STM32F7
|
||||||
|
export EXTRA_PARAMS=-DSHORT_BOARD_NAME=subaru_eg33_f7
|
||||||
|
|
||||||
|
#-DDUMMY -DEFI_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_ASSERTS=FALSE -DCH_DBG_ENABLE_STACK_CHECK=FALSE -DCH_DBG_FILL_THREADS=FALSE -DCH_DBG_THREADS_PROFILING=FALSE"
|
||||||
|
|
||||||
|
bash ../common_make.sh
|
|
@ -7,43 +7,31 @@ SHORT_BOARDNAME=${BOARDNAME}_f7
|
||||||
BOARD_DIR=config/boards/${BOARDNAME}
|
BOARD_DIR=config/boards/${BOARDNAME}
|
||||||
BUILD_DIR=build_${BOARDNAME}
|
BUILD_DIR=build_${BOARDNAME}
|
||||||
|
|
||||||
|
bash gen_signature.sh ${SHORT_BOARDNAME}
|
||||||
|
|
||||||
mkdir -p ${BUILD_DIR}
|
mkdir -p ${BUILD_DIR}
|
||||||
|
|
||||||
echo This batch files reads rusefi_config.txt and produses firmware persistent configuration headers
|
|
||||||
echo the storage section of rusefi_${BOARDNAME}.ini is updated as well
|
|
||||||
|
|
||||||
java \
|
java \
|
||||||
-DSystemOut.name=gen_config_subaru_eg33_board \
|
-DSystemOut.name=gen_config_subaru_eg33 \
|
||||||
-cp ../java_tools/ConfigDefinition.jar \
|
-Drusefi.generator.lazyfile.enabled=true \
|
||||||
com.rusefi.board_generator.BoardReader \
|
-jar ../java_tools/ConfigDefinition.jar \
|
||||||
-yaml config/boards/${BOARDNAME}/mapping.yaml \
|
-definition integration/rusefi_config.txt \
|
||||||
-firmware_path . \
|
-cache ${SHORT_BOARDNAME} \
|
||||||
-output_file tunerstudio/generated/${BOARDNAME}_prefix.txt \
|
-cache_zip_file tunerstudio/generated/cache.zip \
|
||||||
-enumInputFile controllers/algo/rusefi_enums.h \
|
-ts_destination tunerstudio \
|
||||||
-enumInputFile ${BOARD_DIR}/rusefi_hw_enums.h \
|
-tool ${BOARD_DIR}/config/gen_config.sh \
|
||||||
> gen_config_${BOARDNAME}_1.log
|
-firing_order controllers/algo/firing_order.h \
|
||||||
|
-with_c_defines false \
|
||||||
[ $? -eq 0 ] || { echo "ERROR generating TunerStudio config for ${BOARDNAME}"; exit 1; }
|
-initialize_to_zero false \
|
||||||
|
-ts_output_name generated/rusefi_${SHORT_BOARDNAME}.ini \
|
||||||
java \
|
-c_defines ${BOARD_DIR}/config/controllers/algo/rusefi_generated.h \
|
||||||
-DSystemOut.name=gen_config_subaru_eg33 \
|
-c_destination ${BOARD_DIR}/config/controllers/algo/engine_configuration_generated_structures.h \
|
||||||
-jar ../java_tools/ConfigDefinition.jar \
|
-signature tunerstudio/generated/signature_${SHORT_BOARDNAME}.txt \
|
||||||
-definition integration/rusefi_config.txt \
|
-signature_destination controllers/generated/signature_${SHORT_BOARDNAME}.h \
|
||||||
-tool ${BOARD_DIR}/config/gen_config.sh \
|
-enumInputFile controllers/algo/rusefi_enums.h \
|
||||||
-ts_destination tunerstudio \
|
-enumInputFile controllers/algo/rusefi_hw_enums.h \
|
||||||
-cache ${SHORT_BOARDNAME} \
|
-board {BOARDNAME} \
|
||||||
-cache_zip_file tunerstudio/generated/cache.zip \
|
-prepend tunerstudio/generated/${BOARDNAME}_prefix.txt \
|
||||||
-firing_order controllers/algo/firing_order.h \
|
-prepend config/boards/${BOARDNAME}/prepend.txt
|
||||||
-with_c_defines false \
|
|
||||||
-initialize_to_zero false \
|
|
||||||
-ts_output_name generated/rusefi_${SHORT_BOARDNAME}.ini \
|
|
||||||
-c_defines ${BOARD_DIR}/config/controllers/algo/rusefi_generated.h \
|
|
||||||
-c_destination ${BOARD_DIR}/config/controllers/algo/engine_configuration_generated_structures.h \
|
|
||||||
-signature tunerstudio/generated/signature_${SHORT_BOARDNAME}.txt \
|
|
||||||
-signature_destination controllers/generated/signature_${SHORT_BOARDNAME}.h \
|
|
||||||
-enumInputFile controllers/algo/rusefi_enums.h \
|
|
||||||
-prepend tunerstudio/generated/${BOARDNAME}_prefix.txt \
|
|
||||||
-prepend config/boards/${BOARDNAME}/prepend.txt \
|
|
||||||
> gen_config_${BOARDNAME}_2.log
|
|
||||||
|
|
||||||
[ $? -eq 0 ] || { echo "ERROR generating TunerStudio config for ${BOARDNAME}"; exit 1; }
|
[ $? -eq 0 ] || { echo "ERROR generating TunerStudio config for ${BOARDNAME}"; exit 1; }
|
||||||
|
|
|
@ -7,35 +7,12 @@
|
||||||
* @author Andrey Gusakov, 2021
|
* @author Andrey Gusakov, 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "mcuconf.h"
|
|
||||||
#include "../../stm32f7ems/halconf.h"
|
|
||||||
|
|
||||||
#ifndef _HALCONF_SUBARUEG33_H_
|
#ifndef _HALCONF_SUBARUEG33_H_
|
||||||
#define _HALCONF_SUBARUEG33_H_
|
#define _HALCONF_SUBARUEG33_H_
|
||||||
|
|
||||||
#undef HAL_USE_PAL
|
/* this file is exist just to include mcuconf.h from THIS directory */
|
||||||
#define HAL_USE_PAL TRUE
|
#include "mcuconf.h"
|
||||||
#undef PAL_USE_CALLBACKS
|
|
||||||
#define PAL_USE_CALLBACKS TRUE
|
|
||||||
#undef HAL_TRIGGER_USE_PAL
|
|
||||||
#define HAL_TRIGGER_USE_PAL TRUE
|
|
||||||
|
|
||||||
#undef HAL_USE_I2C
|
#include "../../../hw_layer/ports/stm32/stm32f7/cfg/halconf.h"
|
||||||
#define HAL_USE_I2C FALSE
|
|
||||||
|
|
||||||
#undef HAL_USE_SERIAL
|
|
||||||
#define HAL_USE_SERIAL TRUE
|
|
||||||
|
|
||||||
//#if TS_UART_DMA_MODE
|
|
||||||
#undef HAL_USE_UART
|
|
||||||
#define HAL_USE_UART FALSE
|
|
||||||
#undef UART_USE_WAIT
|
|
||||||
#define UART_USE_WAIT FALSE
|
|
||||||
//#else
|
|
||||||
//#define HAL_USE_UART FALSE
|
|
||||||
//#endif
|
|
||||||
|
|
||||||
#undef HAL_USE_USB_MSD
|
|
||||||
#define HAL_USE_USB_MSD FALSE
|
|
||||||
|
|
||||||
#endif /* _HALCONF_SUBARUEG33_H_ */
|
#endif /* _HALCONF_SUBARUEG33_H_ */
|
||||||
|
|
|
@ -6,19 +6,15 @@
|
||||||
* @date Feb 06, 2021
|
* @date Feb 06, 2021
|
||||||
* @author Andrey Gusakov, 2021
|
* @author Andrey Gusakov, 2021
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "../../stm32f7ems/mcuconf.h"
|
|
||||||
|
|
||||||
#ifndef _MCUCONF_SUBARUEG33_H_
|
#ifndef _MCUCONF_SUBARUEG33_H_
|
||||||
#define _MCUCONF_SUBARUEG33_H_
|
#define _MCUCONF_SUBARUEG33_H_
|
||||||
|
|
||||||
|
#include "../../../hw_layer/ports/stm32/stm32f7/cfg/mcuconf.h"
|
||||||
|
|
||||||
/* clocks adjust for 25 MHz ocs */
|
/* clocks adjust for 25 MHz ocs */
|
||||||
#undef STM32_PLLM_VALUE
|
#undef STM32_PLLM_VALUE
|
||||||
#define STM32_PLLM_VALUE 25
|
#define STM32_PLLM_VALUE 25
|
||||||
|
|
||||||
//#undef CORTEX_ENABLE_WFI_IDLE
|
|
||||||
#define CORTEX_ENABLE_WFI_IDLE FALSE
|
|
||||||
|
|
||||||
//#undef STM32_LSE_ENABLED
|
//#undef STM32_LSE_ENABLED
|
||||||
//#define STM32_LSE_ENABLED FALSE
|
//#define STM32_LSE_ENABLED FALSE
|
||||||
|
|
||||||
|
|
|
@ -27,4 +27,7 @@ bash gen_config.sh
|
||||||
[ $? -eq 0 ] || { echo "ERROR generating board hellen_cypress hellen_cypress"; exit 1; }
|
[ $? -eq 0 ] || { echo "ERROR generating board hellen_cypress hellen_cypress"; exit 1; }
|
||||||
cd ../../../../..
|
cd ../../../../..
|
||||||
|
|
||||||
|
bash config/boards/subaru_eg33/config/gen_config.sh
|
||||||
|
[ $? -eq 0 ] || { echo "ERROR generating board subaru_eg33 subaru_eg33_f7"; exit 1; }
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
|
|
@ -18,3 +18,5 @@ cd ../../../..
|
||||||
cd config/boards/hellen/cypress/config
|
cd config/boards/hellen/cypress/config
|
||||||
bash hellen_cypress_gen_enum_to_string.sh
|
bash hellen_cypress_gen_enum_to_string.sh
|
||||||
cd ../../../../..
|
cd ../../../../..
|
||||||
|
|
||||||
|
bash config/boards/subaru_eg33/config/gen_enum_to_string.sh
|
||||||
|
|
Loading…
Reference in New Issue