From 308c7375724fceb8cd1f3b0cfb589c31f8854cd4 Mon Sep 17 00:00:00 2001 From: Minos Galanakis Date: Wed, 7 Aug 2024 15:00:28 +0100 Subject: [PATCH] Add all.sh component Signed-off-by: Minos Galanakis Signed-off-by: Ronald Cron --- tests/scripts/components-build-system.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/tests/scripts/components-build-system.sh b/tests/scripts/components-build-system.sh index 2c2d46004e..a2c32f7e57 100644 --- a/tests/scripts/components-build-system.sh +++ b/tests/scripts/components-build-system.sh @@ -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