From dde9579fabec59afc95b18f00cc6bef1d22067cf Mon Sep 17 00:00:00 2001 From: Valerio Setti Date: Fri, 10 May 2024 05:22:33 +0200 Subject: [PATCH] all.sh: crypto-client: keep NV_SEED disabled in the server lib This is necessary because otherwise the library is not able to find the seedfile at runtime and it fails the initialization. However since this test runs on a standard PC we can rely on platform entropy as source of entropy. Signed-off-by: Valerio Setti --- tests/scripts/all.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 0a82237615..573f769cc1 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -970,6 +970,11 @@ helper_crypto_client_build() { scripts/config.py unset MBEDTLS_PSA_CRYPTO_BUILTIN_KEYS scripts/config.py set MBEDTLS_PSA_CRYPTO_KEY_ID_ENCODES_OWNER scripts/config.py set MBEDTLS_PSA_CRYPTO_SPM + # Disable NV_SEED as the MBEDTLS_PLATFORM_STD_NV_SEED_FILE is not in + # right path for mbedtls_platform_std_nv_seed_read(). Just rely on + # mbedtls_platform_entropy_poll() as entropy source(). + scripts/config.py unset MBEDTLS_ENTROPY_NV_SEED + scripts/config.py unset MBEDTLS_PLATFORM_NV_SEED_ALT fi make -C tests CC="$ASAN_CC" CFLAGS="$ASAN_CFLAGS" LDFLAGS="$ASAN_CFLAGS" $TARGET_LIB