Skip to content

Commit 4bbf701

Browse files
committed
bootrom build includes pico_bootrom but not bootrom.h which is the only thing which requires pico_flash... slightly hacky fix to not include pico_flash if not available
1 parent a2a4c20 commit 4bbf701

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/rp2_common/pico_bootrom/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@ target_sources(pico_bootrom INTERFACE
99
)
1010

1111
target_link_libraries(pico_bootrom_headers INTERFACE boot_picoboot_headers)
12-
pico_mirrored_target_link_libraries(pico_bootrom INTERFACE pico_base hardware_boot_lock pico_flash)
12+
pico_mirrored_target_link_libraries(pico_bootrom INTERFACE pico_base hardware_boot_lock)
13+
if (TARGET pico_flash)
14+
pico_mirrored_target_link_libraries(pico_bootrom INTERFACE pico_flash)
15+
endif()

0 commit comments

Comments
 (0)