Skip to content
This repository was archived by the owner on Jun 5, 2019. It is now read-only.

TinyBooter explicitly uses crypto stubs #495

Merged
merged 1 commit into from
Sep 4, 2016

Conversation

cw2
Copy link
Contributor

@cw2 cw2 commented Aug 11, 2016

This is a fix for a few issues with the legacy crypto libraries that popped out in @josesimoes PR #475 (also related to #341).

Explicitly referencing crypto_stub.lib ensures that crypto\dotnetmf.proj does not automagically select either crypto.lib or crypto_stub.lib based solely on the presence of lib...\crypto.lib, which requires a manual installation; and also so it does not force GCC to use binaries built with ARM/Keil which results in linker warnings (VFP mismatch) or errors (when using newlib-nano).

(It also makes TinyBooter considerably smaller, just under 32 KB, for both MDK and GCC 5.3+ builds).

In case there is any solution based on these two DISCO implementations that require crypto functionality, I would recommend to fix the build steps in crypto\dotnetmf.proj (and provide proper binary for GCC; I guess none of which will happen due to the plan to completely abandon this).

@smaillet-ms smaillet-ms merged commit befc0af into NETMF:dev Sep 4, 2016
@cw2 cw2 deleted the booter-cryptostubs branch September 5, 2016 16:43
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants