-
Notifications
You must be signed in to change notification settings - Fork 11
Add new functionality to build_tfm.py
#80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add new functionality to build_tfm.py
#80
Conversation
build_tfm.py
build_tfm.py
e35f314
to
6641d3c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good. The list of files to copy seems tricky as it has changed already...
6641d3c
to
11cea3e
Compare
The PR requires a merge of #78 |
Forced pushed to address review comments |
build_tfm.py
build_tfm.py
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. The discussion on VERSION.txt is out of the scope of the PR itself, so it's okay for now.
11cea3e
to
2ee145f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The scripts look good to me, will give them a run
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested the scripts locally
2ee145f
to
6d6b6fa
Compare
Forced pushed to address review comments and rebased |
3413cb5
to
82fa7b2
Compare
Use `mbed-tfm-rebase-check` branches of respective remote and repository (dependencies) instead of `mbed-tfm`. This helps to resolve any rebase issues on the Mbed OS patches required for TF-M latest implementation. Additionally, clone `psa-arch-tests` repository which is used by TF-M + Mbed OS.
82fa7b2
to
4be8d22
Compare
Forced pushed to address review comments. |
`build_tfm.py`: This feature deletes the cloned dependencies directory enabling user to start in a clean state. `test_psa_target.py`: Since this script calls the `build_tfm.py` therefore this functionality is extended. Note: This would be an expensive operation as every time it would delete the cloned dependencies directory, forcing it to set up the dependencies again.
`build_tfm.py`: This feature skips the cloning/checkout of TF-M dependencies enabling user to work with their setup. Note: This feature will be overridden if `--clean` option is used. `test_psa_target`: Since this script calls the `build_tfm.py` therefore this functionality is extended.
This feature skips the copying of TF-M dependencies files and folders to Mbed OS.
The purpose of this script is to use cloned TF-M dependencies and build TF-M regression and PSA compliance test suites. This is to support internal CI run.
4be8d22
to
26b22d3
Compare
Forced pushed to split |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I've triggered a CI run.
CI passed! |
The script builds |
Fixed, typo. At the moment on |
Fixes ARMmbed#24 The issue on Windows (Host OS) is that it clones dependencies in read-only mode, which creates an issue when deleting them if `test_psa_target.py` or `build_tfm.py` is executed. Therefore handle the permission issue by setting them in read-write mode. This fix was missed when PR ARMmbed#80 was merged after ARMmbed#83 To be squashed with 03fb1c0
Fixes ARMmbed#24 The issue is with the permission model on Windows (Host OS), which creates an issue when deleting them if `test_psa_target.py` or `build_tfm.py` is executed. Therefore handle the permission issue by setting them in read-write mode. This fix was missed when PR ARMmbed#80 was merged after ARMmbed#83 To be squashed with 03fb1c0
Fixes ARMmbed#24 The permission model on Windows (Host OS) creates an issue when deleting files, if `test_psa_target.py` or `build_tfm.py` is executed. Therefore handle it by setting them in read-write mode. This fix was missed when PR ARMmbed#80 was merged after ARMmbed#83 To be squashed with 03fb1c0
This enables the building of TF-M latest config which was set up by
check_rebase.py
.build_external_tfm.py
buildsARM_MUSCA_S1
target with the external TF-M + patches required by Mbed OS. It relies oncheck_rebase.py
to set up the required dependencies.