blob: 6607dc0262b5ef3320c4727b95e9bc2691d52748 [file] [log] [blame]
Achin Gupta4f6ad662013-10-25 09:08:21 +01001#
dp-arm230011c2017-03-07 11:02:47 +00002# Copyright (c) 2013-2017, ARM Limited and Contributors. All rights reserved.
Achin Gupta4f6ad662013-10-25 09:08:21 +01003#
dp-armfa3cf0b2017-05-03 09:38:09 +01004# SPDX-License-Identifier: BSD-3-Clause
Achin Gupta4f6ad662013-10-25 09:08:21 +01005#
6
Antonio Nino Diazc41f2062017-10-24 10:07:35 +01007################################################################################
8# Include SPM Makefile
9################################################################################
10ifeq (${ENABLE_SPM},1)
11$(info Including SPM makefile)
12include services/std_svc/spm/spm.mk
13endif
14
15
Soby Mathew0d786072016-03-24 16:56:29 +000016include lib/psci/psci_lib.mk
17
Dan Handley176e7b42014-04-15 18:20:09 +010018BL31_SOURCES += bl31/bl31_main.c \
Achin Gupta191e86e2014-05-09 10:03:15 +010019 bl31/interrupt_mgmt.c \
Dan Handley176e7b42014-04-15 18:20:09 +010020 bl31/aarch64/bl31_entrypoint.S \
Dan Handley176e7b42014-04-15 18:20:09 +010021 bl31/aarch64/runtime_exceptions.S \
Andrew Thoelke4d2d5532014-06-02 12:38:12 +010022 bl31/aarch64/crash_reporting.S \
Yatharth Kochar6c0566c2015-10-02 17:56:48 +010023 bl31/bl31_context_mgmt.c \
Soby Mathew0d786072016-03-24 16:56:29 +000024 common/runtime_svc.c \
dp-arm230011c2017-03-07 11:02:47 +000025 plat/common/aarch64/platform_mp_stack.S \
Dan Handley176e7b42014-04-15 18:20:09 +010026 services/std_svc/std_svc_setup.c \
Antonio Nino Diazc41f2062017-10-24 10:07:35 +010027 ${PSCI_LIB_SOURCES} \
28 ${SPM_SOURCES} \
29
Soby Mathew523d6332015-01-08 18:02:19 +000030
Yatharth Kochar9518d022016-03-11 14:20:19 +000031ifeq (${ENABLE_PMF}, 1)
32BL31_SOURCES += lib/pmf/pmf_main.c
33endif
34
Dan Handley176e7b42014-04-15 18:20:09 +010035BL31_LINKERFILE := bl31/bl31.ld.S
Achin Gupta9cf2bb72014-05-09 11:07:09 +010036
Sandrine Bailleuxf4119ec2015-12-17 13:58:58 +000037# Flag used to indicate if Crash reporting via console should be included
Juan Castillo7d199412015-12-14 09:35:25 +000038# in BL31. This defaults to being present in DEBUG builds only
Andrew Thoelke385f4d42014-06-03 11:50:53 +010039ifndef CRASH_REPORTING
40CRASH_REPORTING := $(DEBUG)
41endif
42
43$(eval $(call assert_boolean,CRASH_REPORTING))
44$(eval $(call add_define,CRASH_REPORTING))