-
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
Removing dependency of TDBStore in SystemStorage file and moving some file location - TFM support. #9361
Conversation
@yossi2le, thank you for your changes. |
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
required for #9221
27b378c
to
58c02be
Compare
stating CI |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
@@ -24,7 +24,10 @@ | |||
#include "mbed_error.h" | |||
#include "mbed_wait_api.h" | |||
#include "MbedCRC.h" | |||
//Bypass the check of NVStore co existance if compiled for TARGET_TFM | |||
#if !(TARGET_BYPASS_NVSTORE_CHECK) |
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.
Why is this target macro not a config ? or rather is this true for any TFM, should there be more generic name for exclusion like this?
the commit 2acb1c5754abb9ee1817f61d1584973e78d43ce5 does not say much what is going on here.
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.
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.
Also here BYPASS_NVSTORE_CHECK ?
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.
yes I know :( I am working on it. 1 minute and it will be fix
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.
Done
@0xc0170 This #define was added to allow the build the secure execution environment without taking in the NVStore... |
@dannybenor @yossi2le i think @0xc0170 is asking why the new macro starts with @0xc0170, initially we wanted to piggyback To summarize, I second @0xc0170 and suggest to remove |
32561eb
to
adfe076
Compare
@ARMmbed/mbed-os-maintainers Why is the tools-py2.7 test fails? |
We are investigating. One of test modules was recently updated and could lead to failures. Will be fixed soon |
#9371 will fix travis |
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
…-existence checkup if compile for target TFM
…t_access_devicekey sub folder For TFM support
…t as BYPASS_NVSTORE_CHECK
adfe076
to
971e29b
Compare
CI started |
Test run: FAILEDSummary: 3 of 7 test jobs failed Failed test jobs:
|
CI job was aborted, 5.11.2 RC candidate is in the CI. We will restart it as soon as 5.11.2 RC is ready |
CI started |
Test run: SUCCESSSummary: 11 of 11 test jobs passed |
Description
The TFM build encounter issues because of coupling between TDBStore and SystemStorage file.
The coupling happens because of a function which tests if TDBStore and NVStore co-exist at the same time and if so create a runtime error. However, NVStore does not exist and does not even compile for TFM, therefore this checkup is redundant for TFM support.
This PR will remove the checkup only for TFM builds by adding a macro TARGET_TFM_BYPASS_NVSTORE_CHECK.
Also to ease the build process of TFM the KVStore.h has moved to include folder so it can be included in the TFM build as a separate file. Also, both DirectAccessDevicekey.h and DirectAccessDevicekey.cpp have moved to a folder of their own from the same reasons.
Pull request type
Reviewers