blob: 638f02ef9e409cfaeef77680f4e2489d5365454f [file] [log] [blame]
nabkah01002e5692022-10-10 12:36:46 +01001#
2# Copyright (c) 2022, Arm Limited. All rights reserved.
3#
4# SPDX-License-Identifier: BSD-3-Clause
5#
6
7include branch_protection.mk
8
9REALM_INCLUDES := \
10 -Itftf/framework/include \
11 -Iinclude \
12 -Iinclude/common \
13 -Iinclude/common/${ARCH} \
14 -Iinclude/lib \
15 -Iinclude/lib/${ARCH} \
16 -Iinclude/lib/utils \
17 -Iinclude/lib/xlat_tables \
18 -Iinclude/runtime_services \
19 -Iinclude/runtime_services/host_realm_managment \
20 -Irealm \
21 -Irealm/aarch64
22
23REALM_SOURCES:= \
24 $(addprefix realm/, \
25 aarch64/realm_entrypoint.S \
26 aarch64/realm_exceptions.S \
27 realm_debug.c \
28 realm_payload_main.c \
29 realm_interrupt.c \
30 realm_rsi.c \
31 realm_shared_data.c \
32 )
33
34REALM_SOURCES += lib/${ARCH}/cache_helpers.S \
35 lib/${ARCH}/misc_helpers.S \
36 lib/smc/${ARCH}/asm_smc.S \
37 lib/smc/${ARCH}/smc.c \
38 lib/exceptions/${ARCH}/sync.c \
39 lib/locks/${ARCH}/spinlock.S \
40 lib/delay/delay.c
41
42# TODO: Remove dependency on TFTF files.
43REALM_SOURCES += \
44 tftf/framework/${ARCH}/exception_report.c
45
46REALM_LINKERFILE:= realm/realm.ld.S
47
48REALM_DEFINES:=
49$(eval $(call add_define,REALM_DEFINES,ARM_ARCH_MAJOR))
50$(eval $(call add_define,REALM_DEFINES,ARM_ARCH_MINOR))
51$(eval $(call add_define,REALM_DEFINES,ENABLE_BTI))
52$(eval $(call add_define,REALM_DEFINES,ENABLE_PAUTH))
53$(eval $(call add_define,REALM_DEFINES,LOG_LEVEL))
54$(eval $(call add_define,REALM_DEFINES,IMAGE_REALM))