From d34fc0b51d2a925e5f486201afd5af26a57e308c Mon Sep 17 00:00:00 2001 From: will-v-pi <108662275+will-v-pi@users.noreply.github.com> Date: Fri, 29 Aug 2025 16:22:50 +0100 Subject: [PATCH] Skip uart bootloader when no mbedtls This requires the `picotool seal` command which is only available when compiled with mbedtls Also improve message, in line with message in pico_w/wifi/CMakeLists.txt --- bootloaders/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bootloaders/CMakeLists.txt b/bootloaders/CMakeLists.txt index b8148217c..2a02f7266 100644 --- a/bootloaders/CMakeLists.txt +++ b/bootloaders/CMakeLists.txt @@ -1,8 +1,8 @@ -add_subdirectory_exclude_platforms(uart host rp2040) - if (TARGET pico_mbedtls) + # note uart bootloader doesn't use Mbed TLS, but it requires picotool with Mbed TLS, so the above check is a good proxy + add_subdirectory_exclude_platforms(uart host rp2040) add_subdirectory_exclude_platforms(encrypted host rp2040 rp2350-riscv) else() # Assume picotool has no signing support, if no pico_mbedtls available - message("Skipping encrypted bootloader example as pico_mbedtls unavailable") + message("Skipping uart bootloader and encrypted bootloader examples as Mbed TLS is not available") endif ()