-
Notifications
You must be signed in to change notification settings - Fork 8.2k
modules: mbedtls: Fix IAR __packed problem in mbedtls #90663
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: main
Are you sure you want to change the base?
modules: mbedtls: Fix IAR __packed problem in mbedtls #90663
Conversation
Since __packed is a reserved keyword for the IAR compilers, and Zephyr defines it attribute(__packed__), some typedef constructs in mbedtls does not work with attribute(packed), only with the keyword packed. This fix checks if __packed is a macro and temporary undefines it so the typedefs works correctly. Signed-off-by: Lars-Ove Karlsson <lars-ove.karlsson@iar.com>
|
The following west manifest projects have changed revision in this Pull Request:
⛔ DNM label due to: 1 project with PR revision Note: This message is automatically posted and updated by the Manifest GitHub Action. |
|
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
|
Pleasse remove stale as we're waiting for an external repository to accept a PR |
|
This pull request has been marked as stale because it has been open (more than) 60 days with no activity. Remove the stale label or add a comment saying that you would like to have the label removed otherwise this pull request will automatically be closed in 14 days. Note, that you can always re-open a closed pull request at any time. |
|



Since __packed is a reserved keyword for the IAR compilers, and Zephyr defines it attribute(packed), some typedef constructs in mbedtls does not work with attribute(packed), only with the keyword packed.
This fix checks if __packed is a macro and temporary undefines it so the typedefs works correctly.