blob: 6d69061f49579e2f8e6c29ce8da056a4a8534bcd [file] [log] [blame]
Antonio Nino Diazf2218e72019-03-19 10:59:11 +00001#
Alexei Fedorov7cc25872020-06-02 16:35:36 +01002# Copyright (c) 2018-2020, Arm Limited. All rights reserved.
Antonio Nino Diazf2218e72019-03-19 10:59:11 +00003#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7CACTUS_MM_INCLUDES := \
8 -Iinclude \
9 -Iinclude/common \
10 -Iinclude/common/${ARCH} \
11 -Iinclude/drivers \
12 -Iinclude/drivers/arm \
13 -Iinclude/lib \
14 -Iinclude/lib/${ARCH} \
15 -Iinclude/lib/utils \
16 -Iinclude/lib/xlat_tables \
17 -Iinclude/runtime_services \
18 -Iinclude/runtime_services/secure_el0_payloads \
19 -Ispm/cactus_mm \
20 -Ispm/common \
21
22CACTUS_MM_SOURCES := \
23 $(addprefix spm/cactus_mm/, \
24 aarch64/cactus_mm_entrypoint.S \
25 cactus_mm_main.c \
26 cactus_mm_service_loop.c \
27 cactus_mm_tests_memory_attributes.c \
28 cactus_mm_tests_misc.c \
29 cactus_mm_tests_system_setup.c \
30 ) \
31 $(addprefix spm/common/, \
32 aarch64/sp_arch_helpers.S \
33 sp_helpers.c \
34 ) \
35
36# TODO: Remove dependency on TFTF files.
37CACTUS_MM_SOURCES += \
38 tftf/framework/debug.c \
39
40CACTUS_MM_SOURCES += \
41 drivers/arm/pl011/${ARCH}/pl011_console.S \
Manish Pandeyf218ffe2020-04-09 15:16:40 +010042 drivers/console/console.c \
Antonio Nino Diazf2218e72019-03-19 10:59:11 +000043 lib/${ARCH}/cache_helpers.S \
44 lib/${ARCH}/misc_helpers.S \
Antonio Nino Diazf2218e72019-03-19 10:59:11 +000045
46CACTUS_MM_LINKERFILE := spm/cactus_mm/cactus_mm.ld.S
47
48CACTUS_MM_DEFINES :=
49
50# TODO: Assertions are disabled because they add several TFTF files as
51# dependencies. It is needed to break the dependencies and remove this line when
52# that is done.
53CACTUS_MM_DEFINES += -DENABLE_ASSERTIONS=0
54
55$(eval $(call add_define,CACTUS_MM_DEFINES,DEBUG))
Alexei Fedorov7cc25872020-06-02 16:35:36 +010056$(eval $(call add_define,CACTUS_MM_DEFINES,FVP_CLUSTER_COUNT))
57$(eval $(call add_define,CACTUS_MM_DEFINES,FVP_MAX_CPUS_PER_CLUSTER))
58$(eval $(call add_define,CACTUS_MM_DEFINES,FVP_MAX_PE_PER_CPU))
Antonio Nino Diazf2218e72019-03-19 10:59:11 +000059$(eval $(call add_define,CACTUS_MM_DEFINES,LOG_LEVEL))
60$(eval $(call add_define,CACTUS_MM_DEFINES,PLAT_${PLAT}))
Deepika Bhavnanic249d5e2020-02-06 16:29:45 -060061