Skip to content

Commit

Permalink
Fix out of source directory checks
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Harry-Ramsey committed Dec 5, 2024
1 parent 8358971 commit 8902bd5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/all-core.sh
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,12 @@ run_component () {
"${dd_cmd[@]}"
fi
if in_tf_psa_crypto_repo; then
# Since building TF-PSA-Crypto is out of source, we cannot identify if we
# are in TF-PSA-Crypto repository. We cache the result, which is 0 for
# success.
in_tf_psa_crypto_repo
running_tf_psa_crypto_test="$?"
if [ "$running_tf_psa_crypto_test" -eq 0 ]; then
pre_create_tf_psa_crypto_out_of_source_directory
fi
Expand Down Expand Up @@ -979,7 +984,7 @@ run_component () {
fi
# Restore the build tree to a clean state.
if in_tf_psa_crypto_repo; then
if [ "$running_tf_psa_crypto_test" -eq 0 ]; then
cleanup_tf_psa_crypto_out_of_source_directory
fi
Expand Down

0 comments on commit 8902bd5

Please sign in to comment.