Skip to content

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)

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