blob: 114496c206c3016d921b737c121fe74464418f69 [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
6add_library(rmm-lib INTERFACE)
7
8target_link_libraries(rmm-lib
Mate Toth-Palc83c3052025-02-06 10:32:10 +01009 INTERFACE rmm-lib-arch
Soby Mathewb4c6df42022-11-09 11:13:29 +000010 rmm-lib-common
Soby Mathewdcedbdc2024-02-26 14:07:25 +000011 rmm-lib-console
Soby Mathewb4c6df42022-11-09 11:13:29 +000012 rmm-lib-debug
13 rmm-lib-gic
Javier Almansa Sobrino2f717dd2024-02-12 20:49:46 +000014 rmm-lib-granule
Soby Mathewb4c6df42022-11-09 11:13:29 +000015 rmm-lib-rmm_el3_ifc
16 rmm-lib-smc
Javier Almansa Sobrino2eb98b02023-12-18 18:10:55 +000017 rmm-lib-s2tt
Javier Almansa Sobrino2f717dd2024-02-12 20:49:46 +000018 rmm-lib-slot_buf
Jacob Man Chun Yiuf1b6d042025-02-17 16:47:06 +000019 rmm-lib-stack_protector
Mate Toth-Pale9716942024-11-21 13:42:20 +010020 rmm-lib-xlat)
Soby Mathewb4c6df42022-11-09 11:13:29 +000021
22add_subdirectory("allocator")
23add_subdirectory("arch")
Soby Mathewb4c6df42022-11-09 11:13:29 +000024add_subdirectory("common")
Soby Mathewdcedbdc2024-02-26 14:07:25 +000025add_subdirectory("console")
Soby Mathewb4c6df42022-11-09 11:13:29 +000026add_subdirectory("debug")
27add_subdirectory("gic")
Javier Almansa Sobrino2f717dd2024-02-12 20:49:46 +000028add_subdirectory("granule")
Soby Mathew73dad842022-12-16 12:51:01 +000029add_subdirectory("mbedtls")
Soby Mathewb4c6df42022-11-09 11:13:29 +000030add_subdirectory("rmm_el3_ifc")
AlexeiFedoroveaec0c42023-02-01 18:13:32 +000031add_subdirectory("smc")
Javier Almansa Sobrino2eb98b02023-12-18 18:10:55 +000032add_subdirectory("s2tt")
Javier Almansa Sobrino2f717dd2024-02-12 20:49:46 +000033add_subdirectory("slot_buf")
Jacob Man Chun Yiuf1b6d042025-02-17 16:47:06 +000034add_subdirectory("stack_protector")
Soby Mathewb4c6df42022-11-09 11:13:29 +000035add_subdirectory("xlat")
Arunachalam Ganapathy33e3bdc2024-04-10 20:55:40 +010036
Arunachalam Ganapathy56aeccc2024-10-24 15:03:55 +010037# Device Assignment feature in RMM v1.1 needs rmm-lib-spdm_requester
38if(RMM_V1_1)
Arunachalam Ganapathy33e3bdc2024-04-10 20:55:40 +010039 target_link_libraries(rmm-lib INTERFACE rmm-lib-spdm_requester)
40 add_subdirectory("spdm_requester")
41endif()