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

Always generate version information #1210

Merged
merged 3 commits into from
Feb 1, 2023
Merged

Conversation

krichardsson
Copy link
Contributor

This PR forces re-generation of the version_gen.c file when the firmware is built. Currently it is not always built which leads to invalid version information in the console log when a Crazyflie is booted.

Fixes #1049

Copy link
Member

@ataffanel ataffanel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good thing to regenerate this file for all the build but shouldn't it still ignored by git?

@@ -45,4 +45,3 @@ build/
**/*.cmd
**/*.a
*.elf
src/utils/src/version_gen.c
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is the version file removed from .gitignore? It likely should not be committed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The path to the generated file is build/src/utils/src/version_gen.c, that is not in the /src dir which means that it is already ignored by the build/ entry in .gitignore

@krichardsson krichardsson merged commit 770db30 into master Feb 1, 2023
@krichardsson krichardsson deleted the krichardsson/issue-1049 branch February 1, 2023 13:12
@krichardsson krichardsson added this to the 2023.02 milestone Feb 21, 2023
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

Successfully merging this pull request may close these issues.

Version information not updated in local build
2 participants