diff options
| author | Thorsten von Eicken | 2020-07-02 12:34:36 -0700 |
|---|---|---|
| committer | Damien George | 2020-07-21 00:31:05 +1000 |
| commit | 5264478007c78b7737972404bda18ab39d792e17 (patch) | |
| tree | 3f7f306fa13429b4fa57a44d251dc56a5e3c6551 /ports/stm32/Makefile | |
| parent | 3e758ef235793502061edd122cd5cd91172faf51 (diff) | |
extmod/modussl_mbedtls: Integrate shorter error strings.
The stm32 and esp32 ports now use shorter error strings for mbedtls errors.
Also, MBEDTLS_ERROR_C is enabled on stm32 by default to get these strings.
Diffstat (limited to 'ports/stm32/Makefile')
| -rw-r--r-- | ports/stm32/Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ports/stm32/Makefile b/ports/stm32/Makefile index 2614d4aa0..fe8f0b871 100644 --- a/ports/stm32/Makefile +++ b/ports/stm32/Makefile @@ -472,6 +472,9 @@ endif ifeq ($(MICROPY_SSL_MBEDTLS),1) CFLAGS_MOD += -DMBEDTLS_CONFIG_FILE='"mbedtls/mbedtls_config.h"' SRC_MOD += mbedtls/mbedtls_port.c +# replace mbedtls' error.c by ours +SRC_MOD := $(filter-out %/mbedtls/library/error.c, $(SRC_MOD)) +LIB_SRC_C += lib/mbedtls_errors/mp_mbedtls_errors.c endif ifeq ($(MICROPY_PY_BLUETOOTH),1) |
