blob: bb9634316135884e5bc8c5a0ab0740d41772b145 [file] [log] [blame]
Zelalem Awekec8bc23e2021-07-09 15:32:21 -05001#
Chris Kay523e8642023-12-04 12:03:51 +00002# Copyright (c) 2021-2024, Arm Limited and Contributors. All rights reserved.
Zelalem Awekec8bc23e2021-07-09 15:32:21 -05003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
Javier Almansa Sobrino4165e842022-04-25 17:18:15 +01007RMM_SOURCES += services/std_svc/rmmd/trp/trp_entry.S \
8 services/std_svc/rmmd/trp/trp_main.c \
9 services/std_svc/rmmd/trp/trp_helpers.c
Zelalem Awekec8bc23e2021-07-09 15:32:21 -050010
Chris Kay68d28362023-01-16 16:53:45 +000011RMM_DEFAULT_LINKER_SCRIPT_SOURCE := services/std_svc/rmmd/trp/linker.ld.S
Zelalem Awekec8bc23e2021-07-09 15:32:21 -050012
Chris Kaycfba6452023-12-04 09:55:50 +000013ifeq ($($(ARCH)-ld-id),gnu-gcc)
Chris Kay91768d12023-01-26 18:31:52 +000014 RMM_LDFLAGS += -Wl,--sort-section=alignment
Chris Kaycfba6452023-12-04 09:55:50 +000015else ifneq ($(filter llvm-lld gnu-ld,$($(ARCH)-ld-id)),)
Chris Kay91768d12023-01-26 18:31:52 +000016 RMM_LDFLAGS += --sort-section=alignment
17endif
18
Zelalem Awekec8bc23e2021-07-09 15:32:21 -050019# Include the platform-specific TRP Makefile
20# If no platform-specific TRP Makefile exists, it means TRP is not supported
21# on this platform.
22TRP_PLAT_MAKEFILE := $(wildcard ${PLAT_DIR}/trp/trp-${PLAT}.mk)
23ifeq (,${TRP_PLAT_MAKEFILE})
24 $(error TRP is not supported on platform ${PLAT})
25else
26 include ${TRP_PLAT_MAKEFILE}
27endif