-
Notifications
You must be signed in to change notification settings - Fork 3k
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
PSA: TFM import from master branch #10286
Conversation
@orenc17, thank you for your changes. |
@@ -11,6 +11,8 @@ | |||
#include <stdint.h> | |||
#include <stddef.h> | |||
#include <limits.h> | |||
#include "../ext/mcuboot/bootutil/include/bootutil/image.h" | |||
#include "../ext/mcuboot/include/flash_map/flash_map.h" |
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.
This include path doesn't seem right.
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.
for now we are not building secure bootloader in tree as it is provided as binary.
Can we tweak importer to skip bl2 folder.
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.
@alzix could you clarify what you mean? Should this include path stay as-is?
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 were right about include path is being wrong. The only reason why it does not fail compilation is that this header file is never included. This raises a question why is it here? I suggest tweaking importer configuration file to exclude this header file.
from tools.psa.mbed_spm_tfm_common import * | ||
from tools.psa.generate_mbed_spm_partition_code import * | ||
from tools.psa.generate_partition_code import * | ||
from .test_data import * |
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.
In general, we should stay away from import *
to avoid bringing everything into the namespace. I realize in this case you're trying to do just that. For consistency with (most) of the tools, could you do one of the following:
- Import the module and call the functions on the module (this is usually my preferred choice).
- If you're worries about line length, you can always do something like
import tools.psa.generate_partition_code as gpc
. This allows you to then call those functions withgpc.my_func()
.
- If you're worries about line length, you can always do something like
- Import each of the functions by name
@@ -11,6 +11,8 @@ | |||
#include <stdint.h> | |||
#include <stddef.h> | |||
#include <limits.h> | |||
#include "../ext/mcuboot/bootutil/include/bootutil/image.h" | |||
#include "../ext/mcuboot/include/flash_map/flash_map.h" |
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.
for now we are not building secure bootloader in tree as it is provided as binary.
Can we tweak importer to skip bl2 folder.
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.
Thanks for addressing my comments!
My previous comment about the import *
statements can be addressed in a later pull request. I didn't realize that many of those statements were already present in a release.
CI started while reviews are finished. |
Wrong PR. |
Also started PSA/job/PSA-SPM-tests Jenkins test. |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
@orenc17 Can you check the results of the |
Waiting for the confirmation. |
- Link to bug tracking: https://developer.trustedfirmware.org/T239 (cherry picked from commit 5f2e4b3)
- Link to bug tracking: https://developer.trustedfirmware.org/T230 (cherry picked from commit 0c23e86)
- Link to bug tracking: https://developer.trustedfirmware.org/T240 (cherry picked from commit fc78640)
) - Link to bug tracking: https://developer.trustedfirmware.org/T241 (cherry picked from commit da01e34)
#236) - Link to bug tracking: https://developer.trustedfirmware.org/T236 (cherry picked from commit 008bf1b)
- Add Secure/non-secure code and secure heap to memory check - Link to bug tracking: https://developer.trustedfirmware.org/T224
CI restarted |
Test run: FAILEDSummary: 6 of 7 test jobs failed Failed test jobs:
|
Restarted jenkins-ci |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
Import TF-M sources from master branch at hash 0101fd3766913ff9786b95568cbc69cf58c1946b
Refactor PSA code generators scripts
Pull request type
Reviewers
@ARMmbed/mbed-os-psa
Release Notes