Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom FW repos code generation process toolset #5817

Closed
rusefillc opened this issue Dec 19, 2023 · 3 comments
Closed

custom FW repos code generation process toolset #5817

rusefillc opened this issue Dec 19, 2023 · 3 comments

Comments

@rusefillc
Copy link
Contributor

problem statement:

at the moment in https://github.com/rusefi/fw-custom-example/ we invoke

      - name: Gen Config
        working-directory: ext/rusefi/firmware
        run: |
          bash gen_config_board.sh ../../.. ${{inputs.shortBoardName}}

which modifies files within ext/rusefi folder

further compilation steps in fw-custom-example read those ext/rusefi generated files, and then we have a hack of

      - name: Push Config
        run: |
          mkdir -p generated
          cp ext/rusefi/firmware/controllers/generated/rusefi_generated.h   generated
          cp ext/rusefi/firmware/controllers/generated/signature_${{inputs.shortBoardName}}.h generated
          cp ext/rusefi/firmware/tunerstudio/generated/rusefi_${{inputs.shortBoardName}}.ini  generated
          git config --local user.email "action@github.com"
          git config --local user.name "GitHub git update Action"
          git add generated/*
          git commit -am "GHA Automation Snapshot just for reference"
          git status

problem: that's a mess

it's desired to have only one copy of fw-custom-example files outside of ext/rusefi

@rusefillc
Copy link
Contributor Author

#if !EFI_UNIT_TEST
#define SIGNATURE_H_FILENAME QUOTE(SIGNATURE_NAME SHORT_BOARD_NAME SIGNATURE_EXT)
#include SIGNATURE_H_FILENAME

#pragma message ("TS_SIGNATURE: " TS_SIGNATURE)

@rusefillc
Copy link
Contributor Author

6fc7581

rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 19, 2023
rusefillc added a commit that referenced this issue Dec 20, 2023
rusefillc added a commit that referenced this issue Dec 20, 2023
rusefillc added a commit that referenced this issue Dec 20, 2023
bugfix: some bundles were using wrong .ini file
rusefillc added a commit that referenced this issue Dec 20, 2023
rusefillc added a commit that referenced this issue Dec 20, 2023
rusefillc added a commit that referenced this issue Dec 20, 2023
rusefillc added a commit that referenced this issue Dec 20, 2023
rusefillc added a commit that referenced this issue Dec 20, 2023
bugfix: some bundles were using wrong .ini file
rusefillc added a commit that referenced this issue Dec 20, 2023
rusefillc added a commit that referenced this issue Dec 20, 2023
rusefillc added a commit that referenced this issue Dec 20, 2023
rusefillc added a commit that referenced this issue Dec 20, 2023
rusefillc added a commit that referenced this issue Dec 20, 2023
rusefillc pushed a commit that referenced this issue Dec 20, 2023
rusefillc pushed a commit that referenced this issue Dec 20, 2023
handling .ini upload and bundle
rusefillc pushed a commit that referenced this issue Dec 20, 2023
only:fail fast and fail often!
rusefillc pushed a commit that referenced this issue Dec 20, 2023
only:fail fast and fail often!
rusefillc pushed a commit that referenced this issue Dec 20, 2023
only:fail fast and fail often!
rusefillc pushed a commit that referenced this issue Dec 20, 2023
fail fast and fail often!
rusefillc pushed a commit that referenced this issue Dec 21, 2023
only: hopefully last commit?
@rusefillc
Copy link
Contributor Author

Done!!!

@rusefillc rusefillc changed the title custom FW repos code generation process custom FW repos code generation process toolset Jan 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant