34 lines
1.2 KiB
Bash
Executable File
34 lines
1.2 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "This script reads rusefi_config.txt and produces firmware persistent configuration headers"
|
|
echo "The storage section of rusefi.ini is updated as well"
|
|
|
|
rm -f gen_config.log
|
|
rm -f gen_config_board.log
|
|
|
|
bash gen_config_default.sh
|
|
[ $? -eq 0 ] || { echo "ERROR generating default"; exit 1; }
|
|
|
|
for BOARD in "hellen/hellen72 hellen72" "microrusefi mre_f7" "microrusefi mre_f4" "frankenso frankenso_na6" "prometheus prometheus_469" "prometheus prometheus_405" "proteus proteus_f7" "proteus proteus_f4" "subaru_eg33 subaru_eg33_f7"; do
|
|
BOARD_NAME="${BOARD% *}"
|
|
BOARD_SHORT_NAME="${BOARD#* }"
|
|
bash gen_config_board.sh $BOARD_NAME $BOARD_SHORT_NAME
|
|
[ $? -eq 0 ] || { echo "ERROR generating board $BOARD_NAME $BOARD_SHORT_NAME"; exit 1; }
|
|
done
|
|
|
|
cd config/boards/kinetis/config
|
|
bash gen_config.sh
|
|
[ $? -eq 0 ] || { echo "ERROR generating board kinetis kin"; exit 1; }
|
|
|
|
|
|
cd ../../../..
|
|
cd config/boards/hellen/cypress/config
|
|
bash gen_config.sh
|
|
[ $? -eq 0 ] || { echo "ERROR generating board hellen_cypress hellen_cypress"; exit 1; }
|
|
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
|