1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

crypto-client: allow debug build of libraries and test binaries

Add DEBUG=1 in test_psasim() to helpers and final make to build
the libraries and the final binaries with debug symbols
enabled.

Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
Valerio Setti
2024-05-10 15:53:40 +02:00
parent 237a64ef07
commit c98f8ab5f7
2 changed files with 3 additions and 2 deletions

View File

@ -948,6 +948,7 @@ helper_libtestdriver1_make_main() {
# $1: target which can be "client" or "server"
helper_crypto_client_build() {
TARGET=$1
shift
TARGET_LIB=libpsa$TARGET
cp $CONFIG_H $CONFIG_H.bak
@ -977,7 +978,7 @@ helper_crypto_client_build() {
scripts/config.py unset MBEDTLS_PLATFORM_NV_SEED_ALT
fi
make -C tests/psa-client-server/psasim/ CFLAGS="$ASAN_CFLAGS" LDFLAGS="$ASAN_CFLAGS" $TARGET_LIB
make -C tests/psa-client-server/psasim/ CFLAGS="$ASAN_CFLAGS" LDFLAGS="$ASAN_CFLAGS" $TARGET_LIB $@
rm $CONFIG_H
mv $CONFIG_H.bak $CONFIG_H