Skip to content

Commit d34fc0b

Browse files
authored
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
1 parent d3c4bac commit d34fc0b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bootloaders/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
add_subdirectory_exclude_platforms(uart host rp2040)
2-
31
if (TARGET pico_mbedtls)
2+
# note uart bootloader doesn't use Mbed TLS, but it requires picotool with Mbed TLS, so the above check is a good proxy
3+
add_subdirectory_exclude_platforms(uart host rp2040)
44
add_subdirectory_exclude_platforms(encrypted host rp2040 rp2350-riscv)
55
else()
66
# Assume picotool has no signing support, if no pico_mbedtls available
7-
message("Skipping encrypted bootloader example as pico_mbedtls unavailable")
7+
message("Skipping uart bootloader and encrypted bootloader examples as Mbed TLS is not available")
88
endif ()

0 commit comments

Comments
 (0)