1# SPDX-License-Identifier: BSD-3-Clause 2 3add_subdirectory(lib) 4 5 6if(CONFIG_CAVS_LPS) 7add_library(lps_vector STATIC "") 8target_link_libraries(lps_vector sof_options) 9target_compile_options(lps_vector PRIVATE -mtext-section-literals) 10 11add_local_sources(lps_vector lps_pic_restore_vector.S) 12 13target_link_libraries(sof_static_libraries INTERFACE lps_vector) 14 15add_local_sources(sof lps_wait.c) 16endif() 17 18if(CONFIG_NO_SECONDARY_CORE_ROM) 19 add_library(altreset STATIC "") 20 target_link_libraries(altreset sof_options) 21 target_compile_options(altreset PRIVATE -mtext-section-literals) 22 23 add_local_sources(altreset alternate_reset_vector.S) 24 25 target_link_libraries(sof_static_libraries INTERFACE altreset) 26endif() 27 28add_local_sources(sof platform.c) 29 30target_include_directories(sof_options INTERFACE ${PROJECT_SOURCE_DIR}/src/platform/intel/cavs/include) 31 32add_library(cavs_ext_manifest STATIC "") 33add_local_sources(cavs_ext_manifest ext_manifest.c) 34sof_append_relative_path_definitions(cavs_ext_manifest) 35 36target_link_libraries(cavs_ext_manifest sof_options) 37target_link_libraries(sof_static_libraries INTERFACE cavs_ext_manifest) 38