blob: d51a246d053cb2f6f1ede56450dd12966225ec27 [file] [log] [blame]
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +02001#
2# Copyright (c) 2018, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7AUTOGEN_DIR := $(BUILD_PLAT)/autogen
8
9include lib/xlat_tables_v2/xlat_tables.mk
10include lib/compiler-rt/compiler-rt.mk
11
12TFTF_INCLUDES := \
13 -I${AUTOGEN_DIR} \
14 -Itftf/framework/include \
Antonio Nino Diaz09a00ef2019-01-11 13:12:58 +000015 -Iinclude \
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020016 -Iinclude/common \
17 -Iinclude/common/${ARCH} \
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020018 -Iinclude/lib \
19 -Iinclude/lib/${ARCH} \
20 -Iinclude/lib/extensions \
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020021 -Iinclude/lib/utils \
22 -Iinclude/lib/xlat_tables \
23 -Iinclude/plat/common \
24 -Iinclude/runtime_services \
25 -Iinclude/runtime_services/secure_el0_payloads \
Antonio Nino Diaz652d20a2018-12-10 17:17:33 +000026 -Iinclude/runtime_services/secure_el1_payloads \
Antonio Nino Diaza1497e32018-11-08 11:45:13 +000027 -Ispm/cactus \
28 -Ispm/ivy
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020029
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020030FRAMEWORK_SOURCES := ${AUTOGEN_DIR}/tests_list.c
31
32FRAMEWORK_SOURCES += $(addprefix tftf/, \
33 framework/${ARCH}/arch.c \
34 framework/${ARCH}/asm_debug.S \
35 framework/${ARCH}/entrypoint.S \
36 framework/${ARCH}/exceptions.S \
Sandrine Bailleuxa43b0032019-01-14 14:04:32 +010037 framework/${ARCH}/exception_report.c \
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020038 framework/debug.c \
39 framework/main.c \
40 framework/nvm_results_helpers.c \
41 framework/report.c \
42 framework/timer/timer_framework.c \
43 tests/common/test_helpers.c \
44)
45
46FRAMEWORK_SOURCES += \
47 lib/${ARCH}/cache_helpers.S \
48 lib/${ARCH}/misc_helpers.S \
49 lib/delay/delay.c \
50 lib/events/events.c \
51 lib/extensions/amu/${ARCH}/amu.c \
52 lib/extensions/amu/${ARCH}/amu_helpers.S \
53 lib/irq/irq.c \
54 lib/locks/${ARCH}/spinlock.S \
55 lib/power_management/hotplug/hotplug.c \
56 lib/power_management/suspend/${ARCH}/asm_tftf_suspend.S \
57 lib/power_management/suspend/tftf_suspend.c \
58 lib/psci/psci.c \
59 lib/sdei/sdei.c \
60 lib/smc/${ARCH}/asm_smc.S \
61 lib/smc/${ARCH}/smc.c \
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020062 lib/trusted_os/trusted_os.c \
63 lib/utils/mp_printf.c \
64 lib/utils/uuid.c \
65 ${XLAT_TABLES_LIB_SRCS} \
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020066 plat/common/${ARCH}/platform_mp_stack.S \
67 plat/common/plat_common.c \
68 plat/common/plat_state_id.c \
69 plat/common/plat_topology.c \
70 plat/common/tftf_nvm_accessors.c
71
72
73FRAMEWORK_SOURCES += ${COMPILER_RT_SRCS}
74
75TFTF_LINKERFILE := tftf/framework/tftf.ld.S
76
77
78TFTF_DEFINES :=
79
Sandrine Bailleux3cd87d72018-10-09 11:12:55 +020080# Enable dynamic translation tables
81PLAT_XLAT_TABLES_DYNAMIC := 1
82$(eval $(call add_define,TFTF_DEFINES,PLAT_XLAT_TABLES_DYNAMIC))