CI BRANCH ONLY: Workaround for renamed Musca targets: The latest development version of TF-M has moved "musca_s1" and "musca_b" into the "arm" subdirectory which becomes part of the target names. But tfm_target_names in targets.json of Mbed OS track the released version of TF-M (v1.3.0 at this point).
The temporary workaround is to hardcode the values in build_tfm.py on the tfm_latest_integration_check branch to unblock nightly CI. This will be removed when the next TF-M release becomes available and we update targets.json in Mbed OS.
Mbed CLI 1: Ignore Mbed TLS source: The PSA headers from trusted-firmware-m are not currently fully compatible with the Mbed TLS source code, lacking some definitions in crypto headers. Normally, when we upgrade TF-M in mbed-os to a new release (e.g. v1.3.0), we make changes to the headers so that normal applications can work with both TF-M and Mbed TLS.
But mbed-os-tf-m-regression-tests directly imports PSA headers from TF-M as part of the build process, overriding the existing PSA headers in mbed-os. Add .mbedignore to ensure Mbed CLI 1 does not compile Mbed TLS and fail.
This PR fixes the following:
tfm_target_name
s intargets.json
of Mbed OS track the released version of TF-M (v1.3.0 at this point). The temporary workaround is to hardcode the values inbuild_tfm.py
on the tfm_latest_integration_check branch to unblock nightly CI. This will be removed when the next TF-M release becomes available and we updatetargets.json
in Mbed OS..mbedignore
to ensure Mbed CLI 1 does not compile Mbed TLS and fail.