blob: cd799c190d0150abd6a4f7141f7d10f1a6ed13ac [file] [log] [blame]
Antonio Nino Diazfbfbfc82019-03-19 10:59:11 +00001#
2# Copyright (c) 2018-2019, Arm Limited. All rights reserved.
3#
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 \
42 lib/${ARCH}/cache_helpers.S \
43 lib/${ARCH}/misc_helpers.S \
Antonio Nino Diazfbfbfc82019-03-19 10:59:11 +000044
45CACTUS_MM_LINKERFILE := spm/cactus_mm/cactus_mm.ld.S
46
47CACTUS_MM_DEFINES :=
48
49# TODO: Assertions are disabled because they add several TFTF files as
50# dependencies. It is needed to break the dependencies and remove this line when
51# that is done.
52CACTUS_MM_DEFINES += -DENABLE_ASSERTIONS=0
53
54$(eval $(call add_define,CACTUS_MM_DEFINES,DEBUG))
55$(eval $(call add_define,CACTUS_MM_DEFINES,LOG_LEVEL))
56$(eval $(call add_define,CACTUS_MM_DEFINES,PLAT_${PLAT}))
57$(eval $(call add_define,CACTUS_MM_DEFINES,AARCH64))
58
59cactus_mm: ${AUTOGEN_DIR}/tests_list.h