mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-29 04:20:12 +00:00
all.sh: improvements
- add quotes to the $@ parameter in helper_crypto_client_build() - instead of copying mbedtls_config.h to build static libraries, we rely on the already existing backup/cleanup mechanism which is available in all.sh. Signed-off-by: Valerio Setti <valerio.setti@nordicsemi.no>
This commit is contained in:
parent
c98f8ab5f7
commit
f57afd5acd
@ -951,8 +951,6 @@ helper_crypto_client_build() {
|
|||||||
shift
|
shift
|
||||||
TARGET_LIB=libpsa$TARGET
|
TARGET_LIB=libpsa$TARGET
|
||||||
|
|
||||||
cp $CONFIG_H $CONFIG_H.bak
|
|
||||||
|
|
||||||
if [ "$TARGET" == "client" ]; then
|
if [ "$TARGET" == "client" ]; then
|
||||||
scripts/config.py full
|
scripts/config.py full
|
||||||
scripts/config.py unset MBEDTLS_PSA_CRYPTO_C
|
scripts/config.py unset MBEDTLS_PSA_CRYPTO_C
|
||||||
@ -978,10 +976,12 @@ helper_crypto_client_build() {
|
|||||||
scripts/config.py unset MBEDTLS_PLATFORM_NV_SEED_ALT
|
scripts/config.py unset MBEDTLS_PLATFORM_NV_SEED_ALT
|
||||||
fi
|
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
|
# cleanup() will restore some backed-up files which include $CONFIG_H and
|
||||||
mv $CONFIG_H.bak $CONFIG_H
|
# $CRYPTO_CONFIG_H. Built libraries were already copied to psasim at this
|
||||||
|
# point.
|
||||||
|
cleanup
|
||||||
}
|
}
|
||||||
|
|
||||||
################################################################
|
################################################################
|
||||||
|
Loading…
x
Reference in New Issue
Block a user