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>
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>
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>
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>
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>
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>
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>
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>
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>
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>