From 4bbf701b4b11c955d2609408aa4b1feebe36381f Mon Sep 17 00:00:00 2001 From: graham sanderson Date: Wed, 28 Aug 2024 12:40:14 -0500 Subject: [PATCH] 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 --- src/rp2_common/pico_bootrom/CMakeLists.txt | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/rp2_common/pico_bootrom/CMakeLists.txt b/src/rp2_common/pico_bootrom/CMakeLists.txt index 17c610c8b..9fbc90cbd 100644 --- a/src/rp2_common/pico_bootrom/CMakeLists.txt +++ b/src/rp2_common/pico_bootrom/CMakeLists.txt @@ -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()