Zelalem Aweke | c8bc23e | 2021-07-09 15:32:21 -0500 | [diff] [blame] | 1 | # |
Chris Kay | 523e864 | 2023-12-04 12:03:51 +0000 | [diff] [blame] | 2 | # Copyright (c) 2021-2024, Arm Limited and Contributors. All rights reserved. |
Zelalem Aweke | c8bc23e | 2021-07-09 15:32:21 -0500 | [diff] [blame] | 3 | # |
| 4 | # SPDX-License-Identifier: BSD-3-Clause |
| 5 | # |
| 6 | |
Javier Almansa Sobrino | 4165e84 | 2022-04-25 17:18:15 +0100 | [diff] [blame] | 7 | RMM_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 Aweke | c8bc23e | 2021-07-09 15:32:21 -0500 | [diff] [blame] | 10 | |
Chris Kay | 68d2836 | 2023-01-16 16:53:45 +0000 | [diff] [blame] | 11 | RMM_DEFAULT_LINKER_SCRIPT_SOURCE := services/std_svc/rmmd/trp/linker.ld.S |
Zelalem Aweke | c8bc23e | 2021-07-09 15:32:21 -0500 | [diff] [blame] | 12 | |
Chris Kay | cfba645 | 2023-12-04 09:55:50 +0000 | [diff] [blame] | 13 | ifeq ($($(ARCH)-ld-id),gnu-gcc) |
Chris Kay | 91768d1 | 2023-01-26 18:31:52 +0000 | [diff] [blame] | 14 | RMM_LDFLAGS += -Wl,--sort-section=alignment |
Chris Kay | cfba645 | 2023-12-04 09:55:50 +0000 | [diff] [blame] | 15 | else ifneq ($(filter llvm-lld gnu-ld,$($(ARCH)-ld-id)),) |
Chris Kay | 91768d1 | 2023-01-26 18:31:52 +0000 | [diff] [blame] | 16 | RMM_LDFLAGS += --sort-section=alignment |
| 17 | endif |
| 18 | |
Zelalem Aweke | c8bc23e | 2021-07-09 15:32:21 -0500 | [diff] [blame] | 19 | # Include the platform-specific TRP Makefile |
| 20 | # If no platform-specific TRP Makefile exists, it means TRP is not supported |
| 21 | # on this platform. |
| 22 | TRP_PLAT_MAKEFILE := $(wildcard ${PLAT_DIR}/trp/trp-${PLAT}.mk) |
| 23 | ifeq (,${TRP_PLAT_MAKEFILE}) |
| 24 | $(error TRP is not supported on platform ${PLAT}) |
| 25 | else |
| 26 | include ${TRP_PLAT_MAKEFILE} |
| 27 | endif |