1# 2# SPDX-License-Identifier: BSD-3-Clause 3# SPDX-FileCopyrightText: Copyright TF-RMM Contributors. 4# 5 6add_library(rmm-lib-arch) 7 8target_link_libraries(rmm-lib-arch 9 PRIVATE rmm-lib-common) 10 11target_include_directories(rmm-lib-arch 12 PUBLIC "include" 13 "include/${RMM_ARCH}") 14 15target_sources(rmm-lib-arch 16 PRIVATE "src/arch_features.c" 17 "src/fpu_helpers.c") 18 19if(NOT RMM_ARCH STREQUAL fake_host) 20 target_sources(rmm-lib-arch 21 PRIVATE "src/aarch64/cache_helpers.S" 22 "src/aarch64/fpu_helpers.S") 23else() 24 target_sources(rmm-lib-arch 25 PRIVATE "src/fake_host/cache_wrappers.c" 26 "src/fake_host/fpu_helpers_host.c") 27endif() 28