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

Merge pull request #9445 from ronald-cron-arm/tf-psa-crypto-cmake-build

Add crypto only CMake build system
This commit is contained in:
Ronald Cron
2024-10-03 20:56:00 +00:00
committed by GitHub
46 changed files with 887 additions and 289 deletions

View File

@ -85,6 +85,26 @@ component_test_cmake_out_of_source () {
rm -rf "$OUT_OF_SOURCE_DIR"
}
component_test_cmake_tf_psa_crypto_out_of_source () {
# Remove existing generated files so that we use the ones cmake
# generates
make neat
msg "build: cmake tf-psa-crypto 'out-of-source' build"
MBEDTLS_ROOT_DIR="$PWD"
cd tf-psa-crypto
TF_PSA_CRYPTO_ROOT_DIR="$PWD"
mkdir "$OUT_OF_SOURCE_DIR"
cd "$OUT_OF_SOURCE_DIR"
# Note: Explicitly generate files as these are turned off in releases
cmake -D CMAKE_BUILD_TYPE:String=Check -D GEN_FILES=ON "$TF_PSA_CRYPTO_ROOT_DIR"
make
msg "test: cmake tf-psa-crypto 'out-of-source' build"
make test
cd "$TF_PSA_CRYPTO_ROOT_DIR"
rm -rf "$OUT_OF_SOURCE_DIR"
cd "$MBEDTLS_ROOT_DIR"
}
component_test_cmake_as_subdirectory () {
# Remove existing generated files so that we use the ones CMake
# generates

View File

@ -15,7 +15,7 @@ component_test_psa_compliance () {
CC=gcc make -C library libmbedcrypto.a
msg "unit test: test_psa_compliance.py"
CC=gcc ./tests/scripts/test_psa_compliance.py
CC=gcc ./tests/scripts/test_psa_compliance.py --build-dir="."
}
support_test_psa_compliance () {