-
-
Notifications
You must be signed in to change notification settings - Fork 499
integrated rz-svd into subprojects #5853
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
base: dev
Are you sure you want to change the base?
Conversation
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.
this file needs a copyright header
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.
Same here, this file needs a copyright header
subprojects/rz-svd/Makefile
Outdated
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.
remove this
librz/meson.build
Outdated
| rz_svd_proj = subproject( | ||
| 'rz-svd', | ||
| default_options: ['default_library=static', 'werror=false'] | ||
| ) |
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.
this is not the right place.
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.
The removed hardcoded boards needs to be replaced with svd files, i think.
notxvilka
left a comment
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.
Just reuse existing yxml subproject instead of adding one more copy
librz/bin/p/bin_avr.c
Outdated
| /** | ||
| * Helper: Extract basename from filepath | ||
| */ | ||
| static const char *avr_path_basename(const char *path) { |
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.
We have functions for that in librz/util
librz/bin/p/bin_avr.c
Outdated
| /** | ||
| * Helper: Convert string to lowercase in place | ||
| */ | ||
| static void avr_str_tolower(char *str) { |
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.
Same, there is a function for that
librz/bin/p/bin_avr.c
Outdated
| /** | ||
| * Helper: Allocate and copy n bytes of a string | ||
| */ | ||
| static char *avr_str_ndup(const char *str, size_t n) { |
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.
There is a function for that
|
Hey, I made all the requested changes. The rz-svd build moving from librz/meson.build to meson.build is causing some dependency issues. To fix those I referenced librz/util directly which is why the compiling is showing 2 warnings. |
Your checklist for this pull request
RZ_APIfunction and struct this PR changes. (no changes to api)RZ_API).Detailed description
Integrated rz-svd into subprojects, removed the hardcoded values from librz/bin/p/bin_avr.c and used the rz-svd plugin to detect the AVR device names.
...
Test plan
Build and compile the project to ensure rz-svd is added as a subproject, and then test an AVR ELF binary to ensure AVR plugin loads correctly, device detection works, hardcoded tables are no longer required
rz-bin -i path/to/.elf/file
rz-bin -s path/to/.elf/file
Closing issues
closes #5229
...