-
Notifications
You must be signed in to change notification settings - Fork 138
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
Add extra version information to avrdude output #1927
Conversation
This came up in arduino/avrdude-packing#31 |
Better names welcome. |
I think Maybe Which one do you prefer? Other than the name, this PR should be good to go. |
@mcuee I'm fine with either. Another alternative is |
upstream PR: avrdudes/avrdude#1927 Co-authored-by: Hans Ulrich Niedermann <[email protected]>
upstream PR: avrdudes/avrdude#1927 Co-authored-by: Hans Ulrich Niedermann <[email protected]>
upstream PR: avrdudes/avrdude#1927 Co-authored-by: Hans Ulrich Niedermann <[email protected]>
@umbynos has released Arduino flavor of avrdude 7.3 and avrdude 8.0. You may want to try it on your macOS machine. I will try it as well on my machines later this week. @umbynos |
Given That is a bit longer, but its three parts say all there is to know, making its name explain itself:
|
It should also be mentioned here that even though #1698 will always show git information like hash, branch , and tag (if built from git checkout) in its new So this PR will not be obsoleted by #1698. |
I am fine with this proposal. |
Some downstream projects build avrdude and want to add their own version information to the avrdude version to distinguish their builds from others. This adds a clean way to do that without needing to patch the avrdude sources, for both cmake and automake based builds: cmake -DEXTRA_VERSION:STRING=-arduino.1-rc1 ../configure EXTRA_VERSION=-arduino.1-rc1 After building avrdude, the last line of "avrdude -?" will now look similar to the following, depending on whether you are building an avrdude git checkout or an avrdude release tarball: avrdude version 8.0-20240901-arduino.1-rc1 (30e19f2), https://github.com/avrdudes/avrdude avrdude version 8.1-arduino.1-rc1 (30e19f2), https://github.com/avrdudes/avrdude
a52d814
to
cb53a34
Compare
I have changed the name to |
Some downstream projects build avrdude and want to add their own version information to the avrdude version.
This adds a clean way to do that without patching for both cmake and automake based builds:
After building avrdude, the last line of "avrdude -?" will now look similar to the following, depending on whether you are building an avrdude git checkout or an avrdude release: