-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Update mbedtls, lwip and cyw43-driver #2405
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Adds some docs for pico_mbedtls Documents the config for overriding the code in pico-sdk/libs
There are some build changes needed for the latest version of mbedtls.
altcp_tls_mbedtls.c is not compatible with mbedtls 3.x so use a patched version until this is resolved. Make sure MBEDTLS_VERSION_MAJOR is visible to LwIP.
8bc3d28
to
ba99b4d
Compare
It seems everything needs "no-cast-qual" due to mbedtls_get_unaligned_uint64. Move the source file lists into functions so they can be used in suppress_mbedtls_warnings to add -Wno-cast-qual to just mbedtls source files.
Use it in kitchen_sink
Change for bazel build
Update github workflow to add "--recursive" to "git submodule update --init"
adddf8d
to
b493ef0
Compare
I have tested this with pico-examples (needs this change raspberrypi/pico-examples#631 |
what happens if the user hasn't initialized mbedtls` sub-modules? |
Good question. The cmake workflow fails on github. But I think this is just caused by picotool trying to use lib/mbedtls which has a cmake file in lib/mbedtls/framework. So pico-examples builds ok if the submodule is not there. |
Cc @will-v-pi |
Picotool currently includes mbedtls with |
Update lwip, mbedtls and cyw43-driver
Includes fixes to the build for mbedtls and some docs changes
It seemed less confusing to push all these changes in one PR?