tf_psa_crypto_config.c missing tf_psa_crypto_platform_requirements.h #784

Closed
opened 2026-04-29 09:43:19 -05:00 by valeriosetti · 0 comments
valeriosetti commented 2026-04-29 09:43:19 -05:00 (Migrated from github.com)

TF-M's configuration files include headers from the standard C library. See for example crypto_config_default.h at line 266 release tag 2.3.0.

When tf_psa_crypto_config.c is compiled, it includes build_info.h which itself includes the configuration file. Without tf_psa_crypto_platform_requirements.h being also included before build_info.h, STDC_WANT_LIB_EXT1 won't be defined and build error will appear.

TF-M's configuration files include headers from the standard C library. See for example `crypto_config_default.h` at [line 266](https://git.trustedfirmware.org/plugins/gitiles/TF-M/trusted-firmware-m.git/+/refs/tags/TF-Mv2.3.0/lib/ext/tf-psa-crypto/tfpsacrypto_config/crypto_config_default.h#266) release tag 2.3.0. When `tf_psa_crypto_config.c` is compiled, it includes `build_info.h` which itself includes the configuration file. Without `tf_psa_crypto_platform_requirements.h` being also included before `build_info.h`, `STDC_WANT_LIB_EXT1` won't be defined and build error will appear.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-Mbed-TLS/TF-PSA-Crypto#784
No description provided.