File tree Expand file tree Collapse file tree 4 files changed +1418
-3
lines changed Expand file tree Collapse file tree 4 files changed +1418
-3
lines changed Original file line number Diff line number Diff line change @@ -127,9 +127,9 @@ if (NOT PICO_BARE_METAL)
127
127
pico_add_subdirectory(rp2_common/pico_async_context)
128
128
pico_add_subdirectory(rp2_common/pico_btstack)
129
129
pico_add_subdirectory(rp2_common/pico_cyw43_driver)
130
+ pico_add_subdirectory(rp2_common/pico_mbedtls)
130
131
pico_add_subdirectory(rp2_common/pico_lwip)
131
132
pico_add_subdirectory(rp2_common/pico_cyw43_arch)
132
- pico_add_subdirectory(rp2_common/pico_mbedtls)
133
133
134
134
pico_add_subdirectory(rp2_common/pico_time_adapter)
135
135
Original file line number Diff line number Diff line change @@ -235,14 +235,29 @@ if (EXISTS ${PICO_LWIP_PATH}/${LWIP_TEST_PATH})
235
235
${PICO_LWIP_PATH} /src/apps/tftp/tftp.c
236
236
)
237
237
238
+
238
239
# Mbed TLS files
239
240
pico_add_library(pico_lwip_mbedtls NOFLAG)
240
241
target_sources (pico_lwip_mbedtls INTERFACE
241
- ${PICO_LWIP_PATH} /src/apps/altcp_tls/altcp_tls_mbedtls.c
242
242
${PICO_LWIP_PATH} /src/apps/altcp_tls/altcp_tls_mbedtls_mem.c
243
243
${PICO_LWIP_PATH} /src/apps/snmp/snmpv3_mbedtls.c
244
244
)
245
245
246
+ # altcp_tls_mbedtls.c is not compatible with mbedtls 3.x so use a patched version until this is resolved
247
+ # See https://savannah.nongnu.org/patch/index.php?10448
248
+ if (MBEDTLS_VERSION_MAJOR AND MBEDTLS_VERSION_MAJOR GREATER_EQUAL 3)
249
+ target_sources (pico_lwip_mbedtls INTERFACE
250
+ ${CMAKE_CURRENT_LIST_DIR} /altcp_tls_mbedtls.c
251
+ )
252
+ target_include_directories (pico_lwip_mbedtls INTERFACE
253
+ ${PICO_LWIP_PATH} /src/apps/altcp_tls
254
+ )
255
+ else ()
256
+ target_sources (pico_lwip_mbedtls INTERFACE
257
+ ${PICO_LWIP_PATH} /src/apps/altcp_tls/altcp_tls_mbedtls.c
258
+ )
259
+ endif ()
260
+
246
261
# MQTT client files
247
262
pico_add_library(pico_lwip_mqtt NOFLAG)
248
263
target_sources (pico_lwip_mqtt INTERFACE
You can’t perform that action at this time.
0 commit comments