26 Commits

Author SHA1 Message Date
Minos Galanakis f51cf54fd4 all-core.sh: Allow overriding of the psa-sim location
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2026-01-08 17:46:11 +00:00
Minos Galanakis 7f6ad7c9b8 psasim: Update location in Makefile and all-core.sh
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2026-01-08 17:45:54 +00:00
Gilles Peskine 898a721b9d Fix missing cleanup of toplevel Makefile
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2026-01-07 19:52:49 +01:00
Gilles Peskine a082c08a1d CMake artifacts cleanup: fix the new code on Ubuntu 16.04
Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2026-01-07 19:52:49 +01:00
Gilles Peskine ffeda99865 Only clean CMake artifacts in-tree
Don't recurse into every subdirectory: that also removed files from
out-of-tree builds that the user may have placed into subdirectories. With
make as the build tool, the cleanup is mostly recoverable, but with ninja as
the build tool, you have to manually run `cmake` again after running
`all.sh`.

Instead, look for things to clean only in directories managed by git.

This also has the benefit of not touching `**/Makefile` if there hasn't been
an in-tree CMake build.

Fixes https://github.com/Mbed-TLS/mbedtls-framework/issues/252

Signed-off-by: Gilles Peskine <Gilles.Peskine@arm.com>
2026-01-07 19:52:49 +01:00
Ronald Cron 8408841ceb Prepare all-core.sh and all-helpers.sh for the deprecation of Make
The deprecation of Make will involve moving
and renaming the root Makefile as "scripts/legacy.make".
See https://github.com/Mbed-TLS/mbedtls/issues/10316.

If "scripts/legacy.make" exists, we use it and
call `make -f scripts/legacy.make` instead of
just `make` to build with Make in all.sh.

In 3.6, there will be no "scripts/legacy.make" and
the root Makefile will remain. The scripts must
continue to work in that case.

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2025-09-10 16:36:09 +02:00
Harry Ramsey 30ecff19ca Add variable for ARM compiler 6 linker
This commit adds a variable ARMC6_LINK which is used when compiling
using CMake.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2025-05-19 15:24:50 +02:00
Ronald Cron ee33e9f3ad Improve condition for seedfile in tf-psa-crypto
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2025-01-14 20:24:00 +01:00
Harry Ramsey f3044f8d98 Remove duplicate Mbed TLS Framework variable
This commit removes a duplicate variable MBEDTLS_FRAMEWORK_ROOT_DIR as
it is now previously defined as FRAMEWORK.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-24 14:25:04 +00:00
Harry Ramsey 008445c193 Use absolute out of source build path
This commit replaces the relative Mbed TLS out of source build path with
a more generic named absolute out of source build path for both Mbed TLS
and TF-PSA-Crypto.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-24 14:25:03 +00:00
Harry Ramsey e11462c606 Remove directory change as commands run in subshells
This commit removes unnecessary directory changes as the commands for
components run in subshells which do not affect the main scripts
directory.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-24 14:25:03 +00:00
Harry Ramsey 4c73fc89e9 Revert changing directory to out of source dir
This commit reverts changing the directory to the out of source
directory, enabling tests which require source code to run. Tests that
require building TF-PSA-Crypto will have to change directory to
OUT_OF_SOURCE_DIR.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-24 14:25:03 +00:00
Harry Ramsey 9794a45d2b Add variable for Mbed TLS-Framework directory
This commit adds a variable for locating Mbed TLS framework which is
used to run multiple test scripts between Mbed TLS and TF-PSA-Crypto.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-24 14:25:03 +00:00
Harry Ramsey 4c9361bb31 Fix out of source directory checks
This commit fixes out of source directory builds, where
in_tf_psa_crypto_repo would fail due to project_name.txt not existing.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-24 14:25:03 +00:00
Harry Ramsey b435d12995 Add MBEDTLS_ROOT_DIR variable
This commit adds MBEDTLS_ROOT_DIR as a variable to the bash script. This
will be used in later commits when migrating to an independent
TF-PSA-Crypto testing suite.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-24 14:25:03 +00:00
Harry Ramsey 974b4137cf Add out of source build functions for TF-PSA-Crypto
This commit adds helper functions to build TF-PSA-Crypto out of source
using CMake.

Signed-off-by: Harry Ramsey <harry.ramsey@arm.com>
2024-12-24 14:25:03 +00:00
Elena Uziunaite b5100e32f0 Simplify path
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-12-09 15:30:35 +00:00
Elena Uziunaite 64b53198e8 Adapt paths for scripts/quiet
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-12-09 15:30:28 +00:00
Elena Uziunaite c43c560fa5 Adapt paths for output_env.sh
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-12-09 15:30:21 +00:00
Minos Galanakis 14cb16a297 all-core: Optimised repo selection during pre-initialisation.
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-12-03 15:59:48 +00:00
Minos Galanakis dbe4be448f libtestdriver: Introduce crypto_config_test_driver.
tf-psa configuration options for the libtestdriver
have been migrated to `crypto_config_test_driver.h`

Signed-off-by: Minos Galanakis <minos.galanakis@arm.com>
2024-11-29 14:39:07 +00:00
Elena Uziunaite b20fcb55e7 Define FRAMEWORK
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:14:06 +00:00
Elena Uziunaite dc49da5121 Edit file paths in all-core.sh
Signed-off-by: Elena Uziunaite <elena.uziunaite@arm.com>
2024-11-27 13:14:06 +00:00
Ronald Cron 50d074d09d Move *config_test_driver* headers back to mbedtls
Signed-off-by: Ronald Cron <ronald.cron@arm.com>
2024-11-20 12:37:26 +01:00
David Horstmann defe38641a Update path in all-core.sh
Signed-off-by: David Horstmann <david.horstmann@arm.com>
2024-11-14 12:32:06 +00:00
Manuel Pégourié-Gonnard ee4ef0bed1 Move all-{core,helpers}.sh into the framework
Signed-off-by: Manuel Pégourié-Gonnard <mpg@elzevir.fr>
2024-11-12 11:35:52 +01:00