Skip to content

Commit f1cca8d

Browse files
committed
Fix some header dependencies
Fixes #1929
1 parent 6587f5c commit f1cca8d

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

src/rp2_common/hardware_irq/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ pico_simple_hardware_target(irq)
44

55
target_sources(hardware_irq INTERFACE ${CMAKE_CURRENT_LIST_DIR}/irq_handler_chain.S)
66

7-
target_link_libraries(hardware_irq INTERFACE pico_sync) # not mirrored as only implementation requires it
7+
# irq.c includes pico/runtime_init.h
8+
target_link_libraries(hardware_irq INTERFACE pico_sync pico_runtime_init_headers) # not mirrored as only implementation requires it
89
if (PICO_RISCV)
910
pico_mirrored_target_link_libraries(hardware_irq INTERFACE hardware_hazard3)
1011
endif()

src/rp2_common/pico_bootrom/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,7 @@ target_sources(pico_bootrom INTERFACE
1010

1111
target_link_libraries(pico_bootrom_headers INTERFACE boot_picoboot_headers boot_bootrom_headers)
1212
pico_mirrored_target_link_libraries(pico_bootrom INTERFACE pico_base hardware_boot_lock pico_flash)
13+
14+
# bootrom.c includes boot/picobin.h
15+
# bootrom_lock.c includes pico/runtime_init.h
16+
target_link_libraries(pico_bootrom INTERFACE boot_picobin_headers pico_runtime_init_headers)

src/rp2_common/pico_runtime_init/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,6 @@ pico_mirrored_target_link_libraries(pico_runtime_init INTERFACE
1515
if (TARGET hardware_clocks)
1616
pico_mirrored_target_link_libraries(pico_runtime_init INTERFACE hardware_clocks)
1717
endif()
18+
19+
# pico/runtime_init.h includes pico/runtime.h
20+
target_link_libraries(pico_runtime_init_headers INTERFACE pico_runtime_headers)

0 commit comments

Comments
 (0)