-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Move mbedtls crypto modules #9340
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
Move mbedtls crypto modules #9340
Conversation
d5598f0
to
499a436
Compare
499a436
to
8cd4a40
Compare
@davidhorstmann-arm thanks for the very quick review. The CI was passing but I was still changing things locally when you pushed your review thus the force-pushed, sorry about that. The diff between 499a436 and f87e344 is not too big though. I hope it will be okay with you. I've added 3 commits to address some of your comments. One of your comment has been addressed as part of the rework I was doing. |
The OpenCI has run successfully, rebasing now. |
8cd4a40
to
0eb5e9e
Compare
Straightforward rebase, conflicts resolved automatically by Git. |
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.
Rebase and changes LGTM, thanks!
I expect this will need a few rebases before it gets merged, though. For example, it'll need rebasing after #9214 is merged. |
Yes that's likely. |
@davidhorstmann-arm @tom-daubney-arm a lot of conflicts but the rebase is still straightforward thus I let it like that for the time being. |
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 now, thanks! I will await the rebase.
Move all the modules that constitute the crypto library as well as the associated headers to tf-psa-crypto/core for the PSA core modules and to tf-psa-crypto/drivers/builtin/src for the others. The common.h file is copied instead of being just moved as eventually they will be different in mbedtls and TF-PSA-Crypto. Some parts of it can be shared though but this will be done later, probably when adding the CMake build system in tf-psa-crypto. Signed-off-by: Ronald Cron <[email protected]>
Adjust build systems such as we can built Mbed TLS in the default and full configuration. Signed-off-by: Ronald Cron <[email protected]>
Signed-off-by: Ronald Cron <[email protected]>
Signed-off-by: Ronald Cron <[email protected]>
Signed-off-by: Ronald Cron <[email protected]>
080ab4f
0eb5e9e
to
080ab4f
Compare
@tom-daubney-arm @davidhorstmann-arm I've just rebased against the head of development. I had to resolve only two conflicts manually:
Let's see what the CI says now. |
Signed-off-by: Ronald Cron <[email protected]>
@tom-daubney-arm OpenCI passed and I have then updated the framework submodule following the merge of #32. It is ready for re-review I believe. |
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.
Rebase (and fw update) LGTM, thanks!
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 (Icremental review on post rebase changes)
Thanks @minosgalanakis |
@minosgalanakis please have a look to the very partial backport as well, thanks. #9383 |
Is that a backport or just a single commit mirroing 1992c9122f ? |
It is the only thing to backport to me. All other changes in #9340 are migration of C modules and their consequences which are not relevant in 3.6. |
rm -f $(OBJS_CRYPTO) | ||
rm -f $(THIRDPARTY_CRYPTO_OBJECTS) | ||
else | ||
if exist *.o del /Q /F *.o |
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.
On Windows, crypto objects in different directories aren't cleaned anymore. What's the plan here? Do nothing and wait until we abandon plain makefile support? A pending fix? I would like to have at least a comment explaining what's up.
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.
I try to not break anything. I am going to fix that in the next PR.
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.
Ok, thanks. I noticed because of a conflict with #9293, so your fix would conflict with that too.
@@ -0,0 +1,435 @@ | |||
/** |
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 common.h file is copied instead of
being just moved as eventually they
will be different in mbedtls and
TF-PSA-Crypto. Some parts of it can be
shared though but this will be done later,
probably when adding the CMake build
system in tf-psa-crypto.
sigh Why? Why isn't library/common.h
just #include "core/common.h"
? Or just omit library/common.h
since we don't actually have anything to put there? Why are we spending effort on keeping two files identical? And how will that work when they're no longer in the same repository?
Description
Repo split preparation, move Mbed TLS crypto modules to tf-psa-crypto.
Companion mbedtls-framework PR: Mbed-TLS/mbedtls-framework#32
Fix #9263
PR checklist