Skip to content

esp32: Move linker wrap directives to common cmake file. #16058

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

Merged

Conversation

projectgus
Copy link
Contributor

Summary

For in-tree builds, these are effectively equivalent. However for out-of-tree builds it's preferable to have as little as possible
in the top-level CMakeLists.txt file (as the out-of-tree build needs its own copy).

Testing

Built the ESP32 port and used the linker map file to verify the __wrap_-prefixed symbols were still linked into the ELF file.

@projectgus
Copy link
Contributor Author

@karlp Noticed this while looking at #16013 last week. It may be relevant to your use case as well.

For in-tree builds, these are effectively equivalent. However for
out-of-tree builds it's preferable to have as little as possible in the
top-level CMakeLists.txt file (as the out-of-tree build needs its own
copy).

This work was funded through GitHub Sponsors.

Signed-off-by: Angus Gratton <angus@redyak.com.au>
Signed-off-by: Angus Gratton <angus@redyak.com.au>
@dpgeorge dpgeorge force-pushed the bugfix/esp32_cmakelists_minimal branch from e233188 to 043ba45 Compare October 28, 2024 00:24
@dpgeorge dpgeorge merged commit 043ba45 into micropython:master Oct 28, 2024
8 checks passed
@dpgeorge
Copy link
Member

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants