-
Notifications
You must be signed in to change notification settings - Fork 3k
M2351: Support TFM level 1 #10959
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
Merged
Merged
M2351: Support TFM level 1 #10959
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
85dfc1a
TFM: Change NS lock functions to weak
ccli8 1aca8a5
[M2351] Make exported NSC symbols consistent across toolchains
ccli8 db11eef
[M2351] Remove draft uvisor code with GCC_ARM
ccli8 76a029e
[M2351] Support initializing multiple .data/.bss sections with GCC_ARM
ccli8 41d95ef
[M2351] Support TFM level 1
ccli8 ad80ed1
[M2351] Change default stdio-baud-rate to 115200
ccli8 dec84ed
[M2351] Enforce locked entry into TFM for platform-specific NSC calls
ccli8 a0a1c4d
[M2351] Override NS interface by locking kernel scheduler
ccli8 c9b4474
[M2351] Merge secure idle/powerdown sequences into one
ccli8 9f88fce
[M2351] Support secure/non-secure combined build for PSA
ccli8 fc60d1f
[M2351] Change memory partition for PSA
ccli8 22e4f93
[M2351] Add pre-built secure images for PSA
ccli8 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
49 changes: 49 additions & 0 deletions
49
...VOTON/TARGET_M2351/TARGET_M23_NS/TARGET_NU_PFM_M2351_NS/TARGET_NU_PREBUILD_SECURE/LICENSE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
Permissive Binary License | ||
|
||
Version 1.0, September 2015 | ||
|
||
Redistribution. Redistribution and use in binary form, without | ||
modification, are permitted provided that the following conditions are | ||
met: | ||
|
||
1) Redistributions must reproduce the above copyright notice and the | ||
following disclaimer in the documentation and/or other materials | ||
provided with the distribution. | ||
|
||
2) Unless to the extent explicitly permitted by law, no reverse | ||
engineering, decompilation, or disassembly of this software is | ||
permitted. | ||
|
||
3) Redistribution as part of a software development kit must include the | ||
accompanying file named "DEPENDENCIES" and any dependencies listed in | ||
that file. | ||
|
||
4) Neither the name of the copyright holder nor the names of its | ||
contributors may be used to endorse or promote products derived from | ||
this software without specific prior written permission. | ||
|
||
Limited patent license. The copyright holders (and contributors) grant a | ||
worldwide, non-exclusive, no-charge, royalty-free patent license to | ||
make, have made, use, offer to sell, sell, import, and otherwise | ||
transfer this software, where such license applies only to those patent | ||
claims licensable by the copyright holders (and contributors) that are | ||
necessarily infringed by this software. This patent license shall not | ||
apply to any combinations that include this software. No hardware is | ||
licensed hereunder. | ||
|
||
If you institute patent litigation against any entity (including a | ||
cross-claim or counterclaim in a lawsuit) alleging that the software | ||
itself infringes your patent(s), then your rights granted under this | ||
license shall terminate as of the date such litigation is filed. | ||
|
||
DISCLAIMER. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND | ||
CONTRIBUTORS "AS IS." ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT | ||
NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT | ||
HOLDERS OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, | ||
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED | ||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR | ||
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF | ||
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS | ||
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
11 changes: 11 additions & 0 deletions
11
..._M2351/TARGET_M23_NS/TARGET_NU_PFM_M2351_NS/TARGET_NU_PREBUILD_SECURE/README.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# M2351 pre-built secure images for PSA | ||
|
||
This directory tree contains secure images released under Permissive Binary License. | ||
|
||
Built using Arm Compiler - version 6.10 or afterwards | ||
|
||
These images were compiled by the following command: | ||
|
||
```sh | ||
python ./tools/psa/release.py -m NU_PFM_M2351_S -t ARMC6 | ||
``` |
Binary file added
BIN
+1.93 KB
...ON/TARGET_M2351/TARGET_M23_NS/TARGET_NU_PFM_M2351_NS/TARGET_NU_PREBUILD_SECURE/cmse_lib.o
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
You should use MBED_WEAK instead.
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 to this file is temporary for my porting. Its final modification should come from TF-M repo (see #10959 (comment)).
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.
@VeijoPesonen I still use
__attribute__((weak))
because all toolchains support it. This is also what https://review.trustedfirmware.org/c/trusted-firmware-m/+/1460 is adopting.