Skip to content

Commit

Permalink
Fix some header dependencies (#2031)
Browse files Browse the repository at this point in the history
Fixes #1929
  • Loading branch information
peterharperuk authored Nov 9, 2024
1 parent 6587f5c commit 809a423
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/rp2_common/hardware_irq/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ pico_simple_hardware_target(irq)

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

target_link_libraries(hardware_irq INTERFACE pico_sync) # not mirrored as only implementation requires it
# irq.c includes pico/runtime_init.h
target_link_libraries(hardware_irq INTERFACE pico_sync pico_runtime_init_headers) # not mirrored as only implementation requires it
if (PICO_RISCV)
pico_mirrored_target_link_libraries(hardware_irq INTERFACE hardware_hazard3)
endif()
4 changes: 4 additions & 0 deletions src/rp2_common/pico_bootrom/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,7 @@ target_sources(pico_bootrom INTERFACE

target_link_libraries(pico_bootrom_headers INTERFACE boot_picoboot_headers boot_bootrom_headers)
pico_mirrored_target_link_libraries(pico_bootrom INTERFACE pico_base hardware_boot_lock pico_flash)

# bootrom.c includes boot/picobin.h
# bootrom_lock.c includes pico/runtime_init.h
target_link_libraries(pico_bootrom INTERFACE boot_picobin_headers pico_runtime_init_headers)
3 changes: 3 additions & 0 deletions src/rp2_common/pico_runtime_init/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,6 @@ pico_mirrored_target_link_libraries(pico_runtime_init INTERFACE
if (TARGET hardware_clocks)
pico_mirrored_target_link_libraries(pico_runtime_init INTERFACE hardware_clocks)
endif()

# pico/runtime_init.h includes pico/runtime.h
target_link_libraries(pico_runtime_init_headers INTERFACE pico_runtime_headers)

0 comments on commit 809a423

Please sign in to comment.