Skip to content

Commit 62e4fd6

Browse files
committed
Disable bootloaders/encrypted example on older LLVM/Clang as it produces an invalid ELF
1 parent b22ac95 commit 62e4fd6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

bootloaders/CMakeLists.txt

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
if (TARGET pico_mbedtls)
2-
add_subdirectory_exclude_platforms(encrypted host rp2040 rp2350-riscv)
2+
# older clang seem to have a segment overlap issue that confuses picotool
3+
if (PICO_C_COMPILER_IS_CLANG AND CMAKE_C_COMPILER_VERSION VERSION_LESS "17.0.0")
4+
message("Skipping encrypted bootloader example on LLVM/Clang version < 17; please use GCC or newer LLVM/Clang")
5+
else()
6+
add_subdirectory_exclude_platforms(encrypted host rp2040 rp2350-riscv)
7+
endif()
38
else()
49
# Assume picotool has no signing support, if no pico_mbedtls available
510
message("Skipping encrypted bootloader example as pico_mbedtls unavailable")

0 commit comments

Comments
 (0)