Use TF_PSA_CRYPTO_ROOT_DIR

Signed-off-by: Ronald Cron <ronald.cron@arm.com>
diff --git a/tests/scripts/components-basic-checks.sh b/tests/scripts/components-basic-checks.sh
index cd311eb..85731a1 100644
--- a/tests/scripts/components-basic-checks.sh
+++ b/tests/scripts/components-basic-checks.sh
@@ -28,7 +28,7 @@
     make generated_files
     $FRAMEWORK/scripts/make_generated_files.py --check
 
-    cd tf-psa-crypto
+    cd $TF_PSA_CRYPTO_ROOT_DIR
     ./framework/scripts/make_generated_files.py --check
 
     msg "Check files generated with cmake"
@@ -47,7 +47,7 @@
 
     $FRAMEWORK/scripts/make_generated_files.py --root "$OUT_OF_SOURCE_DIR" --check
 
-    cd tf-psa-crypto
+    cd $TF_PSA_CRYPTO_ROOT_DIR
     ./framework/scripts/make_generated_files.py --root "$OUT_OF_SOURCE_DIR/tf-psa-crypto" --check
 
     # This component ends with the generated files present in the source tree.