Skip to content

Commit 18b6b37

Browse files
authored
Allow enc_bootloader on older clang (#655)
1 parent f5112a6 commit 18b6b37

File tree

2 files changed

+1
-8
lines changed

2 files changed

+1
-8
lines changed

bootloaders/CMakeLists.txt

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,7 @@
11
add_subdirectory_exclude_platforms(uart host rp2040)
22

33
if (TARGET pico_mbedtls)
4-
# older clang seem to have a segment overlap issue that confuses picotool
5-
if (PICO_C_COMPILER_IS_CLANG AND CMAKE_C_COMPILER_VERSION VERSION_LESS "17.0.0")
6-
message("Skipping encrypted bootloader example on LLVM/Clang version < 17; please use GCC or newer LLVM/Clang")
7-
else()
8-
add_subdirectory_exclude_platforms(encrypted host rp2040 rp2350-riscv)
9-
endif()
4+
add_subdirectory_exclude_platforms(encrypted host rp2040 rp2350-riscv)
105
else()
116
# Assume picotool has no signing support, if no pico_mbedtls available
127
message("Skipping encrypted bootloader example as pico_mbedtls unavailable")

bootloaders/encrypted/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,6 @@ target_link_libraries(enc_bootloader pico_stdlib pico_rand pico_mbedtls)
1010
# use stack guards, as AES variables are written near the stack
1111
target_compile_definitions(enc_bootloader PRIVATE PICO_USE_STACK_GUARDS=1)
1212

13-
target_link_options(enc_bootloader PUBLIC -Wl,--print-memory-usage)
14-
1513
target_include_directories(enc_bootloader PRIVATE ${CMAKE_CURRENT_LIST_DIR})
1614

1715
# set as no_flash binary

0 commit comments

Comments
 (0)