2024-02-05 01:26:30 -05:00
|
|
|
if(BOOTLOADER_BUILD)
|
|
|
|
return()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
set(srcs)
|
|
|
|
|
2024-01-15 04:27:13 -05:00
|
|
|
if(CONFIG_PM_POWER_DOWN_CPU_IN_LIGHT_SLEEP)
|
2024-02-05 01:26:30 -05:00
|
|
|
list(APPEND srcs "cpu_retention/port/${target}/sleep_cpu.c")
|
|
|
|
if(CONFIG_SOC_PM_CPU_RETENTION_BY_SW)
|
|
|
|
list(APPEND srcs "cpu_retention/port/${target}/sleep_cpu_asm.S")
|
|
|
|
set_property(TARGET ${COMPONENT_LIB}
|
|
|
|
APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-u rv_core_critical_regs_save")
|
|
|
|
set_property(TARGET ${COMPONENT_LIB}
|
|
|
|
APPEND PROPERTY INTERFACE_LINK_LIBRARIES "-u rv_core_critical_regs_restore")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_prefix(srcs "${CMAKE_CURRENT_LIST_DIR}/" "${srcs}")
|
|
|
|
|
|
|
|
target_sources(${COMPONENT_LIB} PRIVATE "${srcs}")
|