forked from zephyrproject-rtos/zephyr
-
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.
modules: mbedtls: support extracting __FILE__ basename at buildtime
So far there was a runtime basename extraction of filenames passed to mbedTLS debug hook. This has both runtime penalty as well as code size penalty. Introduce a buildtime support of extracting basename of source filenames logged using logging subsystem, so that there is no need to do it at runtime. Provide Kconfig options for both buildtime and runtime basename extraction, as in some cases the buildtime basename extraction might not work, depending on toolchain used for building Zephyr. Default to buildtime when using Zephyr SDK, as that is proven to work. Use runtime basename extraction in other cases (other toolchains used). This saves approximately 204 bytes of code footprint for sample application with native TLS sockets built for nRF52840. Signed-off-by: Marcin Niestroj <[email protected]>
- Loading branch information
1 parent
6653fd9
commit e4c11fd
Showing
3 changed files
with
44 additions
and
5 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
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