Skip to content

Commit 0534509

Browse files
committed
Allow enc_bootloader on older clang
1 parent 98fc1f8 commit 0534509

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,10 +1,5 @@
11
if (TARGET pico_mbedtls)
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()
2+
add_subdirectory_exclude_platforms(encrypted host rp2040 rp2350-riscv)
83
else()
94
# Assume picotool has no signing support, if no pico_mbedtls available
105
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)