Skip to content

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

LoveKarlsson
Copy link
Contributor

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.

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>
@github-actions github-actions bot added the size: XS A PR changing only a single line of code label May 27, 2025
Copy link

The following west manifest projects have changed revision in this Pull Request:

Name Old Revision New Revision Diff
mbedtls zephyrproject-rtos/mbedtls@5f88993 (zephyr) zephyrproject-rtos/mbedtls#72 zephyrproject-rtos/mbedtls#72/files

DNM label due to: 1 project with PR revision

Note: This message is automatically posted and updated by the Manifest GitHub Action.

@github-actions github-actions bot added manifest manifest-mbedtls DNM (manifest) This PR should not be merged (controlled by action-manifest) labels May 27, 2025
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DNM (manifest) This PR should not be merged (controlled by action-manifest) manifest manifest-mbedtls size: XS A PR changing only a single line of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant