Skip to content

Commit

Permalink
Fix #513 - ninja compilation of enc_bootloader
Browse files Browse the repository at this point in the history
Ninja was treating ${target}.ld and ${CMAKE_CURRENT_BINARY_DIR}/${target}.ld as the same file, despite the first just being a target name not a file - fixed by changing . to _
  • Loading branch information
will-v-pi committed Aug 16, 2024
1 parent 7fe60d6 commit 4b39afb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bootloaders/encrypted/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,8 @@ function(add_linker_script target origin length)
-Doutput_file:FILEPATH=${CMAKE_CURRENT_BINARY_DIR}/${target}.ld
-P "${CMAKE_CURRENT_BINARY_DIR}/make_linker_script.cmake"
DEPENDS ${PICO_LINKER_SCRIPT_PATH}/memmap_no_flash.ld)
add_custom_target(${target}.ld DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${target}.ld)
add_dependencies(${target} ${target}.ld)
add_custom_target(${target}_ld DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${target}.ld)
add_dependencies(${target} ${target}_ld)
pico_set_linker_script(${target} ${CMAKE_CURRENT_BINARY_DIR}/${target}.ld)
endfunction()

Expand Down

0 comments on commit 4b39afb

Please sign in to comment.