-
Notifications
You must be signed in to change notification settings - Fork 74
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
svdtools: install rust version #174
Conversation
a1d19f0
to
7a7ce07
Compare
The CI needs the cache cleared but I'm not familiar with how to do that. |
You have to bump this cache key to have CI generate a new tools cache: avr-device/.github/workflows/ci.yml Line 37 in 07f32b8
|
The initial effort was a little too ambitious as there have been some breaking changes to the patch file processing. I'd like to compare against the current patched svd files, but I haven't managed to get the python version of svdtools to build. Is there somewhere I could download them from? |
You can download the CI artifacts from main branch, e.g. here: https://github.com/Rahix/avr-device/actions/runs/12615563082/artifacts/2386623070 |
Do post the the diff of the generated svds in this pull request please :) |
@tones111, check the changes in this PR https://github.com/Rahix/avr-device/pull/157/files, I think a large part of the patch file porting has already been done there. |
7a7ce07
to
a731482
Compare
Took a bit to figure out the yaml syntax and why it was complaining but the changes to resolve ended up being pretty straightforward. I committed the generated svd files, so once we've looked at them I will remove it. When comparing against the svd files @Rahix linked above there were some formatting improvements. Running the original patched files through |
Here's the diff against an
|
They are removed because the derived enumerals from ISC0 already include properly named values for them. This is still a breaking change, but one we do want in my eyes.
Looks okay to me. As a final check, you can diff the generated rust sources of each version. You can find the original ones in the crate archive contained in I would expect this diff to only show the whitespace changes and the removed ISC1 enumerated values. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes look fine, after the aforementioned cross-check of the generated sources and removal of the comitted SVDs, this is ready for merge :)
BTW, comitting the SVDs wasn't necessary - CI again created an artifacts archive that includes them for your PR: https://github.com/Rahix/avr-device/actions/runs/12625939793?pr=174
Ah, just noticed svdtools version 0.4.0 is hot off the stove, maybe we can update this PR to the new version immediately to reduce work later on? :) |
This change removes a dependency on python/pip and is more consistent with the installation of the other supporting tools.
a731482
to
ef1a38c
Compare
Here's a new diff (against main svds) for the update to svdtools 0.4.0. A few more tweaks were required that resulted in some minor corrections
However, it looks like the timer enum changes from #173 aren't working but I'm not sure why. |
Maybe the atmega128rfa1 enum changes are there. The svd file has
and the Update: Ah, this is the same as the ISC1 enumerals above. As you mention, it knows that there are no changes from the derived enum. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks so much for taking care of this!
This change removes a dependency on python/pip and is more consistent with the installation of the other supporting tools.