Skip to content

Commit

Permalink
bootrom build includes pico_bootrom but not bootrom.h which is the on…
Browse files Browse the repository at this point in the history
…ly thing which requires pico_flash... slightly hacky fix to not include pico_flash if not available
  • Loading branch information
kilograham committed Aug 28, 2024
1 parent a2a4c20 commit 4bbf701
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/rp2_common/pico_bootrom/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,7 @@ target_sources(pico_bootrom INTERFACE
)

target_link_libraries(pico_bootrom_headers INTERFACE boot_picoboot_headers)
pico_mirrored_target_link_libraries(pico_bootrom INTERFACE pico_base hardware_boot_lock pico_flash)
pico_mirrored_target_link_libraries(pico_bootrom INTERFACE pico_base hardware_boot_lock)
if (TARGET pico_flash)
pico_mirrored_target_link_libraries(pico_bootrom INTERFACE pico_flash)
endif()

0 comments on commit 4bbf701

Please sign in to comment.