diff --git a/.github/workflows/build-firmware.yaml b/.github/workflows/build-firmware.yaml index c6cfc4d9dd..fc3ded0877 100644 --- a/.github/workflows/build-firmware.yaml +++ b/.github/workflows/build-firmware.yaml @@ -250,17 +250,18 @@ jobs: - name: Generate Configs for build-target if: ${{ matrix.skip-config != 'yes' && env.skip != 'true' }} working-directory: ./firmware/ + # todo: we have code duplication with gen_config.sh here :( run: | if [ "${{ matrix.build-target }}" = "kinetis" ]; then cd config/boards/kinetis/config - bash gen_config.sh + bash gen_kinetis_config.sh [ $? -eq 0 ] || { echo "ERROR generating board kinetis kin"; exit 1; } elif [ "${{ matrix.build-target }}" = "cypress" ]; then cd config/boards/hellen/cypress/config - bash gen_config.sh + bash gen_cypress_config.sh [ $? -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 + bash config/boards/subaru_eg33/config/gen_subaru_config.sh [ $? -eq 0 ] || { echo "ERROR generating board subaru_eg33 subaru_eg33_f7"; exit 1; } else bash gen_config_board.sh ${{matrix.folder}} ${{matrix.build-target}} ${{matrix.ini-file}} diff --git a/firmware/gen_config.sh b/firmware/gen_config.sh index 77a68cd5f2..c1588ceafe 100755 --- a/firmware/gen_config.sh +++ b/firmware/gen_config.sh @@ -53,6 +53,7 @@ bash gen_config_default.sh [ $? -eq 0 ] || { echo "ERROR generating default"; exit 1; } +# todo: we have a bit of code duplication with build-firmware.yaml here :( cd config/boards/kinetis/config bash gen_kinetis_config.sh [ $? -eq 0 ] || { echo "ERROR generating board kinetis kin"; exit 1; }