Skip to content

Conversation

@LDong-Arm
Copy link
Contributor

@LDong-Arm LDong-Arm commented Mar 18, 2021

Fixes: #25

The previous path

mbed-os/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/TARGET_IGNORE/

where we clone trusted-firmware-m, tf-m-tests and psa-arch-tests into is way too long:

  • This often exceeds the default maximum path length allowed by Windows, resulting in fetch and build failures.
  • The path is hard for developers to locate, if they want to make code changes.
  • The cloned repositories are not directly used by Mbed OS - it's mbed-os-tf-m-regression-tests which builds those repositories.

@LDong-Arm
Copy link
Contributor Author

I'm letting Circle CI and Travis test the build, so I don't need to do it locally.

@LDong-Arm LDong-Arm requested a review from evedon March 18, 2021 18:10
LDong-Arm added a commit to LDong-Arm/mbed-os that referenced this pull request Mar 18, 2021
In ARMmbed/mbed-os-tf-m-regression-tests#96
we relocate the path to clone TF-M to a shorter one. This solves
an unsupported long path issue on Windows, and also makes the TF-M
and tests easier for developers to locate. Hence there's no need
to ignore the old path.

Note: For TF-M v1.0, we don't support building them from source
anymore, so it's also been removed from .gitignore.
The previous path

    mbed-os/platform/FEATURE_EXPERIMENTAL_API/FEATURE_PSA/TARGET_TFM/TARGET_TFM_LATEST/TARGET_IGNORE/

where we clone trusted-firmware-m, tf-m-tests and psa-arch-tests into
is way too long:
* This often exceeds the default maximum path length allowed by
  Windows, resulting in fetch and build failures.
* The path is hard for developers to locate, if they want to make code
  changes.
* The cloned repositories are not directly used by Mbed OS - it's
  mbed-os-tf-m-regression-tests which builds those repositories.
@LDong-Arm LDong-Arm force-pushed the reduce_path_length branch from c36ae94 to f059bcb Compare March 19, 2021 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix: Long path issue on Windows when using build_tfm.py

2 participants