-
Notifications
You must be signed in to change notification settings - Fork 96
Use generated source files from Mbed TLS #97
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
Don't depend on the C compiler's default output file name and path. Make knows what it wants to build and where it should go, and this may not always align with the C compiler default, so tell the C compilter to output to the Make target explicitly.
library/Makefile
Outdated
|
||
# For files generated by the parent project (Mbed TLS) when building Mbed | ||
# Crypto as a submodule, ensure that the parent project instance is used. | ||
ifdef USE_CRYPTO_SUBMODULE |
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'd recommend changing that to an ifneq ($(USE_CRYPTO_SUBMODULE), 0)
, same as here:
Mbed-TLS/mbedtls@fc5a7f5
since USE_CRYPTO_SUBMODULE=0
will also have it defined.
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.
One change requested.
f345d4a
to
c8cba4f
Compare
Rebased to use more robust option checking. |
When building as a submodule of a parent project, like Mbed TLS, use the parent projects generated source files (error.c, version.c, version_features.c)
When building as a submodule of a parent project, like Mbed TLS, use the parent projects generated source files (error.c, version.c, version_features.c)
c8cba4f
to
18d4789
Compare
Rebased to use |
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
There are a handful of generated source files that both Mbed Crypto and Mbed TLS can create. When created from Mbed Crypto, they contain only symbols, errors, options and other things visible within Mbed Crypto itself. When Mbed TLS generates these source files, it uses symbols, errors, options and other things visible from both Mbed TLS and Mbed Crypto. When building libmbedcrypto.a or libmbedcrypto.so as a submodule from Mbed TLS, use the Mbed-TLS-generated files as these are the most comprehensive and useful to the rest of Mbed TLS.