Skip to content

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

Merged
merged 13 commits into from
Apr 11, 2025

Conversation

peterharperuk
Copy link
Contributor

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?

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.
@peterharperuk peterharperuk changed the title Update stuff Update mbedtls, lwip and cyw43-driver Apr 9, 2025
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
Update github workflow to add "--recursive" to
"git submodule update --init"
@peterharperuk
Copy link
Contributor Author

I have tested this with pico-examples (needs this change raspberrypi/pico-examples#631

@peterharperuk peterharperuk added this to the 2.1.2 milestone Apr 10, 2025
@kilograham
Copy link
Contributor

kilograham commented Apr 10, 2025

what happens if the user hasn't initialized mbedtls` sub-modules?

@peterharperuk
Copy link
Contributor Author

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.

@kilograham
Copy link
Contributor

Cc @will-v-pi

@will-v-pi
Copy link
Contributor

Picotool currently includes mbedtls with add_subdirectory, but I can move it to a style like the SDK where it creates the library itself instead, which won't rely on the submodules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants