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
|
|
|
|
2021-07-30 14:39:55 -07:00
|
|
|
# todo: who is the consumer of this folder? shall we move that 'mkdir' command closer to usage?
|
|
|
|
mkdir build
|
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:10:36 -07:00
|
|
|
#
|
2021-08-03 19:26:33 -07:00
|
|
|
for BOARD in \
|
2022-01-05 10:40:08 -08:00
|
|
|
"hellen/alphax-2chan alphax-2chan" \
|
|
|
|
"hellen/alphax-4chan alphax-4chan" \
|
2022-02-09 19:22:47 -08:00
|
|
|
"hellen/harley81 harley81" \
|
2021-08-03 19:26:33 -07:00
|
|
|
"hellen/hellen128 hellen128 rusefi_hellen128mercedes.ini" \
|
|
|
|
"hellen/hellen121vag hellen121vag" \
|
|
|
|
"hellen/hellen121nissan hellen121nissan" \
|
|
|
|
"hellen/hellen154hyundai hellen154hyundai" \
|
2021-10-11 17:51:05 -07:00
|
|
|
"hellen/hellen88bmw hellen88bmw" \
|
2021-08-03 19:26:33 -07:00
|
|
|
"hellen/hellen72 hellen72" \
|
2021-12-01 18:07:38 -08:00
|
|
|
"hellen/hellen81 hellen81" \
|
2021-08-07 02:29:13 -07:00
|
|
|
"hellen/hellen-nb1 hellen-nb1" \
|
2022-05-21 06:44:57 -07:00
|
|
|
"hellen/hellen-gm-e67 hellen-gm-e67" \
|
2021-08-03 19:26:33 -07:00
|
|
|
"hellen/hellen64_miataNA6_94 hellenNA6" \
|
2021-12-29 19:37:14 -08:00
|
|
|
"hellen/hellenNA8_96 hellenNA8_96" \
|
2021-08-03 19:26:33 -07:00
|
|
|
"microrusefi mre_f7" \
|
|
|
|
"microrusefi mre_f4" \
|
2022-02-10 16:53:25 -08:00
|
|
|
"core8 core8" \
|
2021-08-03 19:26:33 -07:00
|
|
|
"frankenso frankenso_na6" \
|
|
|
|
"prometheus prometheus_469" \
|
|
|
|
"prometheus prometheus_405" \
|
|
|
|
"proteus proteus_f7" \
|
|
|
|
"proteus proteus_f4" \
|
2022-01-20 12:14:47 -08:00
|
|
|
"proteus proteus_h7" \
|
2022-05-25 09:35:49 -07:00
|
|
|
"f407-discovery f407-discovery" \
|
2022-02-03 09:21:54 -08:00
|
|
|
"f429-discovery f429-discovery" \
|
2021-08-03 19:26:33 -07:00
|
|
|
"atlas atlas"\
|
2022-03-30 16:18:18 -07:00
|
|
|
"tdg-pdm8 tdg-pdm8"\
|
2021-08-03 19:26:33 -07:00
|
|
|
; do
|
2021-07-18 21:12:14 -07:00
|
|
|
BOARD_NAME=$(echo "$BOARD" | cut -d " " -f 1)
|
|
|
|
BOARD_SHORT_NAME=$(echo "$BOARD" | cut -d " " -f 2)
|
|
|
|
INI=$(echo "$BOARD" | cut -d " " -f 3)
|
|
|
|
bash gen_config_board.sh $BOARD_NAME $BOARD_SHORT_NAME $INI
|
|
|
|
[ $? -eq 0 ] || { echo "ERROR generating board $BOARD_NAME $BOARD_SHORT_NAME $INI"; exit 1; }
|
2020-06-19 07:10:17 -07:00
|
|
|
done
|
2020-01-02 15:58:28 -08:00
|
|
|
|
2022-05-25 09:35:49 -07:00
|
|
|
#
|
|
|
|
# TODO: it's time to kill the 'default' bundle concept and just live happily with explicit f407-discovery
|
2021-07-30 14:39:55 -07:00
|
|
|
# default config should be generated after normal custom boards so that it would be default
|
|
|
|
# firmware/controllers/generated/rusefi_generated.h file which would be pushed into VCS
|
|
|
|
bash gen_config_default.sh
|
|
|
|
[ $? -eq 0 ] || { echo "ERROR generating default"; exit 1; }
|
|
|
|
|
|
|
|
|
2022-04-11 10:54:18 -07:00
|
|
|
# todo: we have a bit of code duplication with build-firmware.yaml here :(
|
2020-06-19 07:10:17 -07:00
|
|
|
cd config/boards/kinetis/config
|
2022-04-11 08:35:39 -07:00
|
|
|
bash gen_kinetis_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
|
2022-04-11 08:35:39 -07:00
|
|
|
bash gen_cypress_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
|
|
|
|
2022-04-11 08:35:39 -07:00
|
|
|
bash config/boards/subaru_eg33/config/gen_subaru_config.sh
|
2021-02-18 15:18:13 -08:00
|
|
|
[ $? -eq 0 ] || { echo "ERROR generating board subaru_eg33 subaru_eg33_f7"; exit 1; }
|
|
|
|
|
2020-01-02 15:58:28 -08:00
|
|
|
exit 0
|