mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-18 02:24:18 +00:00

This change migrates the values of `CC`, `CPP`, `AS` and other toolchain variables to the new `$(toolchain)-$(tool)` variables, which were introduced by the toolchain refactor patch. These variables should be equivalent to the values that they're replacing. Change-Id: I644fe4ce82ef1894bed129ddb4b6ab94fb04985d Signed-off-by: Chris Kay <chris.kay@arm.com>
27 lines
887 B
Makefile
27 lines
887 B
Makefile
#
|
|
# Copyright (c) 2021-2024, Arm Limited and Contributors. All rights reserved.
|
|
#
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
|
#
|
|
|
|
RMM_SOURCES += services/std_svc/rmmd/trp/trp_entry.S \
|
|
services/std_svc/rmmd/trp/trp_main.c \
|
|
services/std_svc/rmmd/trp/trp_helpers.c
|
|
|
|
RMM_DEFAULT_LINKER_SCRIPT_SOURCE := services/std_svc/rmmd/trp/linker.ld.S
|
|
|
|
ifneq ($(findstring gcc,$(notdir $($(ARCH)-ld))),)
|
|
RMM_LDFLAGS += -Wl,--sort-section=alignment
|
|
else ifneq ($(findstring ld,$(notdir $($(ARCH)-ld))),)
|
|
RMM_LDFLAGS += --sort-section=alignment
|
|
endif
|
|
|
|
# Include the platform-specific TRP Makefile
|
|
# If no platform-specific TRP Makefile exists, it means TRP is not supported
|
|
# on this platform.
|
|
TRP_PLAT_MAKEFILE := $(wildcard ${PLAT_DIR}/trp/trp-${PLAT}.mk)
|
|
ifeq (,${TRP_PLAT_MAKEFILE})
|
|
$(error TRP is not supported on platform ${PLAT})
|
|
else
|
|
include ${TRP_PLAT_MAKEFILE}
|
|
endif
|