Fix some header dependencies (#2031)

Fixes #1929
This commit is contained in:
Peter Harper 2024-11-09 00:09:13 +00:00 committed by GitHub
parent 6587f5cc9a
commit 809a423fb0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 9 additions and 1 deletions

View file

@ -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()

View file

@ -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)

View file

@ -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)