From d9ad663ceafe2553183660a7ca2c0e30d28cdafe Mon Sep 17 00:00:00 2001 From: David Horstmann Date: Tue, 5 Nov 2024 14:40:03 +0000 Subject: [PATCH] Update common.mk with test helper object paths Signed-off-by: David Horstmann --- scripts/common.make | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/common.make b/scripts/common.make index 906b8ac8e3..b3d028ff62 100644 --- a/scripts/common.make +++ b/scripts/common.make @@ -151,18 +151,19 @@ endif # Auxiliary modules used by tests and some sample programs MBEDTLS_CORE_TEST_OBJS := $(patsubst %.c,%.o,$(wildcard \ - ${MBEDTLS_TEST_PATH}/src/*.c \ - ${MBEDTLS_TEST_PATH}/src/drivers/*.c \ + ${MBEDTLS_PATH}/framework/tests/src/*.c \ + ${MBEDTLS_PATH}/framework/tests/src/drivers/*.c \ )) # Ignore PSA stubs when building for the client side of PSASIM (i.e. # CRYPTO_CLIENT && !CRYPTO_C) otherwise there will be functions duplicates. ifdef PSASIM MBEDTLS_CORE_TEST_OBJS := $(filter-out \ - ${MBEDTLS_TEST_PATH}/src/psa_crypto_stubs.o, $(MBEDTLS_CORE_TEST_OBJS)\ + ${MBEDTLS_PATH}/framework/tests/src/psa_crypto_stubs.o, $(MBEDTLS_CORE_TEST_OBJS)\ ) endif # Additional auxiliary modules for TLS testing MBEDTLS_TLS_TEST_OBJS = $(patsubst %.c,%.o,$(wildcard \ + ${MBEDTLS_TEST_PATH}/src/*.c \ ${MBEDTLS_TEST_PATH}/src/test_helpers/*.c \ ))