trp.mk 870 B

123456789101112131415161718192021222324252627
  1. #
  2. # Copyright (c) 2021-2024, Arm Limited and Contributors. All rights reserved.
  3. #
  4. # SPDX-License-Identifier: BSD-3-Clause
  5. #
  6. RMM_SOURCES += services/std_svc/rmmd/trp/trp_entry.S \
  7. services/std_svc/rmmd/trp/trp_main.c \
  8. services/std_svc/rmmd/trp/trp_helpers.c
  9. RMM_DEFAULT_LINKER_SCRIPT_SOURCE := services/std_svc/rmmd/trp/linker.ld.S
  10. ifeq ($($(ARCH)-ld-id),gnu-gcc)
  11. RMM_LDFLAGS += -Wl,--sort-section=alignment
  12. else ifneq ($(filter llvm-lld gnu-ld,$($(ARCH)-ld-id)),)
  13. RMM_LDFLAGS += --sort-section=alignment
  14. endif
  15. # Include the platform-specific TRP Makefile
  16. # If no platform-specific TRP Makefile exists, it means TRP is not supported
  17. # on this platform.
  18. TRP_PLAT_MAKEFILE := $(wildcard ${PLAT_DIR}/trp/trp-${PLAT}.mk)
  19. ifeq (,${TRP_PLAT_MAKEFILE})
  20. $(error TRP is not supported on platform ${PLAT})
  21. else
  22. include ${TRP_PLAT_MAKEFILE}
  23. endif