mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-09-02 16:01:16 +03:00
Update libtestdriver paths in tests/Makefile
Signed-off-by: David Horstmann <david.horstmann@arm.com>
This commit is contained in:
@@ -279,16 +279,16 @@ libtestdriver1.a:
|
|||||||
touch ./libtestdriver1/3rdparty/Makefile.inc
|
touch ./libtestdriver1/3rdparty/Makefile.inc
|
||||||
|
|
||||||
# Set the test driver base (minimal) configuration.
|
# Set the test driver base (minimal) configuration.
|
||||||
cp ./include/test/drivers/config_test_driver.h ./libtestdriver1/include/mbedtls/mbedtls_config.h
|
cp ../framework/tests/include/test/drivers/config_test_driver.h ./libtestdriver1/include/mbedtls/mbedtls_config.h
|
||||||
|
|
||||||
# Set the PSA cryptography configuration for the test library.
|
# Set the PSA cryptography configuration for the test library.
|
||||||
# It is set from the copied include/psa/crypto_config.h of the Mbed TLS
|
# It is set from the copied include/psa/crypto_config.h of the Mbed TLS
|
||||||
# library the test library is intended to be linked with extended by
|
# library the test library is intended to be linked with extended by
|
||||||
# ./include/test/drivers/crypto_config_test_driver_extension.h to
|
# ../framework/tests/include/test/drivers/crypto_config_test_driver_extension.h to
|
||||||
# mirror the PSA_ACCEL_* macros.
|
# mirror the PSA_ACCEL_* macros.
|
||||||
mv ./libtestdriver1/include/psa/crypto_config.h ./libtestdriver1/include/psa/crypto_config.h.bak
|
mv ./libtestdriver1/include/psa/crypto_config.h ./libtestdriver1/include/psa/crypto_config.h.bak
|
||||||
head -n -1 ./libtestdriver1/include/psa/crypto_config.h.bak > ./libtestdriver1/include/psa/crypto_config.h
|
head -n -1 ./libtestdriver1/include/psa/crypto_config.h.bak > ./libtestdriver1/include/psa/crypto_config.h
|
||||||
cat ./include/test/drivers/crypto_config_test_driver_extension.h >> ./libtestdriver1/include/psa/crypto_config.h
|
cat ../framework/tests/include/test/drivers/crypto_config_test_driver_extension.h >> ./libtestdriver1/include/psa/crypto_config.h
|
||||||
echo "#endif /* PSA_CRYPTO_CONFIG_H */" >> ./libtestdriver1/include/psa/crypto_config.h
|
echo "#endif /* PSA_CRYPTO_CONFIG_H */" >> ./libtestdriver1/include/psa/crypto_config.h
|
||||||
|
|
||||||
# Prefix MBEDTLS_* PSA_* symbols with LIBTESTDRIVER1_ as well as
|
# Prefix MBEDTLS_* PSA_* symbols with LIBTESTDRIVER1_ as well as
|
||||||
|
Reference in New Issue
Block a user