aboutsummaryrefslogtreecommitdiff
path: root/ports/esp32/Makefile
diff options
context:
space:
mode:
authorThorsten von Eicken2020-07-02 12:34:36 -0700
committerDamien George2020-07-21 00:31:05 +1000
commit5264478007c78b7737972404bda18ab39d792e17 (patch)
tree3f7f306fa13429b4fa57a44d251dc56a5e3c6551 /ports/esp32/Makefile
parent3e758ef235793502061edd122cd5cd91172faf51 (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/esp32/Makefile')
-rw-r--r--ports/esp32/Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/ports/esp32/Makefile b/ports/esp32/Makefile
index 0f6a1969a..2cbe9f6be 100644
--- a/ports/esp32/Makefile
+++ b/ports/esp32/Makefile
@@ -362,6 +362,7 @@ EXTMOD_SRC_C += $(addprefix extmod/,\
)
LIB_SRC_C = $(addprefix lib/,\
+ mbedtls_errors/mp_mbedtls_errors.c \
mp-readline/readline.c \
netutils/netutils.c \
timeutils/timeutils.c \
@@ -506,11 +507,12 @@ ESPIDF_LWIP_O = $(patsubst %.c,%.o,\
$(wildcard $(ESPCOMP)/lwip/port/esp32/*/*.c) \
)
-ESPIDF_MBEDTLS_O = $(patsubst %.c,%.o,\
+# Mbedtls source files, exclude error.c in favor of lib/mbedtls_errors/mp_mbedtls_errors.c
+ESPIDF_MBEDTLS_O = $(patsubst %.c,%.o, $(filter-out %/error.c,\
$(wildcard $(ESPCOMP)/mbedtls/mbedtls/library/*.c) \
$(wildcard $(ESPCOMP)/mbedtls/port/*.c) \
$(wildcard $(ESPCOMP)/mbedtls/port/esp32/*.c) \
- )
+ ))
ESPIDF_MDNS_O = $(patsubst %.c,%.o,$(wildcard $(ESPCOMP)/mdns/*.c))