2020-07-09 07:27:20 -07:00
|
|
|
#!/bin/bash
|
2020-01-02 15:58:28 -08:00
|
|
|
|
2020-07-14 07:28:26 -07:00
|
|
|
echo "This script reads rusefi_config.txt and produces firmware persistent configuration headers"
|
|
|
|
echo "The storage section of rusefi.ini is updated as well"
|
2020-01-02 15:58:28 -08:00
|
|
|
|
2020-07-14 07:28:26 -07:00
|
|
|
rm -f gen_config.log
|
|
|
|
rm -f gen_config_board.log
|
2020-01-02 15:58:28 -08:00
|
|
|
|
2020-07-14 07:28:26 -07:00
|
|
|
bash gen_config_default.sh
|
2020-07-01 11:09:01 -07:00
|
|
|
[ $? -eq 0 ] || { echo "ERROR generating default"; exit 1; }
|
2020-01-02 15:58:28 -08:00
|
|
|
|
2021-04-29 20:00:22 -07:00
|
|
|
#
|
|
|
|
# see also build-firmware where we compile all versions of firmware
|
|
|
|
#
|
2021-04-29 20:39:47 -07:00
|
|
|
# While adding a new board do not forget to manually git add/commit .h and .ini into
|
|
|
|
# firmware\tunerstudio\generated and firmware\controllers\generated folders
|
2021-04-29 20:10:36 -07:00
|
|
|
# maybe one day we will automate but not yet
|
|
|
|
#
|
2021-06-27 08:23:16 -07:00
|
|
|
for BOARD in "f429-discovery f429-discovery" "hellen/hellen128 hellen128" "hellen/hellen121vag hellen121vag" "hellen/hellen121nissan hellen121nissan" "hellen/hellen72 hellen72" "hellen/hellen64_miataNA6_94 hellenNA6" "microrusefi mre_f7" "microrusefi mre_f4" "frankenso frankenso_na6" "prometheus prometheus_469" "prometheus prometheus_405" "proteus proteus_f7" "proteus proteus_f4"; do
|
2020-06-28 10:39:09 -07:00
|
|
|
BOARD_NAME="${BOARD% *}"
|
|
|
|
BOARD_SHORT_NAME="${BOARD#* }"
|
2020-07-09 07:27:20 -07:00
|
|
|
bash gen_config_board.sh $BOARD_NAME $BOARD_SHORT_NAME
|
2020-07-01 11:09:01 -07:00
|
|
|
[ $? -eq 0 ] || { echo "ERROR generating board $BOARD_NAME $BOARD_SHORT_NAME"; exit 1; }
|
2020-06-19 07:10:17 -07:00
|
|
|
done
|
2020-01-02 15:58:28 -08:00
|
|
|
|
2020-06-19 07:10:17 -07:00
|
|
|
cd config/boards/kinetis/config
|
2020-07-09 07:27:20 -07:00
|
|
|
bash gen_config.sh
|
2020-07-10 19:28:38 -07:00
|
|
|
[ $? -eq 0 ] || { echo "ERROR generating board kinetis kin"; exit 1; }
|
2020-09-27 08:01:06 -07:00
|
|
|
|
2020-01-02 15:58:28 -08:00
|
|
|
|
2020-09-27 07:40:18 -07:00
|
|
|
cd ../../../..
|
2020-09-27 05:21:33 -07:00
|
|
|
cd config/boards/hellen/cypress/config
|
|
|
|
bash gen_config.sh
|
2020-09-27 06:56:44 -07:00
|
|
|
[ $? -eq 0 ] || { echo "ERROR generating board hellen_cypress hellen_cypress"; exit 1; }
|
2020-09-27 07:40:37 -07:00
|
|
|
cd ../../../../..
|
2020-09-23 11:06:22 -07:00
|
|
|
|
2021-02-18 15:18:13 -08:00
|
|
|
bash config/boards/subaru_eg33/config/gen_config.sh
|
|
|
|
[ $? -eq 0 ] || { echo "ERROR generating board subaru_eg33 subaru_eg33_f7"; exit 1; }
|
|
|
|
|
2020-01-02 15:58:28 -08:00
|
|
|
exit 0
|