forked from malishav/rust-psa-crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build.rs: Use generated config file with shim library headers.
This probably makes no practical difference with the current version of Mbed TLS and the current configuration but it might matter in the future so this change could make psa-crypto-sys more maintainable. At the top of "shim.h" we include the config file in the same way that Mbed TLS .c files do, and in "build.rs" we add the output directory to the include path and define MBEDTLS_CONFIG_FILE. To make this work without the "operations" feature the code that configures Mbed TLS is moved out of compile_mbed_crypto into a new function, configure_mbed_crypto, that is called from script_interface and script_operations. Signed-off-by: Edmund Grimley Evans <[email protected]>
- Loading branch information
1 parent
905e650
commit c66aa62
Showing
2 changed files
with
51 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters