Soby Mathew | b4c6df4 | 2022-11-09 11:13:29 +0000 | [diff] [blame^] | 1 | # |
| 2 | # SPDX-License-Identifier: BSD-3-Clause |
| 3 | # SPDX-FileCopyrightText: Copyright TF-RMM Contributors. |
| 4 | # |
| 5 | |
| 6 | add_library(rmm-lib-arch) |
| 7 | |
| 8 | target_link_libraries(rmm-lib-arch |
| 9 | PRIVATE rmm-lib-common) |
| 10 | |
| 11 | target_include_directories(rmm-lib-arch |
| 12 | PUBLIC "include" |
| 13 | "include/${RMM_ARCH}") |
| 14 | |
| 15 | target_sources(rmm-lib-arch |
| 16 | PRIVATE "src/arch_features.c" |
| 17 | "src/fpu_helpers.c") |
| 18 | |
| 19 | if(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") |
| 23 | else() |
| 24 | target_sources(rmm-lib-arch |
| 25 | PRIVATE "src/fake_host/cache_wrappers.c" |
| 26 | "src/fake_host/fpu_helpers_host.c") |
| 27 | endif() |