zephyr/modules/mbedtls
Marcin Niestroj e4c11fd8aa 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 <m.niestroj@emb.dev>
2022-08-17 12:03:52 +02:00
..
configs modules: mbedtls: Add mbed TLS entropy source based on Zephyr entropy 2022-08-12 16:17:59 +02:00
include modules: mbedtls: move debug log hook implementation to modules/mbedtls/ 2022-08-17 12:03:52 +02:00
CMakeLists.txt modules: mbedtls: support extracting __FILE__ basename at buildtime 2022-08-17 12:03:52 +02:00
debug.c modules: mbedtls: support extracting __FILE__ basename at buildtime 2022-08-17 12:03:52 +02:00
Kconfig modules: mbedtls: support extracting __FILE__ basename at buildtime 2022-08-17 12:03:52 +02:00
Kconfig.tls-generic modules: mbedtls: Update Kconfig defaults for OSCORE/EDHOC 2022-08-12 16:17:59 +02:00
shell.c modules: migrate includes to <zephyr/...> 2022-05-06 19:57:47 +02:00
zephyr_init.c modules: mbedtls: set mbedTLS debug threshold during module initialization 2022-08-17 12:03:52 +02:00