Skip to content

Use Mbedtls files directly #226

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 6 commits into from
Apr 24, 2025
Merged

Use Mbedtls files directly #226

merged 6 commits into from
Apr 24, 2025

Conversation

will-v-pi
Copy link
Contributor

Update to a more pico-sdk style inclusion of mbedtls, by including the files directly

Tested against develop (mbedtls 2.x), and raspberrypi/pico-sdk#2405 (mbedtls 3.x)

@@ -1,6 +1,6 @@
cc_library(
name = "mbedtls_config",
hdrs = ["include/mbedtls_config.h"],
hdrs = ["include/mbedtls_config.h", "include/picotool_mbedtls_config.h"],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does it make sense to list both of these files, when mbedtls_config.h is merely a wrapper around picotool_mbedtls_config.h ? Or is this a required backwards-compatibility-thing in order not to break any existing Bazel projects? (I'm afraid I don't know much about Bazel!)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If both are going to be referenced, both need to be added. This is because Bazel sandboxes things, so if a file is not listed it won't be available during compilation.

With that said, this has made me realize that the mbedtls configuration handling is wrong in Bazel, so don't worry too much about it. (you're welcome to file an issue and assign it to me)

@lurch
Copy link
Contributor

lurch commented Apr 22, 2025

CI is failing with ERROR: Unknown command: seal 🦭
EDIT: CI now passing 🥳

Priority to CMake var, then env var, then default to SDK submodule
@will-v-pi will-v-pi merged commit f010190 into develop Apr 24, 2025
36 checks passed
@will-v-pi will-v-pi deleted the mbedtls-direct branch April 24, 2025 10:24
will-v-pi added a commit that referenced this pull request Apr 24, 2025
Not required now #226 is merged
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.

4 participants