blob: 7c06f655daee99cb32047989a16d71db3f974c27 [file] [log] [blame]
Soby Mathewb4c6df42022-11-09 11:13:29 +00001#
2# SPDX-License-Identifier: BSD-3-Clause
3# SPDX-FileCopyrightText: Copyright TF-RMM Contributors.
4#
5
Tamas Banfac904c2024-09-11 16:02:30 +02006list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/tools/common")
7include(GitUtils)
8
Soby Mathewb4c6df42022-11-09 11:13:29 +00009add_library(rmm-lib INTERFACE)
10
11target_link_libraries(rmm-lib
12 INTERFACE rmm-lib-allocator
13 rmm-lib-arch
Soby Mathewb4c6df42022-11-09 11:13:29 +000014 rmm-lib-attestation
15 rmm-lib-common
Soby Mathewdcedbdc2024-02-26 14:07:25 +000016 rmm-lib-console
Soby Mathewb4c6df42022-11-09 11:13:29 +000017 rmm-lib-debug
18 rmm-lib-gic
Javier Almansa Sobrino2f717dd2024-02-12 20:49:46 +000019 rmm-lib-granule
Soby Mathewb4c6df42022-11-09 11:13:29 +000020 rmm-lib-measurement
Soby Mathewb4c6df42022-11-09 11:13:29 +000021 rmm-lib-rmm_el3_ifc
22 rmm-lib-smc
Javier Almansa Sobrino2eb98b02023-12-18 18:10:55 +000023 rmm-lib-s2tt
Javier Almansa Sobrino2f717dd2024-02-12 20:49:46 +000024 rmm-lib-slot_buf
AlexeiFedoroveaec0c42023-02-01 18:13:32 +000025 rmm-lib-xlat
26 t_cose)
Soby Mathewb4c6df42022-11-09 11:13:29 +000027
28add_subdirectory("allocator")
29add_subdirectory("arch")
30add_subdirectory("attestation")
Soby Mathewb4c6df42022-11-09 11:13:29 +000031add_subdirectory("common")
Soby Mathewdcedbdc2024-02-26 14:07:25 +000032add_subdirectory("console")
Soby Mathewb4c6df42022-11-09 11:13:29 +000033add_subdirectory("debug")
34add_subdirectory("gic")
Javier Almansa Sobrino2f717dd2024-02-12 20:49:46 +000035add_subdirectory("granule")
Soby Mathew73dad842022-12-16 12:51:01 +000036add_subdirectory("mbedtls")
Soby Mathewb4c6df42022-11-09 11:13:29 +000037add_subdirectory("measurement")
Soby Mathew372484a2023-04-20 14:40:52 +010038add_subdirectory("qcbor")
Soby Mathewb4c6df42022-11-09 11:13:29 +000039add_subdirectory("rmm_el3_ifc")
AlexeiFedoroveaec0c42023-02-01 18:13:32 +000040add_subdirectory("smc")
Javier Almansa Sobrino2eb98b02023-12-18 18:10:55 +000041add_subdirectory("s2tt")
Javier Almansa Sobrino2f717dd2024-02-12 20:49:46 +000042add_subdirectory("slot_buf")
Soby Mathewb4c6df42022-11-09 11:13:29 +000043add_subdirectory("t_cose")
Soby Mathewb4c6df42022-11-09 11:13:29 +000044add_subdirectory("xlat")
Arunachalam Ganapathy33e3bdc2024-04-10 20:55:40 +010045
Arunachalam Ganapathy56aeccc2024-10-24 15:03:55 +010046# Device Assignment feature in RMM v1.1 needs rmm-lib-spdm_requester
47if(RMM_V1_1)
Arunachalam Ganapathy33e3bdc2024-04-10 20:55:40 +010048 target_link_libraries(rmm-lib INTERFACE rmm-lib-spdm_requester)
49 add_subdirectory("spdm_requester")
50endif()