-
Notifications
You must be signed in to change notification settings - Fork 214
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
Automatically add rom_functions.x
to the linker scripts
#2339
Conversation
I guess the failing HIL test is unrelated to this PR |
#IF __include_rom_coexist_and_phy | ||
INCLUDE "rom_coexist.x" | ||
INCLUDE "rom_phy.x" | ||
#ENDIF |
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.
Do we want to keep these on incompatible devices?
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.
Given it's an internal feature my thinking was it's doesn't need additional safety belts - we could certainly check it in build.rs if we think we should
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.
T.b.h long term we should change esp-wifi-sys to include all rom functions via rom_functions.x but maybe when we have some more interesting reasons to justify a new version
This is a nice QOL change! I've been manually added build.rs scripts to avoid |
What about if all the linker scripts lived in esp-hal? For instance, rom-functions.x definitely could and would save an internal feature here - not sure about the phy or coexist linker files though |
They all definitely could - one annoyance is when updating drivers we might need to change them since it often happens that ROM functions are replaced by the libraries (and apparently just defining them weak would cause problems) |
Thinking about it - yes let's do that. We just need to make sure we are in sync with what commit the drivers are from - shouldn't be a huge problem |
Thank you for your contribution!
We appreciate the time and effort you've put into this pull request.
To help us review it efficiently, please ensure you've gone through the following checklist:
Submission Checklist 📝
cargo xtask fmt-packages
command to ensure that all changed code is formatted correctly.CHANGELOG.md
in the proper section.Extra:
Pull Request Details 📖
Description
Don't require users to manually add
rom_functions.x
when usingesp-wifi
esp-hal
now includes a (private) feature to do that. It's automatically activated byesp-wifi
since we depend onesp-hal
anywaysskip-changelog
because of the added private feature in esp-halTesting
Examples still work. Apparently adding it manually in addition is not a problem (for lld .... but it is for gnu-ld)