-
Notifications
You must be signed in to change notification settings - Fork 3k
DO NOT MERGE - Update Mbed TLS to version 2.7.0 #6040
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
Conversation
/morph build |
Build : FAILUREBuild number : 1092 |
@k-stachowiak Can you review the build failures ? For multiple boards, these 2 example fails:
The error: ETH redefined ? |
@0xc0170 I'm on it |
After running one of the tests locally, namely:
I can confirm the linker errors. Also I tried running the same test against ARM_GCC, and it worked - I verified that the particular tests failing to build for ARM were successfully built with ARM_GCC.
I speculate that for some reason, in some cases the inline functions may not be emitted into the object files (e.g. when they are not included, obviously), but I can't see how that would work with one toolchain and not the other. I will investigate this clue. I remember @Patater and @andresag01 discussing the introduction of this header-only deprecation layer, so maybe they can comment on it having impact on the ARM linker? |
@k-stachowiak: I do not know what is the situation with GCC, but in principle this should NOT work because Mbed TLS 2.7.0 renames the MD functions that are replaced by alternative implementations. Therefore, the symbols such as |
Also, another note. When compiling with ARMCC I get the error:
It seems that some UBLOX diver is using the old MD functions as well. You need to get this patched up as well, I suggest you contact someone from UBLOX about this. |
@0xc0170 From what I gathered the ETH redefinitions are just warnings. They seem harmless (i grepped the entire code base and all the instances of this define are identical) and while should be fixed it is probably beyond the scope of this PR. The two issues that cause compiler or linker errors are:
I am investigating possible ways of resolving those. |
ublox provided a new update to one of the PR that was updating networking.
Does this mean this update contains breaking changes? If you can point to them ? cc @ARMmbed/team-ublox |
@k-stachowiak I agree with @andresag01 that you would need #5973 before this PR. |
Blocking PR has been merged in. Feel free to rebase when ready to continue! |
/morph build |
@k-stachowiak As Cruz already mentioned please remove your merge commits and do a proper rebase against master. This PR will not be accepted as it currently stands. Thanks. Also please do not attempt to kick off CI builds, that is the maintainers job. Also please be aware of the 7 rules of good commit titles and messages. You can find guidance here https://os.mbed.com/docs/v5.7/reference/guidelines.html |
@adbridge Thank you for your remarks. I will follow the rules. |
Build : FAILUREBuild number : 1151 |
I reviewed test results, the tls examples contain errors, please review |
#include MBEDTLS_USER_CONFIG_FILE | ||
#endif | ||
|
||
#else |
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.
Note that this is a major change to the config.h. Unless this PR includes changes on how to configure Mbed TLS in Mbed OS in another way this is going to break pretty much every application that uses Mbed TLS in Mbed OS. Could you please explain why these changes are 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.
This change is a result of the automatic import process. It seems like some kind of an auto merge error. I will make sure there are no unnecessary differences between this tree and the upstream one.
I just realised that this might also not work even after merging #5973. I do not think that all the new functions used by Mbed TLS are defined in the target's headers. For example: int mbedtls_sha256_process( mbedtls_sha256_context *ctx, const unsigned char data[ST_SHA256_BLOCK_SIZE] ) |
52581c8
to
a15d909
Compare
Branch cleaned up, but still needs work:
|
ARM Internal Ref: IOTSSL-2101 |
This should be closed in favor of #6210. |
@k-stachowiak @Patater Please close this if you are sure it is being superseded by #6210 |
Closing in favor of #6210. |
Description
This pull request updates the Mbed TLS feature to the version 2.7.0
Status
READY
Migrations
See Mbed TLS 2.7.0 release notes for migration necessity/opportunity.
The example applications have been confirmed to build with ARM and ARM_GCC compiler and run on the K64F target.
Related PRs
None
Todos
None
Deploy notes
None