Add explanatory comment above #include "../tf-psa-crypto/core/common.h"

Signed-off-by: Ari Weiler-Ofek <ariwei01@e134794.arm.com>
This commit is contained in:
Ari Weiler-Ofek
2025-06-19 08:55:15 +01:00
parent cfbee27b45
commit 69f5706431

View File

@@ -4,6 +4,22 @@
*/
#include "psa/crypto.h"
/*
* Temporary hack: psasims Makefile only does:
* -Itests/psa-client-server/psasim/include
* -I$(MBEDTLS_ROOT_PATH)/include
* -I$(MBEDTLS_ROOT_PATH)/tf-psa-crypto/include
* -I$(MBEDTLS_ROOT_PATH)/tf-psa-crypto/drivers/builtin/include
*
* None of those cover tf-psa-crypto/core, so we rely on the
* “-I$(MBEDTLS_ROOT_PATH)/include” entry plus a parent-relative
* include "../tf-psa-crypto/core/common.h" in order to pull in common.h here,
* which in turn gets MBEDTLS_ATTRIBUTE_UNTERMINATED_STRING (to silence the
* new GCC-15 unterminated-string-initialization warning).
*
* See GitHub issue #10223 for the proper long-term fix.
* https://github.com/Mbed-TLS/mbedtls/issues/10223
*/
#include "../tf-psa-crypto/core/common.h"
#include <string.h>
#include <stdio.h>